/* ==========================================================================
   La Fabrique à Gourmandises – feuille de style
   Direction « gourmand sobre » (maquette 3A2) : fond blanc, aubergine tirée du
   violet de la marque pour les titres et les boutons, rose pâle du logo en fond
   d'appoint, une seule section « papier » par page, touches manuscrites discrètes.
   Contrastes mesurés (WCAG AA) : texte 14,7:1, secondaire 7,4:1, aubergine 12,8:1.
   ========================================================================== */

/* Polices hébergées sur le site (Google Fonts, licence OFL, sous-ensemble latin) */
@font-face {
    font-family: 'Quicksand';
    src: url("../fonts/quicksand-latin-rZJ2mQ3.woff2") format('woff2');
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url("../fonts/nunito-sans-latin-_XvUtPZ.woff2") format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: 'Allura';
    src: url("../fonts/allura-latin--fKqB3K.woff2") format('woff2');
    font-weight: 400;
    font-display: swap;
}

:root {
    --prune: #4a2057;      /* titres, boutons */
    --prune-h: #5f2f6e;    /* survol */
    --brand: #9f4ece;      /* violet de la marque : focus et décor discret */
    --rose: #fee4e5;       /* rose du logo : fonds d'appoint */
    --paper: #fbeeed;      /* section « papier » */
    --cream: #fff9f5;      /* encart du hero */
    --ink: #2e2530;        /* texte */
    --muted: #5f5163;      /* texte secondaire */
    --line: #e8dde0;
    --field: #857686;      /* bordure des champs */
    --error: #a3135e;
    --success: #2f6b3f;
    --white: #fff;

    --r: 3px;
    --shadow: 0 2px 14px rgba(46, 37, 48, .09);
    --header-h: 96px;

    --f-title: 'Quicksand', 'Trebuchet MS', system-ui, sans-serif;
    --f-text: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --f-script: 'Allura', 'Brush Script MT', cursive;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 400 1rem/1.65 var(--f-text);
    overflow-x: hidden;
}

/* Pied de page collé en bas sur les pages courtes, à la suite du contenu sinon */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body > main {
    flex: 1 0 auto;
}

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

a {
    color: var(--prune);
}

h1, h2, h3, h4 {
    font-family: var(--f-title);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .5em;
    color: var(--prune);
    text-wrap: balance;
}

p {
    margin: 0 0 1em;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 99;
    background: var(--prune);
    color: var(--white);
    padding: .6em 1em;
    border-radius: var(--r);
}

.skip-link:focus {
    top: 8px;
}

.ico {
    width: 1.2em;
    height: 1.2em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.script {
    display: block;
    font: 400 1.9rem/1.1 var(--f-script);
    color: var(--prune);
    margin-bottom: .15em;
}

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.wrap--narrow {
    max-width: 760px;
}

/* ---------- Boutons, pastilles ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 48px;
    padding: .7em 1.8em;
    border: 2px solid var(--prune);
    border-radius: var(--r);
    background: var(--prune);
    color: var(--white);
    font: 600 .88rem/1.2 var(--f-title);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(46, 37, 48, .18);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
    background: var(--prune-h);
    border-color: var(--prune-h);
    color: var(--white);
}

.btn--line {
    background: transparent;
    color: var(--prune);
    box-shadow: none;
}

.btn--line:hover {
    background: var(--rose);
    border-color: var(--prune);
    color: var(--prune);
}

.btn--sm {
    min-height: 44px;
    padding: .45em 1.2em;
    font-size: .8rem;
}

.btn--danger {
    background: #8f1d33;
    border-color: #8f1d33;
}

.btn--danger:hover {
    background: #74172a;
    border-color: #74172a;
}

.btn[hidden] {
    display: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 2px;
    padding: .1em .7em;
    font-size: .8rem;
    line-height: 1.6;
    background: var(--rose);
    color: var(--ink);
}

.pill--soft {
    background: #efe7f1;
}

.link-more {
    font: 600 .8rem var(--f-title);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Sections ---------- */
.sec {
    padding: 88px 0;
}

.sec--tight {
    padding: 56px 0;
}

.sec--line {
    border-top: 1px solid var(--line);
}

.sec__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.sec__head h1,
.sec__head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    margin: 0;
}

.sec__head p {
    margin: .7em 0 0;
    color: var(--muted);
}

.center {
    text-align: center;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: center;
    margin-top: 44px;
}

/* Section « papier » : fond rose très pâle texturé, avec une vague en haut */
.paper {
    position: relative;
    margin-top: 48px;
    background-color: var(--paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .35 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.paper::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -47px;
    height: 48px;
    background: var(--paper);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V26C150 4 300 0 450 14S750 44 900 30s200-26 300-8v26z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V26C150 4 300 0 450 14S750 44 900 30s200-26 300-8v26z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- En-tête : logo, navigation, devis + compte à droite ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
    box-shadow: 0 1px 8px rgba(46, 37, 48, .1);
}

.site-header__in {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--header-h);
    max-width: 1280px;
}

.logo {
    display: block;
    flex: none;
}

.logo img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--line);
}

.site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    margin-left: 28px;
}

.menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu--actions {
    gap: 6px;
}

.menu__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    min-height: 44px;
    padding: .4em .8em;
    color: var(--ink);
    text-decoration: none;
    font: 600 .74rem var(--f-title);
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.menu__link::after {
    content: "";
    position: absolute;
    left: .8em;
    right: .8em;
    bottom: 6px;
    height: 1px;
    background: var(--prune);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.menu__link:hover,
.menu__link[aria-current] {
    color: var(--prune);
}

.menu__link:hover::after,
.menu__link[aria-current]::after {
    transform: scaleX(1);
}

.menu__cta .btn {
    white-space: nowrap;
}

/* Sous-menu du compte (desktop : liste flottante au survol, au clavier ou au chevron) */
.account-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.account-menu .menu__link--account {
    padding-right: .2em;
}

/* Le soulignement couvre le prénom et la flèche, comme un seul bouton */
.account-menu .menu__link--account::after {
    display: none;
}

.account-menu::after {
    content: "";
    position: absolute;
    left: .8em;
    right: 4px;
    bottom: 6px;
    height: 1px;
    background: var(--prune);
    transform: scaleX(0);
    transition: transform .25s ease;
    pointer-events: none;
}

.account-menu:hover::after,
.account-menu.is-open::after {
    transform: scaleX(1);
}

.account-menu:hover .menu__link--account,
.account-menu.is-open .menu__link--account,
.account-menu:hover .account-menu__toggle,
.account-menu.is-open .account-menu__toggle,
.account-menu:has(> [aria-current]) .account-menu__toggle {
    color: var(--prune);
}

.account-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
}

.account-menu__toggle .ico {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.account-menu__list {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
    min-width: 100%;
    width: max-content;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: 0 14px 28px -12px rgba(46, 37, 48, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

/* Pont invisible pour ne pas perdre le survol entre le nom et la liste */
.account-menu__list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.account-menu:hover .account-menu__list,
.account-menu:focus-within .account-menu__list,
.account-menu.is-open .account-menu__list {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.account-menu:hover .account-menu__toggle .ico,
.account-menu.is-open .account-menu__toggle .ico {
    transform: rotate(180deg);
}

.account-menu__list a,
.account-menu__list .logout-form button {
    display: block;
    margin: 0 6px;
    padding: .55em .9em;
    white-space: nowrap;
    border-radius: var(--r);
    color: var(--ink);
    text-decoration: none;
    text-align: right;
    font: 600 .9rem var(--f-text);
    transition: background-color .15s ease, color .15s ease;
}

.account-menu__list a:hover,
.account-menu__list a:focus-visible,
.account-menu__list .logout-form button:hover,
.account-menu__list .logout-form button:focus-visible {
    background: var(--rose);
    color: var(--prune);
}

.account-menu__list a[aria-current] {
    color: var(--prune);
    box-shadow: inset -3px 0 0 var(--prune);
}

.account-menu__sep {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.header-tools {
    display: none;
}

.nav-toggle,
.call-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    border: 1px solid var(--prune);
    border-radius: var(--r);
    background: var(--white);
    color: var(--prune);
}

.nav-toggle {
    gap: .5em;
    padding: 0 .8em;
    font: 600 .72rem var(--f-title);
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 600px;
    padding: 72px 24px;
}

.hero__photos {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--rose);
}

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

.hero__photos::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(46, 24, 56, .16);
}

.hero__card {
    width: 100%;
    max-width: 620px;
    padding: 52px 56px 48px;
    border-radius: var(--r);
    background: var(--cream);
    text-align: center;
    box-shadow: 0 10px 40px -12px rgba(30, 12, 40, .4);
}

.hero__card h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: .1em 0 .5em;
}

.hero__card p {
    max-width: 40ch;
    margin: 0 auto 1.6em;
    color: var(--muted);
}

.hero__card .script--after {
    margin: 1em 0 0;
    font-size: 1.6rem;
}

/* En-tête de page intérieure */
.page-head {
    padding: 72px 0 8px;
    text-align: center;
}

.page-head h1 {
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    margin: 0;
}

.page-head p {
    max-width: 62ch;
    margin: .8em auto 0;
    color: var(--muted);
}

.crumbs {
    margin: 0 0 18px;
    font-size: .82rem;
    color: var(--muted);
}

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

/* ---------- Réassurance ---------- */
.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1120px;
    margin: 0 auto;
    padding: 44px 24px;
    list-style: none;
}

.facts li {
    padding: 0 24px;
    text-align: center;
}

.facts li + li {
    border-left: 1px solid var(--line);
}

.facts .ico {
    display: block;
    width: 1.7em;
    height: 1.7em;
    margin: 0 auto 10px;
    color: var(--prune);
}

.facts b {
    display: block;
    font: 600 .8rem var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--prune);
}

.facts span {
    color: var(--muted);
    font-size: .93rem;
}

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

.facts--4 li {
    padding: 0 18px;
}

.facts .artisan {
    margin: 0 auto 10px;
}

/* À côté de la pastille (84 px), les pictogrammes sont centrés sur la même hauteur : les titres restent alignés. */
.facts:has(.artisan) .ico {
    margin-top: calc((84px - 1.7em) / 2);
    margin-bottom: calc(10px + (84px - 1.7em) / 2);
}

@media (min-width: 721px) and (max-width: 960px) {
    .facts--4 {
        grid-template-columns: 1fr 1fr;
        row-gap: 28px;
    }

    .facts--4 li:nth-child(3) {
        border-left: 0;
    }
}

/* ---------- Logo « Artisan » ----------
   Marque collective des CMA : le dessin, ses couleurs et ses proportions ne changent jamais.
   La pastille blanche lui donne un fond neutre sur le blanc, le rose et l'aubergine. 64 px minimum. */
.artisan {
    display: inline-grid;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgba(46, 37, 48, .08);
}

.artisan img {
    width: 72%;
    height: auto;
}

.artisan--s {
    width: 64px;
    height: 64px;
}

.artisan--m {
    width: 84px;
    height: 84px;
}

.artisan--l {
    width: 112px;
    height: 112px;
}

/* Signature d'une section « Photo + texte » : logo Artisan, prénom manuscrit, petite ligne. */
.sign {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 1.4em;
    padding-top: 1.2em;
    border-top: 1px solid var(--line);
}

.sign p {
    margin: 0;
}

.sign .script {
    font-size: 2.1rem;
}

.sign__note {
    display: block;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.4;
}

/* ---------- Catégories ---------- */
.cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cat {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: clip;
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: box-shadow .25s ease;
}

.cat:hover {
    box-shadow: 0 6px 24px rgba(46, 37, 48, .16);
}

.cat__photo {
    aspect-ratio: 4 / 5;
    overflow: clip;
    background: var(--rose);
}

.cat__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.cat:hover .cat__photo img {
    transform: scale(1.03);
}

.cat__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 20px 18px 22px;
    text-align: center;
}

.cat__body h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cat__body p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}

.cat__delay {
    margin-top: auto;
    padding-top: 12px;
    color: var(--prune);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Étapes et délais ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    text-align: center;
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 2px solid var(--prune);
    border-radius: 50%;
    background: var(--white);
    color: var(--prune);
    font: 600 1.2rem var(--f-title);
}

.steps h3 {
    margin-bottom: .4em;
    font-size: 1.15rem;
}

.steps p {
    max-width: 32ch;
    margin: 0 auto;
    color: var(--muted);
    font-size: .95rem;
}

.know {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.know > div {
    padding: 26px;
    border-radius: 4px;
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow);
}

.know b {
    display: block;
    margin-bottom: .3em;
    color: var(--prune);
    font: 600 2.1rem/1 var(--f-title);
}

.know b small {
    color: var(--muted);
    font: 400 .95rem var(--f-text);
}

.know h3 {
    margin: 0 0 .3em;
    font-size: 1rem;
}

.know p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

/* ---------- Galerie en mosaïque + visionneuse ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bento li {
    overflow: clip;
    border-radius: 3px;
    background: var(--rose);
}

.bento .tall {
    grid-row: span 2;
}

.bento .wide {
    grid-column: span 2;
}

.bento a,
.bento figure {
    display: block;
    height: 100%;
    margin: 0;
}

.bento img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.bento li:hover img {
    transform: scale(1.03);
}

.insta-line {
    margin-top: 36px;
    text-align: center;
}

.insta-line p {
    margin: 0 0 14px;
    color: var(--muted);
}

.lightbox {
    max-width: min(92vw, 900px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--white);
    overflow: visible;
}

.lightbox::backdrop {
    background: rgba(30, 14, 36, .82);
}

.lightbox img {
    max-height: 80vh;
    margin: 0 auto;
}

.lightbox__caption {
    margin: 0;
    padding: 10px 16px;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

.lightbox__btn,
.lightbox__close {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--prune);
    font: 600 1.6rem/1 var(--f-title);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.lightbox__btn--prev {
    left: -24px;
    top: 50%;
    margin-top: -24px;
}

.lightbox__btn--next {
    right: -24px;
    top: 50%;
    margin-top: -24px;
}

.lightbox__close {
    right: -16px;
    top: -16px;
}

/* ---------- Contenu éditorial (pages catégories, légales) ---------- */
.prose {
    max-width: 68ch;
    margin: 0 auto;
}

.prose h2 {
    margin: 1.8em 0 .5em;
    font-size: 1.5rem;
}

.prose h3 {
    margin: 1.4em 0 .4em;
    font-size: 1.15rem;
}

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

.prose li + li {
    margin-top: .3em;
}

.prose--center {
    text-align: center;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.recipe {
    padding: 28px 30px;
    border-radius: 4px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.recipe h3 {
    margin-bottom: .2em;
    font-size: 1.15rem;
}

.recipe dl {
    margin: 0;
}

.recipe dt {
    margin-top: 1em;
    color: var(--muted);
    font: 600 .72rem var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.recipe dd {
    margin: .2em 0 0;
}

.recipe ul {
    margin: .3em 0 0;
    padding-left: 1.1em;
}

.formats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.formats li {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.formats b {
    display: block;
    color: var(--prune);
    font: 600 1.05rem var(--f-title);
}

.formats span {
    color: var(--muted);
    font-size: .92rem;
}

.video {
    width: 281px;
    height: auto;
    aspect-ratio: 281 / 499;
    object-fit: cover;
    background: var(--paper);
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

/* ---------- FAQ ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    gap: 64px;
    align-items: start;
}

.faq-grid h1,
.faq-grid h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.faq-grid .sub {
    color: var(--muted);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq details:first-child {
    border-top: 1px solid var(--line);
}

.faq summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 18px 48px 18px 0;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -8px;
    border-right: 2px solid var(--prune);
    border-bottom: 2px solid var(--prune);
    transform: rotate(45deg);
    transition: transform .25s;
}

.faq details[open] summary::after {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.faq summary:hover {
    color: var(--prune);
}

.faq__a {
    max-width: 60ch;
    padding: 0 0 20px;
    color: var(--muted);
}

.faq__a p:last-child {
    margin: 0;
}

.faq__a ul {
    margin: .3em 0 0;
    padding-left: 1.2em;
}

/* ---------- Appel final ---------- */
.final {
    padding: 80px 0;
    background: var(--rose);
    text-align: center;
}

.final h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.final p {
    max-width: 46ch;
    margin: 0 auto 1.8em;
}

.final .actions {
    margin-top: 0;
}

/* ---------- Pied de page ---------- */
.site-footer {
    padding: 48px 0 28px;
    background: var(--prune);
    color: #e6d6ea;
    font-size: .9rem;
}

.site-footer a {
    color: var(--white);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px 40px;
}

.site-footer__title {
    margin: 0 0 .7em;
    color: var(--white);
    font: 600 .78rem var(--f-title);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.site-footer p {
    margin: 0 0 .3em;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: .35em;
}

.site-footer .footer-artisan {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    line-height: 1.35;
}

.footer-artisan .artisan {
    box-shadow: none;
}

.footer-artisan b {
    display: block;
    color: var(--white);
    font: 600 .78rem var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* « .site-footer » en tête : sinon « .site-footer p » (plus précis) annulait la marge du haut. */
.site-footer .site-footer__bottom {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .82rem;
}

/* ---------- Barre collante mobile ---------- */
.sticky-bar {
    display: none;
    position: sticky;
    bottom: 0;
    z-index: 30;
    grid-template-columns: 1fr 56px;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    box-shadow: 0 -1px 8px rgba(46, 37, 48, .12);
}

.sticky-bar .btn {
    width: 100%;
}

.sticky-bar__call {
    display: grid;
    place-items: center;
    min-height: 48px;
    border: 2px solid var(--prune);
    border-radius: var(--r);
    color: var(--prune);
}

/* ---------- Messages ---------- */
.alert {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-left: 3px solid var(--success);
    border-radius: 2px;
    background: #eef5ef;
    color: var(--ink);
}

.alert--error {
    border-color: var(--error);
    background: #fdf0f5;
}

/* ---------- Formulaires ---------- */
.card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.card--center {
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

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

legend {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    font-weight: 600;
    font-size: .95rem;
}

.field {
    display: grid;
    /* Dans une .form-grid, la cellule prend la hauteur de la plus haute : on garde libellé et champ en haut. */
    align-content: start;
    gap: 6px;
    margin-bottom: 16px;
}

.field[hidden] {
    display: none;
}

.field__label {
    font-weight: 600;
    font-size: .93rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: .6em 1em;
    border: 1px solid var(--field);
    border-radius: var(--r);
    background: var(--white);
    color: var(--ink);
    font: 400 1rem var(--f-text);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--prune);
    outline: 3px solid rgba(159, 78, 206, .35);
    outline-offset: 0;
}

.field input[readonly] {
    background: #f6f2f6;
    color: var(--muted);
}

.field--error input,
.field--error textarea,
.field--error select {
    border-color: var(--error);
    background: #fff7fa;
}

.field__help {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
}

.field__errors {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--error);
    font-size: .86rem;
}

.req {
    color: var(--error);
}

.field--checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: flex-start;
    font-size: .9rem;
}

.field--checkbox input {
    width: 24px;
    height: 24px;
    flex: none;
    margin: 1px 0 0;
    accent-color: var(--prune);
}

.field--checkbox label {
    flex: 1;
    min-width: 0;
    font-weight: 400;
}

.field--checkbox .field__errors {
    flex-basis: 100%;
}

/* Champ piège anti-spam : invisible pour les visiteurs, rempli par les robots */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Zone d'envoi des photos */
.uploader {
    position: relative;
    display: block;
    padding: 18px;
    border: 1px dashed var(--field);
    border-radius: var(--r);
    background: var(--white);
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.uploader:hover,
.uploader:focus-within {
    border-color: var(--prune);
    background: var(--paper);
}

.uploader input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.uploader__title {
    display: block;
    color: var(--prune);
    font: 600 1rem var(--f-title);
}

.uploader__hint {
    color: var(--muted);
    font-size: .86rem;
    overflow-wrap: anywhere;
}

/* ---------- Devis en étapes ---------- */
.quote-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

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

.is-stepped .progress {
    display: grid;
}

.progress li {
    padding-top: 10px;
    border-top: 3px solid var(--line);
    color: var(--muted);
    font-size: .82rem;
    transition: border-color .25s;
}

.progress b {
    display: block;
    color: var(--muted);
    font: 600 .7rem var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.progress .is-done {
    border-color: var(--brand);
    color: var(--ink);
}

.progress .is-current {
    border-color: var(--prune);
    color: var(--ink);
}

.progress .is-current b,
.progress .is-done b {
    color: var(--prune);
}

.step {
    margin: 0 0 32px;
}

.step__title {
    margin-bottom: .35em;
    font-size: 1.4rem;
    outline: none;
}

.step__hint {
    color: var(--muted);
    font-size: .93rem;
}

/* Étape 4 du devis : création de compte mise en avant */
.qaccount {
    margin: 8px 0 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--prune);
    border-radius: 4px;
    background: var(--cream);
}

.qaccount__title {
    margin: 0 0 8px;
    color: var(--prune);
    font-size: 1.1rem;
}

.qaccount__perks {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: .93rem;
}

.qaccount__perks li {
    position: relative;
    padding-left: 24px;
    margin-top: 4px;
}

.qaccount__perks li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    color: var(--prune);
    font-weight: 700;
}

.qaccount__btns {
    display: grid;
    gap: 8px;
}

.qaccount__btns .oauth-btn {
    min-height: 46px;
    margin: 0;
    background: var(--white);
}

.qaccount__note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .84rem;
}

.qaccount__or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: var(--muted);
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.qaccount__or::before,
.qaccount__or::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--line);
}

.qrestored {
    margin: 0 0 16px;
}

.is-stepped .step {
    margin: 0;
    animation: step-in .3s ease;
}

.is-stepped .step[hidden] {
    display: none;
}

@keyframes step-in {
    from {
        opacity: 0;
    }
}

.step-nav {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 12px;
}

.is-stepped .step-nav {
    display: flex;
}

/* Écran d'un gâteau ouvert : il a ses propres boutons (Annuler, Ajouter à ma demande) */
.is-stepped .step-nav[hidden] {
    display: none;
}

.step-nav__next,
.step-nav__send {
    margin-left: auto;
}

.no-js-submit {
    margin-top: 8px;
}

.is-stepped .no-js-submit {
    display: none;
}

.picks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.pick {
    position: relative;
    display: block;
}

.pick input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.pick__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: clip;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.pick__card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.pick__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px 14px;
}

.pick__text b {
    color: var(--prune);
    font: 600 1.05rem var(--f-title);
}

.pick__text small {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.4;
}

.pick__text .pill {
    align-self: flex-start;
    margin-top: 8px;
    font-size: .76rem;
}

.pick:hover .pick__card {
    border-color: var(--brand);
}

.pick input:focus-visible + .pick__card {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
}

.pick input:checked + .pick__card {
    border-color: var(--prune);
    box-shadow: 0 0 0 2px var(--prune);
}

.pick input:checked + .pick__card::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--prune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.delay {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: var(--r);
    background: var(--paper);
}

.delay__days {
    display: grid;
    place-items: center;
    flex: none;
    width: 68px;
    height: 68px;
    border: 2px solid var(--prune);
    border-radius: 50%;
    background: var(--white);
    color: var(--prune);
    font: 400 .68rem/1.1 var(--f-text);
    text-align: center;
}

.delay__days b {
    display: block;
    font: 600 1.7rem/1 var(--f-title);
}

.delay p {
    margin: 0;
    font-size: .92rem;
}

.recap {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    padding: 22px;
    border-radius: 4px;
    background: var(--paper);
}

.recap h2 {
    margin-bottom: .8em;
    font-size: 1.1rem;
}

.recap dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.recap dt {
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.recap dd {
    margin: 0;
    font-size: .96rem;
    overflow-wrap: anywhere;
}

.recap__empty {
    color: #66566a;
}

.recap__note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: .86rem;
}

/* ---------- Connexion ---------- */
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    margin-top: 10px;
    border: 1px solid var(--field);
    border-radius: var(--r);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.oauth-btn:hover {
    border-color: var(--prune);
    background: var(--paper);
    color: var(--ink);
}

.oauth-btn svg {
    width: 22px;
    height: 22px;
}

.small {
    color: var(--muted);
    font-size: .84rem;
}

/* ---------- Espace client et back-office ---------- */
.account-head {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.account-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-head h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3.6vw, 2.1rem);
}

/* « Se déconnecter » : bouton d'un formulaire POST (jeton de sécurité), présenté comme les liens voisins */
.logout-form {
    margin: 0;
}

.logout-form button {
    width: auto;
    border: 0;
    background: none;
    cursor: pointer;
}

.account-menu__list .logout-form button {
    width: calc(100% - 12px);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 26px;
    margin: 12px 0 26px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    list-style: none;
}

/* Onglet poussé à droite (Administration dans « Mon espace ») */
.tabs__end {
    margin-left: auto;
}

.tabs a,
.tabs .logout-form button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-bottom: -1px;
    padding: .5em 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font: 600 .78rem var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
}

.tabs a:hover,
.tabs .logout-form button:hover {
    color: var(--prune);
}

.tabs a[aria-current] {
    border-color: var(--prune);
    color: var(--prune);
}

.quotes {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quote-card {
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.quote-card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: space-between;
}

.quote-card__top h2 {
    margin: 0;
    font-size: 1.15rem;
}

.quote-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin: 6px 0 22px;
    color: var(--muted);
    font-size: .9rem;
}

.quote-card__meta b {
    color: var(--ink);
    font-weight: 600;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .1em .8em;
    border-radius: 2px;
    background: var(--rose);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

.status::before {
    content: "";
    width: .55em;
    height: .55em;
    border-radius: 50%;
    background: var(--prune);
    opacity: .6;
}

.status--received {
    background: #f1ebe6;
}

.status--in_progress {
    background: #f4eef7;
}

.status--accepted,
.status--done {
    background: #e6dcec;
}

.status--declined,
.status--cancelled {
    background: #eeeaea;
    color: var(--muted);
}

.status--declined::before,
.status--cancelled::before {
    background: var(--muted);
}

/* Mes devis : annulation de la demande par le client */
.quote-card__cancel {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

/* Frise de suivi */
.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin: 26px 0 28px;
    padding: 0;
    list-style: none;
}

.timeline li {
    position: relative;
    padding-top: 38px;
    color: var(--muted);
    font-size: .8rem;
    text-align: center;
}

.timeline li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: 26px;
    height: 26px;
    margin-left: -13px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--white);
}

.timeline li::after {
    content: "";
    position: absolute;
    top: 12px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    height: 2px;
    background: var(--line);
}

.timeline li:last-child::after {
    display: none;
}

.timeline .is-done {
    color: var(--ink);
}

.timeline .is-done::before {
    border-color: var(--prune);
    background: var(--prune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.timeline .is-done::after {
    background: var(--prune);
}

.timeline .is-current {
    color: var(--ink);
    font-weight: 600;
}

.timeline .is-current::before {
    border-color: var(--prune);
    box-shadow: 0 0 0 4px var(--rose), inset 0 0 0 5px var(--prune);
}

.note {
    margin: 18px 0 0;
    padding: 10px 14px;
    border-left: 3px solid var(--prune);
    border-radius: 2px;
    background: var(--paper);
    font-size: .92rem;
}

.empty {
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 4px;
    color: var(--muted);
    text-align: center;
}

.danger-zone {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}

/* Back-office */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .2em 1em;
    border: 1px solid var(--field);
    border-radius: var(--r);
    color: var(--ink);
    font-size: .88rem;
    text-decoration: none;
}

.chip:hover {
    border-color: var(--prune);
    color: var(--prune);
}

.chip[aria-current] {
    border-color: var(--prune);
    background: var(--prune);
    color: var(--white);
}

.table-wrap {
    overflow-x: auto;
}

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

.table th {
    padding: 10px 12px;
    border-bottom: 2px solid var(--line);
    color: var(--muted);
    font: 600 .72rem var(--f-title);
    letter-spacing: .12em;
    text-align: left;
    text-transform: uppercase;
}

.table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table__meta {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

.details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 24px;
    margin: 0 0 32px;
}

.details dt {
    color: var(--muted);
    font: 600 .72rem/1.9 var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
}

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

.details__message {
    white-space: pre-line;
}

/* Administration : photos Instagram de l'accueil */
.alert--undo {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
    justify-content: space-between;
}

.link-btn {
    min-height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--prune);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.ig-connect {
    display: grid;
    justify-items: center;
    gap: 14px;
    max-width: 520px;
    margin: 10px auto 0;
    text-align: center;
}

.ig-connect h2 {
    margin: 0;
    font-size: 1.3rem;
}

.ig-connect p {
    margin: 0;
    color: var(--muted);
}

.ig-connect__logo {
    width: 64px;
    height: 64px;
    padding: 14px;
    border-radius: 18px;
    background: var(--rose);
    color: var(--prune);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.ig-connect__steps {
    margin: 0;
    padding: 14px 18px 14px 36px;
    border-radius: 4px;
    background: var(--cream);
    color: var(--muted);
    text-align: left;
}

.ig-connect .alert {
    margin: 0;
    text-align: left;
}

.ig-state {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--cream);
}

.ig-state__txt {
    display: grid;
    margin: 0;
    font-size: .9rem;
    line-height: 1.4;
}

.ig-state__txt b {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ig-state__txt b::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
}

.ig-state__txt span {
    color: var(--muted);
}

.ig-state--expiring {
    border-color: #f0d9a8;
    background: #fff6e5;
}

.ig-state--expiring b::before {
    background: #b87900;
}

.ig-state--disconnected {
    border-color: #f2c4cf;
    background: #fdecef;
}

.ig-state--disconnected b::before {
    background: var(--error);
}

/* Module Photos : photothèque, fiche d'une photo, envoi, galeries */
.ph-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ph-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ph-upload__btn {
    position: relative;
    cursor: pointer;
}

.ph-upload__btn input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ph-upload__btn:has(input:focus-visible) {
    outline: 3px solid var(--prune);
    outline-offset: 2px;
}

.ph-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.ph-filters a {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--field);
    border-radius: 18px;
    background: var(--white);
    color: var(--ink);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}

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

.ph-filters a[aria-current] {
    border-color: var(--prune);
    background: var(--prune);
    color: var(--white);
}

.ph-filters small {
    opacity: .8;
}

.ph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ph-tile {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--paper);
}

.ph-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.ph-tile:hover img {
    transform: scale(1.04);
}

.ph-tile--off img {
    filter: grayscale(1);
    opacity: .5;
}

.ph-tile__src {
    position: absolute;
    top: 6px;
    left: 6px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--prune);
}

.ph-tile__src .ico {
    width: 15px;
    height: 15px;
}

.ph-tile__where {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 16px 7px 5px;
    background: linear-gradient(transparent, rgba(30, 18, 34, .8));
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.3;
}

.ph-tile__where--none {
    background: linear-gradient(transparent, rgba(122, 77, 0, .88));
}

.ph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .8rem;
}

.ph-legend span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.ph-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.ph-detail__img {
    margin: 0;
    border-radius: 4px;
    background: var(--paper);
}

.ph-detail__img img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
}

.ph-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .86rem;
}

.ph-meta span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.ph-places {
    display: grid;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.ph-place {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 50px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    font-weight: 700;
    cursor: pointer;
}

.ph-place input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--prune);
}

.ph-place small {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 400;
}

.ph-place:has(input:checked) {
    border-color: var(--prune);
    background: var(--cream);
}

.ph-place:has(input:focus-visible) {
    outline: 3px solid var(--prune);
    outline-offset: 2px;
}

.ph-danger {
    display: grid;
    gap: 6px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.ph-danger p {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
}

.ph-describe {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.ph-describe > li {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}

.ph-describe img {
    width: 160px;
    height: 160px;
    border-radius: 4px;
    object-fit: cover;
}

.ph-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    border: 0;
}

.ph-checks legend {
    margin-bottom: 4px;
    padding: 0;
    font-weight: 700;
}

.ph-checks label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 32px;
    font-size: .9rem;
}

.ph-checks input {
    width: 18px;
    height: 18px;
    accent-color: var(--prune);
}

.ph-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.ph-seg a {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid var(--field);
    border-radius: 19px;
    background: var(--white);
    color: var(--ink);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.ph-seg a[aria-current] {
    border-color: var(--prune);
    background: var(--prune);
    color: var(--white);
}

.ph-seg small {
    font-weight: 400;
    opacity: .8;
}

.ph-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.ph-cols > *,
.ph-detail > * {
    min-width: 0;
}

@media (max-width: 600px) {
    .ph-row {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 4px 10px;
    }

    .ph-row--auto {
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .ph-row__grip,
    .ph-row:not(.ph-row--auto) .ph-row__n {
        display: none;
    }

    .ph-row img {
        width: 44px;
        height: 44px;
    }

    .ph-row:not(.ph-row--auto) .ph-row__act {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .ph-describe > li {
        grid-template-columns: 1fr;
    }
}

.ph-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ph-row {
    display: grid;
    grid-template-columns: 22px 26px 60px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    font-size: .9rem;
}

.ph-row--auto {
    grid-template-columns: 26px 60px minmax(0, 1fr) auto;
}

.ph-row[draggable="true"] {
    cursor: grab;
}

.ph-row.is-drag {
    opacity: .4;
}

.ph-row.is-over {
    border-color: var(--prune);
    box-shadow: 0 -3px 0 var(--prune);
}

.ph-row--waiting {
    opacity: .6;
}

.ph-row__grip {
    color: var(--field);
    letter-spacing: -2px;
    text-align: center;
}

.ph-row__n {
    color: var(--muted);
    font: 700 .84rem var(--f-title);
    text-align: right;
}

.ph-row img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.ph-row__txt {
    min-width: 0;
}

.ph-row__txt a {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ph-row__txt a:hover {
    text-decoration: underline;
}

.ph-row__txt span {
    color: var(--muted);
    font-size: .78rem;
}

.ph-row__act {
    display: flex;
    gap: 2px;
}

.ph-row__act form {
    margin: 0;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
}

.icon-btn:hover:not([disabled]) {
    border-color: var(--line);
    color: var(--prune);
}

.icon-btn[aria-pressed="true"] {
    color: #b07a00;
}

.icon-btn[disabled] {
    opacity: .3;
    cursor: default;
}

.ph-cut {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0 6px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ph-cut::before,
.ph-cut::after {
    content: "";
    flex: 1;
    border-top: 1px dashed var(--field);
}

.ph-add {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.ph-add select {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid var(--field);
    border-radius: var(--r);
    background: var(--white);
    font: inherit;
}

.ph-preview {
    position: sticky;
    top: calc(var(--header-h) + 12px);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--cream);
}

.ph-preview h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.ph-preview__cover {
    position: relative;
    height: 130px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 4px;
}

.ph-preview__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-preview__cover span {
    position: absolute;
    bottom: 8px;
    left: 10px;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    color: var(--prune);
    font: 700 .82rem var(--f-title);
}

.ph-hero {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 10px 0 0;
}

.ph-hero img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 3px;
    object-fit: cover;
}

.bento--mini {
    grid-auto-rows: 64px;
    gap: 5px;
}

/* Photos jointes à un devis (administration et espace client) */
.quote-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
    padding: 0;
    list-style: none;
}

.quote-photos a {
    display: block;
    width: 110px;
    color: var(--muted);
    font-size: .72rem;
    text-decoration: none;
}

.quote-photos img {
    width: 110px;
    height: 110px;
    border: 1px solid var(--line);
    border-radius: 4px;
    object-fit: cover;
}

.quote-photos__file {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    border: 1px dashed var(--field);
    border-radius: 4px;
    background: var(--paper);
    font-weight: 700;
}

.quote-photos span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.contact-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-info .ico {
    margin-top: .2em;
    color: var(--prune);
}

.contact-map {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .site-nav {
        margin-left: 16px;
        gap: 8px;
    }

    .menu__link {
        padding: .4em .5em;
        font-size: .7rem;
        letter-spacing: .08em;
    }

    .menu__link::after {
        left: .5em;
        right: .5em;
    }

    .logo img {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 1024px) {
    .cats {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-grid,
    .faq-grid,
    .split,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .recap {
        position: static;
    }
}

@media (max-width: 960px) {
    .ph-detail,
    .ph-cols {
        grid-template-columns: 1fr;
    }

    .ph-preview {
        position: static;
    }

    .ph-describe > li {
        grid-template-columns: 1fr;
    }

    :root {
        --header-h: 76px;
    }

    .site-header__in {
        justify-content: space-between;
    }

    .logo img {
        width: 60px;
        height: 60px;
    }

    .header-tools {
        display: flex;
        gap: 8px;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 24px 20px;
        background: var(--white);
        box-shadow: 0 14px 20px -12px rgba(46, 37, 48, .25);
    }

    .site-nav.is-open {
        display: flex;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
    }

    .menu--actions {
        gap: 0;
    }

    .menu__link {
        width: 100%;
        padding: .6em 0;
        border-bottom: 1px solid var(--line);
    }

    .menu__link::after {
        display: none;
    }

    .menu__cta {
        order: 2;
        margin: 14px 0 0;
    }

    .menu__cta .btn {
        width: 100%;
    }

    /* Compte : sous-menu déplié dans le menu mobile, sans popup */
    .account-menu {
        flex-wrap: wrap;
    }

    .account-menu .menu__link--account {
        border-bottom: 0;
    }

    .account-menu__toggle,
    .account-menu::after {
        display: none;
    }

    .account-menu__list,
    .account-menu:hover .account-menu__list {
        position: static;
        width: 100%;
        min-width: 0;
        padding: 0 0 8px;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .account-menu__list::before {
        display: none;
    }

    .account-menu__list a,
    .account-menu__list .logout-form button {
        display: flex;
        width: 100%;
        align-items: center;
        min-height: 44px;
        margin: 0;
        padding: 0 0 0 1.6em;
        border-left: 2px solid var(--line);
        border-radius: 0;
        text-align: left;
        box-shadow: none;
    }

    .account-menu__list a[aria-current] {
        border-left-color: var(--prune);
        box-shadow: none;
    }

    .account-menu__sep {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 720px) {
    .sec {
        padding: 60px 0;
    }

    .wrap {
        padding: 0 20px;
    }

    .hero {
        display: block;
        min-height: 0;
        padding: 0 0 40px;
    }

    .hero__photos {
        position: relative;
        inset: auto;
        z-index: 0;
        height: 260px;
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__photos img:nth-child(n + 3) {
        display: none;
    }

    .hero__card {
        position: relative;
        width: auto;
        margin: -64px 16px 0;
        padding: 32px 22px 30px;
    }

    .page-head {
        padding-top: 48px;
    }

    .facts {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 36px 20px;
    }

    .facts li + li {
        padding-top: 22px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .steps,
    .know,
    .formats {
        grid-template-columns: 1fr;
    }

    .steps {
        gap: 34px;
    }

    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
        gap: 10px;
    }

    .bento--mini {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 64px;
        gap: 5px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .sticky-bar {
        display: grid;
    }

    .card {
        padding: 22px 18px;
    }

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

    .picks {
        gap: 10px;
    }

    .pick__text small {
        font-size: .78rem;
    }

    .progress li {
        font-size: .7rem;
    }

    .progress b {
        font-size: .62rem;
        letter-spacing: .06em;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .timeline li {
        min-height: 44px;
        padding: 0 0 18px 42px;
        text-align: left;
    }

    .timeline li::before {
        left: 0;
        margin-left: 0;
    }

    .timeline li::after {
        top: 28px;
        left: 12px;
        right: auto;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .quote-card {
        padding: 20px 18px;
    }

    .table thead {
        display: none;
    }

    .table tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .table td {
        display: block;
        padding: 2px 0;
        border: 0;
    }

    .table td[data-label]::before {
        content: attr(data-label) " : ";
        color: var(--muted);
        font-size: .82rem;
    }

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

    .details dd {
        margin-bottom: 10px;
    }

    .lightbox__btn--prev {
        left: 8px;
    }

    .lightbox__btn--next {
        right: 8px;
    }

    .lightbox__close {
        right: 8px;
        top: 8px;
    }
}

@media (max-width: 480px) {
    .cats {
        gap: 12px;
    }

    .cat__body {
        padding: 12px 10px 16px;
    }

    .cat__body h3 {
        font-size: 1rem;
    }

    .cat__body p {
        display: none;
    }

    .cat__delay {
        font-size: .68rem;
    }

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

/* ---------- Annonce en haut du site (onglet Planning, maquette 6) ----------
   Chaque style ne règle que 4 variables : fond, texte, motif, filet. Contrastes texte/fond ≥ 7:1. */
.annonce {
    --bg: #4a2057;
    --fg: #fff;
    --ac: #fee4e5;
    --bd: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    padding: 7px 44px;
    border-bottom: 1px solid var(--bd);
    background: var(--bg);
    color: var(--fg);
    font: 600 .86rem/1.35 var(--f-text);
    text-align: center;
}

.annonce[hidden] {
    display: none;
}

.annonce__txt {
    margin: 0;
    text-wrap: balance;
}

.annonce__motif {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--ac);
}

.annonce__motif--r {
    display: none;
}

.annonce__lien {
    margin-left: .35em;
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.annonce__lien:hover {
    color: inherit;
    text-decoration-thickness: 2px;
}

.annonce__close {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.annonce__close svg {
    width: 14px;
    height: 14px;
}

.annonce__close:hover {
    background: rgba(0, 0, 0, .08);
}

.annonce :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

.annonce a:focus-visible {
    outline-offset: 2px;
}

@media (min-width: 700px) {
    .annonce {
        padding: 9px 56px;
    }

    .annonce__motif--r {
        display: block;
    }
}

.annonce--classique { --bg: #4a2057; --fg: #fff; --ac: #fee4e5; }
.annonce--noel { --bg: #1f4a3a; --fg: #fff; --ac: #e8c77a; }
.annonce--paques { --bg: #e9f1d2; --fg: #34431a; --ac: #6b8a2b; }
.annonce--saint-valentin { --bg: #fee4e5; --fg: #8c1d4a; --ac: #c2456f; }
.annonce--fete-des-meres { --bg: #efe3f4; --fg: #4a2057; --ac: #9a5fb0; }
.annonce--rentree { --bg: #f4dfbd; --fg: #5a2e0a; --ac: #b5651d; }
.annonce--conges { --bg: #fff1d6; --fg: #6b4300; --ac: #b07a00; --bd: #e8c77a; }
.annonce--nouveaute { --bg: #fff9f5; --fg: #4a2057; --ac: #c2456f; --bd: #e8dde0; }

/* Flyer ouvert par le lien de l'annonce (maquette 14) : ajusté à l'écran, un clic sur l'image zoome pour lire
   le texte, sur fond noir. */
.flyer {
    width: min(96vw, 1100px);
    max-width: none;
    max-height: 94vh;
}

.flyer::backdrop {
    background: rgba(0, 0, 0, .85);
}

.flyer__scroll {
    max-height: 94vh;
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 4px;
}

.flyer img {
    width: 100%;
    max-height: none;
    height: auto;
    cursor: zoom-in;
}

/* Croix du site (#i-close), discrète : voile sombre translucide dans le coin du flyer */
.flyer__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--r);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}

.flyer__close svg {
    width: 14px;
    height: 14px;
}

.flyer__close:hover {
    background: rgba(0, 0, 0, .6);
}

.flyer__close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.flyer.is-zoomed img {
    width: 220%;
    max-width: none;
    cursor: zoom-out;
}

/* Admin, module « Annonce » : formulaire à gauche, aperçu collant à droite */
.flyer-field {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.flyer-field__current {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.flyer-field__current img {
    width: 160px;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.announcement-admin {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin-top: 8px;
}

.announcement-admin .card {
    padding: 24px;
}

.announcement-admin__preview {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.announcement-admin__rules {
    display: grid;
    gap: 6px;
    margin: 14px 0 0;
    padding-left: 1.2em;
}

@media (max-width: 960px) {
    .announcement-admin {
        grid-template-columns: minmax(0, 1fr);
    }

    .announcement-admin__preview {
        position: static;
        order: -1;
    }
}

/* Aperçu et choix du style par pastilles */
.annonce-preview {
    overflow: hidden;
    border: 1px dashed var(--field);
    border-radius: 6px;
}

.annonce-preview__site {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--white);
    color: var(--muted);
    font: 600 .72rem var(--f-title);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.annonce-preview__site img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.styles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.styles-field {
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.style-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
}

.style-chip input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.style-chip__sw {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 50%;
    background: var(--bg);
    color: var(--ac);
}

.style-chip__sw svg {
    width: 16px;
    height: 16px;
}

.style-chip:has(input:checked) {
    border-color: var(--prune);
    background: var(--cream);
    box-shadow: inset 0 0 0 2px var(--prune);
}

.style-chip:has(input:focus-visible) {
    outline: 3px solid var(--prune);
    outline-offset: 2px;
}

/* ---------- Administration : planning ---------- */
.planning {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin-top: 8px;
}

.planning__h {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.planning__h small {
    color: var(--muted);
    font: 400 .84rem var(--f-text);
}

.planning__sub {
    margin: 22px 0 4px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cal-head__title {
    margin: 0;
    font-size: 1.15rem;
}

.cal-nav {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--prune);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}

.cal-nav:hover {
    border-color: var(--prune);
}

.cal-today {
    margin: 4px 0 0;
    font-size: .84rem;
    text-align: center;
}

.cal {
    width: 100%;
    margin-top: 10px;
    border-collapse: separate;
    border-spacing: 4px;
    table-layout: fixed;
}

.cal th {
    color: var(--muted);
    font: 700 .68rem var(--f-title);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cal td {
    padding: 0;
}

.day {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 3px;
    min-height: 58px;
    padding: 6px 2px 4px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font: 600 .92rem var(--f-title);
    text-decoration: none;
}

.day:hover {
    border-color: var(--prune);
}

.day__dots {
    display: flex;
    gap: 3px;
}

.day__dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--prune);
}

.day__tag {
    color: var(--muted);
    font: 700 .58rem var(--f-text);
    letter-spacing: .02em;
    text-transform: uppercase;
}

.day.is-past {
    border-color: transparent;
    background: #faf7f8;
    color: #8a7d88;
}

.day.is-past .day__dots i {
    background: #b9adb6;
}

.day.is-today {
    box-shadow: inset 0 0 0 2px var(--prune);
}

.day.is-closed {
    background: repeating-linear-gradient(135deg, #f6edf0 0 5px, var(--white) 5px 10px);
}

.day.is-closed .day__tag {
    color: var(--error);
}

.day.is-full {
    border-color: #f0d9a8;
    background: #fff1d6;
}

.day.is-full .day__tag {
    color: #7a4d00;
}

.day.is-selected {
    border-color: var(--prune);
    background: var(--prune);
    color: var(--white);
}

.day.is-selected .day__dots i {
    background: var(--white);
}

.day.is-selected .day__tag {
    color: #f6d9ff;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 8px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: .8rem;
    list-style: none;
}

.cal-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 1px solid var(--line);
    border-radius: 2px;
    vertical-align: -1px;
}

.cal-legend .cal-legend__dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: var(--prune);
    vertical-align: 1px;
}

.cal-legend .cal-legend__full {
    border-color: #f0d9a8;
    background: #fff1d6;
}

.cal-legend .cal-legend__closed {
    background: repeating-linear-gradient(135deg, #ead9df 0 3px, var(--white) 3px 6px);
}

.dayinfo {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--cream);
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.dayinfo__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.dayinfo__head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.dayinfo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-top: 14px;
}

.dayinfo__close {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dayinfo__close input {
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid var(--field);
    border-radius: var(--r);
    font: inherit;
    font-size: .88rem;
}

.pickups {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.pickup {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}

.pickup img {
    width: 48px;
    height: 48px;
    border-radius: 3px;
    object-fit: cover;
}

.pickup__when {
    display: block;
    color: var(--prune);
    font: 700 .7rem var(--f-title);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pickup__title {
    display: block;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.3;
}

.pickup__who {
    display: block;
    color: var(--muted);
    font-size: .84rem;
}

.pay-pill {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 9px;
    border-radius: 10px;
    background: var(--paper);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}

.pay-pill--ok {
    background: #e6f2e8;
    color: var(--success);
}

.pay-pill--warn {
    background: #fff1d6;
    color: #7a4d00;
}

.pay-pill--closed {
    margin: 0;
    background: #fdecef;
    color: var(--error);
}

.planning-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    margin-top: 40px;
}

.planning-settings .card {
    padding: 24px;
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.closures {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.closures li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--cream);
}

.closures b,
.closures .small {
    display: block;
}

/* ---------- Administration : devis chiffré et paiements ---------- */
.quote-admin {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin-top: 28px;
}

.quote-admin .card {
    padding: 24px;
}

.quote-admin .card + .card {
    margin-top: 20px;
}

.quote-admin h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

/* Fiche devis, colonne de gauche : la demande, le retrait, le client, l'historique */
.quote-side__label {
    margin: 18px 0 6px;
    color: var(--muted);
    font: 600 .72rem/1.6 var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.quote-side__message {
    margin: 0;
    padding: 12px 14px;
    border-left: 3px solid var(--prune);
    background: var(--cream);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.quote-side__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 12px;
}

.quote-side__pickup {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 0;
}

.quote-side__pickup b {
    color: var(--prune);
    font: 700 1.05rem var(--f-title);
}

.quote-side__pickup span {
    color: var(--muted);
}

.quote-side .time-change {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.quote-side__contact {
    margin: 0;
}

.quote-side__contact .pay-pill {
    margin: 0 0 0 6px;
    vertical-align: 1px;
}

.quote-side__history summary {
    cursor: pointer;
    list-style: none;
}

.quote-side__history summary::-webkit-details-marker {
    display: none;
}

.quote-side__history summary h2 {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
}

.quote-side__history summary h2::before {
    content: "▸";
    color: var(--prune);
    font-size: .85em;
    transition: transform .15s;
}

.quote-side__history[open] summary h2::before {
    transform: rotate(90deg);
}

.quote-side__history .history {
    margin: 16px 0 0 6px;
}

.money {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 4px;
    background: var(--paper);
}

.money dt,
.money dd {
    margin: 0;
}

.money dd {
    font: 700 1rem var(--f-title);
    text-align: right;
}

.payments {
    display: grid;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.payment {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.payment.is-paid {
    border-color: #cfe3d3;
    background: #f3f9f4;
}

.payment b {
    display: block;
}

.payment__form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.payment__form select {
    min-height: 38px;
    padding: 4px 8px;
    border: 1px solid var(--field);
    border-radius: var(--r);
    background: var(--white);
    font: inherit;
    font-size: .88rem;
}

.history {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0 0 0 18px;
    border-left: 2px solid var(--line);
    font-size: .9rem;
    list-style: none;
}

.history li {
    position: relative;
}

.history li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -25px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--prune);
    border-radius: 50%;
    background: var(--white);
}

.history time {
    display: block;
    color: var(--muted);
    font-size: .78rem;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-top: 14px;
}

/* Espace client : devis à accepter */
.offer {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-left: 3px solid var(--prune);
    background: var(--cream);
    white-space: pre-line;
}

/* Devis PDF joint par Marine */
.quote-doc {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--white);
    color: inherit;
    text-decoration: none;
    max-width: 100%;
}

.quote-doc:hover,
.quote-doc:focus-visible {
    border-color: var(--prune);
}

.quote-doc__icon {
    flex: none;
    padding: 6px 7px;
    border-radius: var(--r);
    background: var(--prune);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.quote-doc__name {
    display: block;
    font-size: 0.85em;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status--quote_sent {
    background: #fff1d6;
}

/* Formulaire de devis : calendrier de choix de la date */
.pickcal {
    max-width: 380px;
    margin: 4px 0 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.pickcal .cal-nav {
    width: 38px;
    height: 38px;
    background: var(--white);
    cursor: pointer;
}

.pickcal .cal-nav[disabled] {
    opacity: .35;
    cursor: default;
}

.pickcal__title {
    font: 700 1rem var(--f-title);
    color: var(--prune);
}

.pickcal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    margin-top: 8px;
}

.pickcal__dow {
    color: var(--muted);
    font: 700 .64rem var(--f-title);
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
}

.pickcal__day {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 40px;
    padding: 2px 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font: 600 .88rem var(--f-title);
    cursor: pointer;
}

.pickcal__day small {
    font: 700 .5rem var(--f-text);
    letter-spacing: .02em;
    text-transform: uppercase;
}

.pickcal__day:hover:not([aria-disabled="true"]) {
    border-color: var(--prune);
}

.pickcal__day[aria-disabled="true"] {
    border-color: transparent;
    background: #faf7f8;
    color: #8a7d88;
    text-decoration: line-through;
}

.pickcal__day.is-full {
    border-color: #f0d9a8;
    background: #fff1d6;
    color: #7a4d00;
    text-decoration: none;
}

.pickcal__day[aria-pressed="true"] {
    border-color: var(--prune);
    background: var(--prune);
    color: var(--white);
}

.pickcal__why {
    min-height: 1.4em;
    margin: 10px 0 0;
    font-size: .86rem;
}

@media (max-width: 960px) {
    .planning,
    .planning-settings,
    .quote-admin {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .cal {
        border-spacing: 2px;
    }

    .day {
        min-height: 48px;
        font-size: .84rem;
    }

    .day__tag {
        font-size: .5rem;
    }

    .planning-settings .card,
    .quote-admin .card {
        padding: 18px;
    }
}

/* ---------- Administration : campagnes e-mail ---------- */
.kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 24px;
}

.kpi {
    padding: 14px 16px;
    border-radius: 6px;
    background: var(--paper);
}

.kpi b {
    display: block;
    color: var(--prune);
    font: 700 1.5rem var(--f-title);
}

.kpi span {
    color: var(--muted);
    font-size: .84rem;
}

.campaigns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.campaigns__table .n {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.campaigns__table tr.is-selected td {
    background: var(--cream);
}

.camp {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.camp b {
    display: block;
    line-height: 1.25;
}

.camp:hover b {
    color: var(--prune);
    text-decoration: underline;
}

.camp__dot {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
    background: var(--bg);
    color: var(--ac);
}

.camp__dot svg {
    width: 15px;
    height: 15px;
}

.campaign-detail {
    padding: 22px;
}

.campaign-detail h2 {
    margin: 0 0 2px;
    font-size: 1.2rem;
}

.campaign-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 10px;
}

.sendbar {
    height: 10px;
    margin: 0 0 12px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--line);
}

.sendbar i {
    display: block;
    height: 100%;
    background: var(--prune);
}

.funnel {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.funnel li {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    font-size: .88rem;
}

.funnel__bar {
    height: 12px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--line);
}

.funnel__bar i {
    display: block;
    height: 100%;
    background: var(--prune);
}

.funnel b {
    font: 700 1rem var(--f-title);
    font-variant-numeric: tabular-nums;
}

.quotes-from {
    display: grid;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: .88rem;
}

.quotes-from li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    background: var(--cream);
}

/* Rédaction d'une campagne */
.campaign-edit {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.campaign-edit .card {
    padding: 24px;
}

.campaign-reuse {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--fg);
}

.campaign-reuse svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--ac);
}

.campaign-reuse p {
    flex: 1;
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
}

.campaign-reuse a {
    flex: none;
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: var(--r);
    color: inherit;
    font: 700 .74rem var(--f-title);
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.photo-picks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
    max-height: 250px;
    margin: 4px 0;
    padding: 2px;
    overflow-y: auto;
    list-style: none;
}

.photo-picks label {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.photo-picks input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.photo-picks img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-picks__none {
    display: grid;
    place-items: center;
    height: 100%;
    background: var(--paper);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
}

.photo-picks label:has(input:checked) {
    border-color: var(--prune);
    box-shadow: inset 0 0 0 2px var(--white);
}

.photo-picks label:has(input:focus-visible) {
    outline: 3px solid var(--prune);
    outline-offset: 2px;
}

.campaign-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--paper);
}

.campaign-total b {
    color: var(--prune);
    font: 700 1.4rem var(--f-title);
}

.campaign-preview {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.mail-preview {
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.mail-preview__head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: #f6f1f3;
    font-size: .8rem;
}

.mail-preview__head b {
    display: block;
    font-size: .95rem;
}

.mail-preview__head span {
    color: var(--muted);
}

.mail-preview__band {
    padding: 16px 18px;
    background: var(--bg);
    color: var(--fg);
    font: 700 1.05rem/1.3 var(--f-title);
    text-align: center;
}

.mail-preview__logo {
    width: 64px;
    height: 64px;
    margin: 14px auto 0;
    border-radius: 50%;
}

.mail-preview__photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 14px;
    object-fit: cover;
}

.mail-preview__photo[hidden] {
    display: none;
}

.mail-preview__body {
    padding: 14px 18px 6px;
    font-size: .92rem;
}

.mail-preview__body p {
    margin: 0 0 12px;
}

.mail-preview__msg {
    white-space: pre-line;
}

.mail-preview__foot {
    margin: 0;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .72rem;
    text-align: center;
}

.unsubscribe {
    max-width: 620px;
    margin: 0 auto;
}

.unsubscribe h1 {
    font-size: clamp(1.4rem, 3.4vw, 1.9rem);
}

.camp > span:last-child {
    min-width: 180px;
}

@media (max-width: 1180px) {
    .campaigns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 960px) {
    .campaigns,
    .campaign-edit {
        grid-template-columns: minmax(0, 1fr);
    }

    .campaign-preview {
        position: static;
    }
}

@media (max-width: 600px) {
    .kpis {
        grid-template-columns: minmax(0, 1fr);
    }

    .funnel li {
        grid-template-columns: 100px minmax(0, 1fr) auto;
    }
}

/* ---------- Demande de devis, étape 1 : la liste des gâteaux, puis un écran par gâteau ---------- */
.pcpicks__title,
.qlines__title {
    display: block;
    margin: 18px 0 8px;
    color: var(--prune);
    font: 700 .74rem var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pcpicks__title:first-child {
    margin-top: 0;
}

.pcpicks__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Un gâteau de la liste : tout le bloc ouvre son écran */
.pcard {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.pcard:hover:not([disabled]) {
    border-color: var(--prune);
    box-shadow: var(--shadow);
}

.pcard {
    min-height: 104px;
}

/* Hauteur 0 + min-height 100 % : la photo suit la hauteur du texte, quel que soit son format */
.pcard img {
    width: 132px;
    height: 0;
    min-height: 100%;
    object-fit: cover;
}

.pcard__text {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 3px;
    padding: 12px 14px;
}

.pcard__text b {
    font: 700 1.05rem var(--f-title);
}

.pcard__text small {
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.4;
}

.pcard__meta {
    color: var(--prune);
    font-size: .8rem;
    font-weight: 600;
}

.pcard__count {
    grid-column: 2;
    justify-self: start;
    margin: -6px 0 10px 14px;
    padding: 1px 9px;
    border-radius: 10px;
    background: var(--prune);
    color: var(--white);
    font-size: .74rem;
    font-weight: 700;
}

.pcard__count[hidden] {
    display: none;
}

.pcard__go {
    grid-row: 1 / span 2;
    grid-column: 3;
    display: grid;
    place-items: center;
    padding: 0 18px;
    color: var(--prune);
    font-size: 1.6rem;
}

.pcard[disabled] {
    background: #faf7f8;
    cursor: not-allowed;
}

.pcard[disabled] img {
    filter: grayscale(.8);
    opacity: .6;
}

.pcard[disabled] .pcard__go {
    visibility: hidden;
}

.pcard img,
.pcard__text {
    grid-row: 1 / span 2;
}

.pcard__count:not([hidden]) ~ .pcard__go,
.pcard:has(.pcard__count:not([hidden])) .pcard__text {
    grid-row: 1;
}

/* « Votre demande » : les gâteaux déjà personnalisés */
.qchosen {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 6px;
    background: var(--paper);
}

.qchosen[hidden] {
    display: none;
}

.qchosen__title {
    margin: 0 0 8px;
    color: var(--prune);
    font: 700 .74rem var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.qchosen__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qchosen__item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    font-size: .93rem;
}

.qchosen__item img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
}

.qchosen__item small {
    display: block;
}

.qchosen__act {
    display: flex;
    gap: 14px;
}

/* Écran d'un gâteau */
.qcfg[hidden] {
    display: none;
}

.qcfg__hero {
    position: relative;
    height: 200px;
    margin: -32px -32px 22px;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

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

.qcfg__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(46, 20, 55, .82));
}

.qcfg__heading {
    position: absolute;
    right: 24px;
    bottom: 16px;
    left: 24px;
    z-index: 1;
    color: var(--white);
}

.qcfg__heading .step__title {
    margin: 0 0 2px;
    color: var(--white);
}

.qcfg__heading span {
    font-size: .9rem;
}

.qcfg__back {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    min-height: 36px;
    padding: 4px 14px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    color: var(--prune);
    font: 700 .84rem var(--f-text);
    cursor: pointer;
}

.qcfg__q {
    margin: 0 0 22px;
}

.qcfg__label {
    display: block;
    margin: 0 0 8px;
    color: var(--prune);
    font: 700 1.02rem var(--f-title);
}

.qcfg__label small {
    color: var(--muted);
    font: 400 .82rem var(--f-text);
}

.qcfg .field__help {
    margin: 6px 0 0;
}

.qcfg .chips {
    margin: 0;
}

.qcfg .chip {
    min-height: 42px;
    padding: .2em 1.1em;
    border-radius: 21px;
    background: var(--white);
    font: inherit;
    font-size: .92rem;
    cursor: pointer;
}

.qcfg .chip b {
    font-weight: 600;
}

.qcfg .chip[aria-pressed="true"] {
    border-color: var(--prune);
    background: var(--prune);
    color: var(--white);
}

/* Réponses avec précision : en cartes */
.qcards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.qcard {
    display: grid;
    align-content: start;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid var(--field);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.qcard b {
    font: 700 .95rem var(--f-title);
}

.qcard span {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.35;
}

.qcard:hover,
.qcfg .chip:hover {
    border-color: var(--prune);
}

.qcard[aria-pressed="true"] {
    border-color: var(--prune);
    box-shadow: inset 0 0 0 1px var(--prune);
}

.qcard[aria-pressed="true"] b {
    color: var(--prune);
}

.qcard[aria-pressed="true"] b::before {
    content: "✓ ";
}

.qcfg__input {
    width: 100%;
    min-height: 48px;
    padding: .6em 1em;
    border: 1px solid var(--field);
    border-radius: var(--r);
    background: var(--white);
    color: var(--ink);
    font: 400 1rem var(--f-text);
}

.qcfg__input:focus {
    border-color: var(--prune);
    outline: 3px solid rgba(159, 78, 206, .35);
}

.qcfg__input--num {
    width: 110px;
}

.qcfg__other {
    margin-top: 10px;
}

.qcfg__other[hidden] {
    display: none;
}

.qcfg__tip {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-left: 3px solid var(--brand);
    background: var(--cream);
    font-size: .9rem;
}

.qcfg__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

/* Marges de la carte du formulaire plus petites sur téléphone (voir .card) */
@media (max-width: 720px) {
    .qcfg__hero {
        margin: -22px -18px 18px;
    }
}

/* Lignes du formulaire : visibles sans JavaScript, cachées avec (résumées dans « Votre demande ») */
.is-stepped .qlines,
.is-stepped .qlines__title {
    display: none;
}

@media (max-width: 560px) {
    .pcard {
        grid-template-columns: 96px minmax(0, 1fr) auto;
    }

    .pcard img {
        width: 96px;
    }

    .pcard__go {
        padding: 0 10px;
    }

    .qcfg__hero {
        height: 170px;
    }

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

    .qchosen__item img {
        width: 40px;
        height: 40px;
    }

    .qchosen__act {
        grid-column: 2;
    }

    .qcfg__actions .btn {
        flex: 1;
    }
}

.qlines {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qline {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--cream);
}

.qline .field {
    margin-bottom: 8px;
}

.pickup-cal[hidden] {
    display: none;
}

.qline__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 140px));
    gap: 12px;
}

.suggest {
    min-height: 34px;
    padding: 0 12px;
    border: 1px dashed var(--field);
    border-radius: 17px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
}

.suggest[aria-pressed="true"] {
    border-style: solid;
    border-color: var(--prune);
    background: var(--prune);
    color: var(--white);
}

.recap__line {
    display: block;
}

.recap__line + .recap__line {
    margin-top: 4px;
}

/* ---------- Administration : produits ---------- */
.products-admin {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

.plist {
    display: grid;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.prod {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
}

.prod:hover {
    border-color: var(--prune);
}

.prod img {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    object-fit: cover;
}

.prod b {
    display: block;
}

.prod .small {
    display: block;
}

.prod .pay-pill {
    margin-top: 4px;
}

.prod.is-paused img {
    filter: grayscale(.7);
    opacity: .7;
}

.prod__chev {
    color: var(--prune);
    font-size: 1.3rem;
    font-weight: 700;
}

.quota {
    display: block;
    height: 6px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--line);
}

.quota i {
    display: block;
    height: 100%;
    background: var(--prune);
}

.product-form {
    max-width: 820px;
    padding: 24px;
}

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

.pickup-cal {
    margin: -6px 0 16px;
}

.pickup-cal__month {
    margin: 8px 0 4px;
    color: var(--prune);
    font: 700 .9rem var(--f-title);
    text-transform: capitalize;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.photo-upload input[type="file"] {
    max-width: 100%;
    color: var(--muted);
    font: inherit;
    font-size: .9rem;
}

.photo-upload input[type="file"]::file-selector-button {
    min-height: 44px;
    margin-right: 12px;
    padding: .45em 1.2em;
    border: 1px solid var(--prune);
    border-radius: var(--r);
    background: transparent;
    color: var(--prune);
    font: 600 .8rem var(--f-text);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.photo-upload input[type="file"]::file-selector-button:hover {
    background: var(--rose);
}

.photo-upload__preview {
    display: block;
    width: 96px;
    height: 96px;
    margin: -6px 0 16px;
    border: 2px solid var(--prune);
    border-radius: 4px;
    object-fit: cover;
}

.photo-upload__preview[hidden] {
    display: none;
}

.product-actions__delete {
    margin-left: auto;
}

@media (max-width: 960px) {
    .products-admin {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .form-grid--3 {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* Détail des gâteaux d'une demande */
.quote-lines {
    display: grid;
    gap: 4px;
    margin: 0 0 10px;
    padding-left: 1.1em;
}

/* Réponses aux questions du produit, sous chaque gâteau */
.quote-answers {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 1px 10px;
    margin: 4px 0 6px;
    font-size: .88rem;
}

.quote-answers dt {
    color: var(--muted);
}

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

@media (max-width: 480px) {
    .quote-answers {
        grid-template-columns: minmax(0, 1fr);
    }

    .quote-answers dd {
        margin-bottom: 4px;
    }
}

/* Planning : ce qu'il faut produire le jour choisi */
.planning__produce-title {
    margin: 0 0 6px;
    color: var(--prune);
    font: 700 .74rem var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.produce {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.produce > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: baseline;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}

.produce > li > b {
    color: var(--prune);
    font: 700 1.1rem var(--f-title);
}

.produce ul {
    grid-column: 1 / -1;
    margin: 0;
    padding-left: 1.1em;
    color: var(--muted);
    font-size: .84rem;
}

/* ---------- Créneaux de retrait (planning) ---------- */
.alert--info {
    border-color: var(--prune);
    background: var(--cream);
}

.planning-settings__wide {
    grid-column: 1 / -1;
}

.week-hours {
    display: grid;
    gap: 6px;
    margin: 0 0 18px;
}

.week-hours__row {
    display: grid;
    grid-template-columns: 7.5em minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.week-hours__row legend {
    float: left;
    padding: 0;
    font-weight: 700;
}

.week-hours__sum {
    grid-column: 2;
}

.slot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Une colonne par heure : « 10h » au-dessus, « 10h30 » en dessous */
.slot-chips__hour {
    display: grid;
    gap: 4px;
}

.slot-chip {
    position: relative;
    cursor: pointer;
}

.slot-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot-chip span {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 32px;
    padding: 0 6px;
    border: 1px dashed var(--field);
    border-radius: 18px;
    background: var(--white);
    color: var(--muted);
    font-size: .84rem;
    font-weight: 600;
}

.slot-chip:hover span {
    border-color: var(--prune);
    color: var(--prune);
}

.slot-chip input:checked + span {
    border-style: solid;
    border-color: var(--prune);
    background: var(--prune);
    color: var(--white);
}

.slot-chip input:focus-visible + span {
    outline: 2px solid var(--prune);
    outline-offset: 2px;
}

.slot-chip b {
    min-width: 1.4em;
    border-radius: 9px;
    background: var(--rose);
    color: var(--ink);
    font-size: .72rem;
    line-height: 1.4em;
    text-align: center;
}

.dayslots {
    margin-top: 14px;
}

.dayslots__line {
    margin: 0;
}

.opening-intro {
    max-width: 62ch;
    color: var(--muted);
}

.opening {
    margin-top: 24px;
}

.day-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    margin: 0 0 16px;
}

.day-pick label {
    font-weight: 700;
}

.day-pick input {
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid var(--field);
    border-radius: var(--r);
    font: inherit;
}

.day-hours {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.day-hours legend {
    margin-bottom: 8px;
    padding: 0;
    font-weight: 700;
}

#calendrier {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.dayslots__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-top: 10px;
}

.day.is-custom {
    box-shadow: inset 0 -3px 0 var(--prune);
}

.cal-legend .cal-legend__custom {
    border-radius: 0;
    background: none;
    box-shadow: inset 0 -3px 0 var(--prune);
}

@media (max-width: 600px) {
    .week-hours__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .week-hours__sum {
        grid-column: 1;
    }
}

.time-change {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    margin-top: 6px;
}

.time-change select {
    min-height: 38px;
    padding: 4px 8px;
    border: 1px solid var(--field);
    border-radius: var(--r);
    font: inherit;
    font-size: .88rem;
}

/* ---------- Sections des pages : variantes choisies par Marine (module Pages, maquette 10) ---------- */
.sec--rose {
    background: var(--rose);
}

.sec__head--left {
    margin-left: 0;
    text-align: left;
}

.prose--left {
    margin-left: 0;
}

.prose--flush {
    max-width: none;
    margin: 0;
}

.prose--flush > :first-child {
    margin-top: 0;
}

.actions--start {
    justify-content: flex-start;
    margin-top: 24px;
}

.hero--left {
    place-items: center start;
    padding-left: max(24px, 6vw);
}

.hero--left .hero__card {
    text-align: left;
}

.hero--left .hero__card p {
    margin-left: 0;
}

.split--photo {
    align-items: center;
}

.split--rev > :first-child {
    order: 2;
}

.split__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.recipe__body h3 {
    margin: 1em 0 0;
    color: var(--muted);
    font: 600 .72rem var(--f-title);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.recipe__body p {
    margin: .2em 0 0;
}

.faq--center {
    max-width: 760px;
    margin: 0 auto;
}

.quote-block {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.quote-block blockquote {
    margin: 0;
    color: var(--prune);
    font: 500 clamp(1.15rem, 2.4vw, 1.45rem)/1.5 var(--f-title);
}

.quote-block blockquote p {
    margin: 0;
}

.quote-block blockquote p::before {
    content: "« ";
}

.quote-block blockquote p::after {
    content: " »";
}

.quote-block figcaption {
    margin-top: 10px;
    color: var(--muted);
}

@media (max-width: 960px) {
    .split--rev > :first-child {
        order: 0;
    }

    .hero--left {
        place-items: center;
        padding-left: 24px;
    }
}

/* Aperçu du brouillon dans l'éditeur : chaque section est cliquable */
.pv-sec {
    position: relative;
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: outline-color .15s;
}

.pv-sec:hover {
    outline-color: #c9a3d6;
}

.pv-sec.is-sel {
    outline: 3px solid var(--brand);
}

.pv-sec__label {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 5;
    padding: 2px 9px;
    border-radius: 10px;
    background: var(--brand);
    color: var(--white);
    font: 700 .72rem var(--f-title);
    opacity: 0;
    pointer-events: none;
}

.pv-sec:hover .pv-sec__label,
.pv-sec.is-sel .pv-sec__label {
    opacity: 1;
}

.pv-sec__hidden {
    margin: 0;
    padding: 14px;
    background: repeating-linear-gradient(45deg, #f6f1f3, #f6f1f3 8px, #efe8eb 8px, #efe8eb 16px);
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

/* ---------- Administration : pages ---------- */
.wrap--wide {
    max-width: 1440px;
}

.pe-pages {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.pe-pages__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}

.pe-pages__row > div {
    display: grid;
}

.pe-pages__name {
    color: var(--prune);
    font: 700 1.02rem var(--f-title);
    text-decoration: none;
}

a.pe-pages__name:hover {
    text-decoration: underline;
}

.pe-pages__row--locked {
    background: #faf7f8;
}

.pe-pages__row--locked .pe-pages__name {
    color: var(--muted);
}

.pe {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.pe__side {
    min-width: 0;
    padding: 18px 20px 28px;
    border-right: 1px solid var(--line);
    background: #fcfafb;
}

.pe__title {
    margin: 0;
    font-size: 1.4rem;
}

.pe__url {
    margin: 0 0 8px;
}

.pe__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ece5e8;
}

.pe-list {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.pe-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 4px 4px 4px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    font-size: .88rem;
}

.pe-row[draggable="true"] {
    cursor: grab;
}

.pe-row.is-drag {
    opacity: .4;
}

.pe-row.is-over {
    border-color: var(--prune);
    box-shadow: 0 -3px 0 var(--prune);
}

.pe-row.is-sel {
    border-color: var(--prune);
    box-shadow: 0 0 0 1px var(--prune);
}

.pe-row--off .pe-row__txt {
    opacity: .55;
}

.pe-row__grip {
    color: var(--field);
    letter-spacing: -2px;
    text-align: center;
}

.pe-row__txt {
    display: grid;
    min-width: 0;
    padding: 4px 0;
    color: var(--ink);
    text-decoration: none;
}

.pe-row__txt b {
    font-weight: 700;
    line-height: 1.3;
}

.pe-row__txt > span {
    overflow: hidden;
    color: var(--muted);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pe-row__txt:hover b {
    color: var(--prune);
    text-decoration: underline;
}

.pe-row__act {
    display: flex;
}

.pe-row__act .icon-btn {
    width: 32px;
    height: 32px;
}

.pe-tag {
    display: inline-block;
    padding: 0 7px;
    border-radius: 8px;
    background: #efe4f3;
    color: var(--prune);
    font-size: .68rem;
    font-weight: 700;
    vertical-align: 1px;
}

.pe-tag--off {
    background: #f0ebed;
    color: var(--muted);
}

.pe-add,
.pe-seo,
.pe-tokens {
    margin-top: 12px;
}

.pe-add > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 2px dashed var(--field);
    border-radius: 4px;
    color: var(--prune);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.pe-add > summary::-webkit-details-marker {
    display: none;
}

.pe-palette {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.pe-palette button {
    display: grid;
    align-content: start;
    gap: 4px;
    width: 100%;
    height: 100%;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    text-align: left;
    cursor: pointer;
}

.pe-palette button:hover,
.pe-palette button:focus-visible {
    border-color: var(--prune);
    box-shadow: 0 0 0 1px var(--prune);
}

.pe-palette b {
    color: var(--prune);
    font: 700 .86rem var(--f-title);
}

.pe-palette button > span:last-child {
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.35;
}

/* Vignettes de la palette : un petit croquis par type */
.pe-mini {
    display: grid;
    gap: 4px;
    align-content: center;
    justify-items: center;
    height: 46px;
    padding: 6px;
    border-radius: 4px;
    background: var(--paper);
}

.pe-mini i {
    display: block;
    width: 70%;
    height: 5px;
    border-radius: 3px;
    background: #d9c3cf;
}

.pe-mini i:first-child {
    width: 45%;
    height: 7px;
    background: var(--prune);
}

.pe-mini--hero,
.pe-mini--final,
.pe-mini--quote {
    background: var(--rose);
}

.pe-mini--gallery,
.pe-mini--categories,
.pe-mini--facts {
    grid-template-columns: repeat(3, 1fr);
    justify-items: stretch;
}

.pe-mini--gallery i,
.pe-mini--categories i,
.pe-mini--facts i,
.pe-mini--gallery i:first-child,
.pe-mini--categories i:first-child,
.pe-mini--facts i:first-child {
    width: auto;
    height: 30px;
    background: #d7b8c8;
}

.pe-mini--facts i,
.pe-mini--facts i:first-child {
    height: 14px;
}

.pe-mini--photo_text,
.pe-mini--text_aside {
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
}

.pe-mini--photo_text i:first-child,
.pe-mini--text_aside i:last-child {
    grid-row: span 2;
    width: auto;
    height: 30px;
    background: #d7b8c8;
}

.pe-mini--text_aside i:last-child {
    background: var(--white);
    box-shadow: 0 0 0 1px #e3d3db;
}

.pe-form {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.pe-form__title {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.pe-form .field {
    margin-bottom: 12px;
}

.pe-form__save {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    margin: 14px 0 0;
}

.pe-form__more {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.pe-form__more form {
    margin: 0;
}

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

.pe-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: .84rem;
}

.pe-note form {
    margin: 4px 0 0;
}

.pe-note--shared {
    background: #efe4f3;
    color: var(--prune);
}

.pe-note--auto {
    background: #e6f2e8;
    color: var(--success);
}

.pe-choice {
    border: 0;
    padding: 0;
}

.pe-choice__opts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pe-choice__opts label {
    position: relative;
}

.pe-choice__opts input {
    position: absolute;
    opacity: 0;
}

.pe-choice__opts span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--field);
    border-radius: 18px;
    background: var(--white);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}

.pe-choice__opts input:checked + span {
    border-color: var(--prune);
    background: var(--prune);
    color: var(--white);
}

.pe-choice__opts input:focus-visible + span {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.pe-items {
    border: 0;
    padding: 0;
}

.pe-items__list {
    display: grid;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.pe-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 10px 6px 4px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}

.pe-item .field {
    margin-bottom: 8px;
}

.pe-item__fields {
    min-width: 0;
}

.pe-item__act {
    display: flex;
    flex-direction: column;
}

.pe-item__act .icon-btn {
    width: 30px;
    height: 30px;
}

.pe-photo {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pe-photo img {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    object-fit: cover;
}

.pe-rte {
    border: 1px solid var(--field);
    border-radius: var(--r);
    background: var(--white);
}

.pe-rte:focus-within {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

.pe-rte__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
    padding: 4px;
    border-bottom: 1px solid var(--line);
    background: #faf6f8;
}

.pe-rte__bar button {
    min-height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: 4px;
    background: none;
    font-size: .8rem;
    cursor: pointer;
}

.pe-rte__bar button:hover {
    background: #efe4f3;
}

.pe-rte__bar select {
    max-width: 100%;
    min-height: 32px;
    margin-left: auto;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    font-size: .76rem;
}

.pe-rte__ed {
    min-height: 120px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 12px;
    font-size: .92rem;
    line-height: 1.55;
    outline: none;
}

.pe-rte__ed p,
.pe-rte__ed ul {
    margin: 0 0 .6em;
}

.pe-rte__ed ul {
    padding-left: 1.2em;
}

.pe-rte__ed h2,
.pe-rte__ed h3 {
    margin: .6em 0 .3em;
    font-size: 1.05rem;
}

.pe-rte__ed a {
    color: var(--prune);
}

.pe-auto {
    display: inline-block;
    padding: 0 6px;
    border-radius: 9px;
    background: #efe4f3;
    color: var(--prune);
    font-weight: 700;
    white-space: nowrap;
}

.pe-tokens summary,
.pe-seo summary,
.pe-history summary {
    color: var(--prune);
    font-weight: 700;
    cursor: pointer;
}

.pe-tokens dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 2px 12px;
    margin: 0;
    font-size: .8rem;
}

.pe-tokens dd {
    margin: 0;
    color: var(--muted);
}

.pe-seo {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
}

.pe-seo form {
    margin-top: 10px;
}

.pe-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.pe-bar__act {
    display: flex;
    gap: 8px;
}

.pe-bar__act form {
    margin: 0;
}

.pe-status {
    color: var(--muted);
    font-size: .84rem;
}

.pe-seg {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--field);
    border-radius: 18px;
}

.pe-seg button {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    background: var(--white);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.pe-seg button[aria-pressed="true"] {
    background: var(--prune);
    color: var(--white);
}

.pe-stage {
    overflow: hidden;
    padding: 18px;
}

/* Largeur, hauteur et réduction calculées par assets/page_editor.js */
.pe-frame {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    border-radius: 4px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(46, 37, 48, .15);
    transform-origin: 0 0;
}

.pe-stage--mob .pe-frame {
    max-width: 100%;
    margin: 0 auto;
}

.pe-history {
    margin: 0 18px 18px;
    padding: 12px 14px;
    border-radius: 4px;
    background: var(--white);
}

.pe-versions {
    display: grid;
    gap: 6px;
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.pe-versions li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.pe-versions li > span {
    display: grid;
}

.pe-versions form {
    margin: 0;
}

@media (max-width: 1100px) {
    .pe {
        grid-template-columns: 1fr;
    }

    .pe__side {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

}

@media (max-width: 600px) {
    .pe-pages__row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pe-pages__row .pay-pill {
        grid-row: 2;
        justify-self: start;
    }

    .pe-stage {
        padding: 8px;
    }

    .pe-palette {
        grid-template-columns: 1fr;
    }
}

/* Compteur du titre Google (Administration → Pages) */
[data-seo-counter] {
    display: block;
    margin-top: 2px;
}

[data-seo-counter].is-over {
    color: var(--error);
    font-weight: 600;
}

/* ---------- Module Produits : éditeur des questions posées au client ---------- */
.qedit__list {
    display: grid;
    gap: 14px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.qedit__card {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--cream);
}

.qedit__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--prune);
    font-family: var(--f-title);
}

.qedit__row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 0 14px;
}

.qedit .field {
    margin-bottom: 12px;
}

.qedit__in {
    width: 100%;
    min-height: 42px;
    padding: .45em .8em;
    border: 1px solid var(--field);
    border-radius: var(--r);
    background: var(--white);
    color: var(--ink);
    font: 400 .95rem var(--f-text);
}

.qedit__in:focus {
    border-color: var(--prune);
    outline: 3px solid rgba(159, 78, 206, .35);
}

.qedit__options {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    justify-items: start;
}

.qedit__option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
    gap: 6px;
    width: 100%;
    align-items: center;
}

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

.qedit__check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    font-size: .9rem;
}

.qedit__add {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.qedit__empty {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px dashed var(--field);
    border-radius: 6px;
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 600px) {
    .qedit__row,
    .qedit__option {
        grid-template-columns: minmax(0, 1fr);
    }

    .qedit__option {
        padding-bottom: 8px;
        border-bottom: 1px dashed var(--line);
    }
}

.qedit__head > span {
    display: flex;
    gap: 2px;
}

/* Demande de devis : client qui a déjà le maximum de demandes en cours */
.quote-full {
    max-width: 640px;
}

.quote-full h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

/* Fenêtre de confirmation (formulaires data-dialog) */
.confirm {
    width: min(92vw, 460px);
    padding: 28px;
    border: 0;
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 18px 50px rgba(46, 37, 48, .25);
}

.confirm::backdrop {
    background: rgba(30, 14, 36, .6);
}

.confirm__title {
    margin: 0 0 10px;
    color: var(--prune);
    font: 700 1.35rem/1.25 var(--f-title);
}

.confirm__text {
    margin: 0 0 22px;
    color: var(--muted);
}

/* Boutons empilés sur toute la largeur, l'action demandée en premier */
.confirm__actions {
    display: grid;
    gap: 10px;
}

.confirm__actions [data-confirm-yes] {
    order: -1;
}

@media (max-width: 480px) {
    .confirm {
        padding: 22px 18px;
    }
}

/* Mon espace : historique des demandes */
.account-intro {
    margin: 0 0 18px;
    color: var(--muted);
}

/* Nouveautés sur les demandes du client (statut changé par Marine, pas encore vu) */
.notif-dot {
    display: inline-block;
    flex: none;
    width: 9px;
    height: 9px;
    margin-left: 6px;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--error);
    box-shadow: 0 0 0 1px var(--error);
    vertical-align: super;
}

.nav-toggle {
    position: relative;
}

.nav-toggle .notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
}

.notif-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--error);
    color: var(--white);
    font: 700 .7rem/1 var(--f-text);
    letter-spacing: 0;
}

.quote-card__badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.notif-new {
    padding: 2px 9px;
    border-radius: 10px;
    background: var(--error);
    color: var(--white);
    font-size: .74rem;
    font-weight: 700;
}

.quote-card.is-updated {
    border-color: var(--error);
    box-shadow: 0 0 0 1px var(--error), var(--shadow);
}

/* Mes devis : « Modifier ma demande » et « Annuler ma demande », boutons comme « J’accepte » / « Refuser » */
div.quote-card__cancel,
form.quote-card__cancel {
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 18px;
}

div.quote-card__cancel form {
    margin: 0;
}

/* Mes devis et historique : cartes repliables (seule la première est ouverte) */
.quote-card--fold summary {
    display: block;
    position: relative;
    padding-right: 34px;
    cursor: pointer;
    list-style: none;
}

.quote-card--fold summary::-webkit-details-marker {
    display: none;
}

.quote-card--fold summary::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 4px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--prune);
    border-bottom: 2px solid var(--prune);
    transform: rotate(45deg);
    transition: transform .2s;
}

.quote-card--fold details[open] > summary::after {
    top: 10px;
    transform: rotate(-135deg);
}

.quote-card--fold details:not([open]) .quote-card__meta {
    margin-bottom: 0;
}

.quote-card--fold summary:focus-visible {
    outline: 3px solid var(--prune);
    outline-offset: 4px;
}

/* Mon profil : mêmes cartes que Mes devis */
.profile {
    display: grid;
    gap: 18px;
}

.profile__title {
    margin: 0 0 18px;
    font-size: 1.15rem;
}

/* Mon profil : effacement du compte (RGPD) sur une ligne, bouton à droite */
.profile__erase {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    align-items: center;
    justify-content: space-between;
}

.profile__erase p {
    flex: 1 1 320px;
    margin: 0;
}

.profile__erase form {
    flex: none;
    margin: 0;
}

/* ---------- Règlement : virement ou espèces, envoi du RIB ---------- */
.pay-choice {
    margin: 14px 0;
}

.pay-choice fieldset {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}

.pay-choice legend {
    margin-bottom: 8px;
    padding: 0;
}

.pay-choice legend .small {
    display: block;
}

.pay-choice__option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--white);
    cursor: pointer;
}

.pay-choice__option:has(input:checked) {
    border-color: var(--prune);
    background: var(--cream);
}

.pay-choice__option input {
    margin-top: 4px;
    accent-color: var(--prune);
}

.pay-choice__option .small {
    display: block;
}

.pay-choice__change {
    margin-top: -4px;
}

.pay-method {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--cream);
}

.pay-method > p:first-child {
    margin-top: 0;
}

.rib-form {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.rib-form__title {
    margin: 0 0 8px;
    font-weight: 700;
}

/* Sélecteur de fichier : champ natif masqué, bouton aux couleurs du site */
.rib-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.rib-pick__btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.rib-pick input:focus-visible + .rib-pick__btn {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.rib-pick__name {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: .9rem;
}

.rib-pick__name.is-chosen {
    color: var(--ink);
    font-weight: 600;
}

.accept-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-top: 14px;
}

.accept-form select {
    min-height: 38px;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--field);
    border-radius: var(--r);
    background: var(--white);
    font: inherit;
}

.pay-page {
    text-align: left;
}
