/* QUALITE24 — film du projet, rendez-vous, boutique, et mode appli (Android / iPhone) façon Apple.
   Animations : transform et opacity seulement (fluide même sur les anciens téléphones). Classe .q24-leger : sans flou. */
:root { --q24-ressort: cubic-bezier(.2, .9, .25, 1); --q24-verre: rgba(250, 248, 244, .78); --q24-verre-bord: rgba(35, 38, 43, .08); --q24-rayon: 16px; }

/* ── Film du projet dans le dossier ─────────────────────────────────── */
.groupe.film { margin: 8px 0 18px; }
.film-hote { position: relative; }
.film-affiche { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; width: 100%; aspect-ratio: 16 / 9; padding: 22px; border: 0; border-radius: 18px; cursor: pointer; overflow: hidden; text-align: left; color: #fff;
  background: radial-gradient(120% 90% at 75% 20%, #3a4566, #14161a 70%) center / cover no-repeat; transition: transform .35s var(--q24-ressort), box-shadow .35s; box-shadow: 0 10px 30px rgba(20, 22, 26, .18); }
.film-affiche.avec-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 13, 0) 35%, rgba(10, 11, 13, .78)); }
.film-affiche:hover, .film-affiche:focus-visible { transform: translateY(-2px) scale(1.005); box-shadow: 0 16px 40px rgba(20, 22, 26, .26); }
.film-affiche:active { transform: scale(.985); }
.film-affiche > span { position: relative; }
.film-lecture { position: absolute !important; left: 50%; top: 44%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .3s var(--q24-ressort), background-color .3s; }
.film-lecture::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 21px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.film-affiche:hover .film-lecture { transform: scale(1.08); background: rgba(158, 16, 34, .85); }
.film-affiche.charge .film-lecture { animation: q24-pulse 1s ease-in-out infinite; }
.film-titre { font: 700 clamp(22px, 3vw, 32px)/1.1 var(--serif); }
.film-sous { font-size: 13px; letter-spacing: .04em; opacity: .85; }
@keyframes q24-pulse { 50% { transform: scale(.92); opacity: .7; } }

/* ── Rendez-vous ────────────────────────────────────────────────────── */
.rdv-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .rdv-grid { grid-template-columns: minmax(0, 1fr); } }
.rdv-form { min-width: 0; }
.segment { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: #ebe7df; }
.segment button { min-width: 0; min-height: 40px; padding: 4px 6px; border: 0; border-radius: 9px; background: transparent; font: 500 13px/1.2 var(--sans); overflow-wrap: anywhere; color: var(--ink); cursor: pointer; transition: background-color .25s, box-shadow .25s; }
.segment button[aria-checked="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); }
.rdv-lieu { margin: 10px 2px 4px; }
.rdv-jours { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rdv-jours::-webkit-scrollbar { display: none; }
.rdv-jours .jour { flex: none; display: grid; justify-items: center; width: 62px; padding: 8px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; scroll-snap-align: center; font: 400 12px/1.2 var(--sans); color: var(--ink-soft); transition: transform .25s var(--q24-ressort), background-color .25s, color .25s; }
.rdv-jours .jour strong { font: 700 24px/1.1 var(--serif); color: var(--ink); }
.rdv-jours .jour[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .8); transform: translateY(-2px); }
.rdv-jours .jour[aria-selected="true"] strong { color: #fff; }
.rdv-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.rdv-heures button { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 500 15px var(--sans); color: var(--ink); cursor: pointer; transition: transform .2s var(--q24-ressort), background-color .2s; }
.rdv-heures button:active { transform: scale(.96); }
.rdv-heures button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.rdv-form textarea { width: 100%; font: inherit; }
.rdv-form .btn { width: 100%; min-height: 50px; border-radius: 14px; }
.rdv-liste, .commandes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rdv-liste li, .commandes li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.rdv-liste li > div, .commandes li > div { display: grid; gap: 4px; }
.rdv-liste .meta, .commandes .meta { font-size: 13px; color: var(--ink-soft); }
.rdv-liste .passe { opacity: .55; }
.rdv-liste .vide, .commandes .vide { color: var(--ink-soft); background: transparent; border-style: dashed; }
.chip.vert { background: #e3f1e7; color: #1e6b3a; }

/* ── Boutique ───────────────────────────────────────────────────────── */
.boutique-grille .famille { margin: 22px 0 10px; font: 700 24px/1.2 var(--serif); }
.produits { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.produit { display: grid; gap: 6px; width: 100%; padding: 0 0 12px; border: 0; border-radius: var(--q24-rayon); background: #fff; text-align: left; cursor: pointer; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 20px rgba(0, 0, 0, .05); transition: transform .3s var(--q24-ressort), box-shadow .3s; }
.produit:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 12px 30px rgba(0, 0, 0, .09); }
.produit:active { transform: scale(.98); }
.produit .visuel { display: block; aspect-ratio: 4 / 3; background: #efebe3; overflow: hidden; }
.produit .visuel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.produit .sans-image { display: grid; place-items: center; height: 100%; font: 700 48px var(--serif); color: var(--red); }
.produit .nom { padding: 0 12px; font: 500 15px/1.3 var(--sans); }
.produit .prix { padding: 0 12px; font-size: 14px; color: var(--ink-soft); }
.panier-btn .badge { margin-left: 8px; }
dialog.feuille { width: min(560px, 100vw); max-height: min(88vh, 900px); margin: auto; padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
dialog.feuille::backdrop { background: rgba(20, 22, 26, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.feuille[open] { animation: q24-feuille .42s var(--q24-ressort); }
@keyframes q24-feuille { from { transform: translateY(40px) scale(.98); opacity: 0; } }
.feuille-corps { padding: 0 20px 22px; display: grid; gap: 12px; overflow: auto; max-height: calc(88vh - 70px); }
.fiche-image { width: 100%; border-radius: 14px; }
.fiche-prix { margin: 0; font: 700 28px/1 var(--serif); }
.fiche-texte { margin: 0; color: var(--ink-soft); white-space: pre-line; }
.feuille-corps label { display: grid; gap: 6px; font-size: 14px; }
.feuille-corps .qte input { width: 96px; }
.panier-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panier-lignes li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panier-lignes .qte { display: inline-flex; align-items: center; gap: 8px; }
.panier-lignes .qte button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; }
.panier-total { display: flex; justify-content: space-between; margin: 4px 0; font-size: 16px; }
.panier-total strong { font: 700 26px var(--serif); }
.payer { width: 100%; min-height: 52px; border-radius: 14px; font-size: 16px; }

/* ── Page « L'appli » ───────────────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 12px; background: #111; color: #fff !important; text-decoration: none; font: 500 14px var(--sans); }

/* ═══ Mode appli ═══════════════════════════════════════════════════════ */
.q24-demarrage { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-content: center; justify-items: center; gap: 26px; background: var(--ivory); transition: opacity .5s ease, transform .5s var(--q24-ressort); }
.q24-demarrage img, .q24-demarrage .q24-mot { width: min(220px, 58vw); height: auto; animation: q24-clignote 1.4s ease-in-out infinite; }
.q24-demarrage .q24-mot { font: 500 28px/1 var(--sans); letter-spacing: .3em; text-align: center; color: var(--ink); width: auto; }
.q24-demarrage-barre { width: 120px; height: 3px; border-radius: 3px; background: rgba(35, 38, 43, .1); overflow: hidden; }
.q24-demarrage-barre i { display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--red); animation: q24-glisse 1.1s ease-in-out infinite; }
.q24-demarrage.fini { opacity: 0; transform: scale(1.04); pointer-events: none; }
@keyframes q24-clignote { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }
@keyframes q24-glisse { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.q24-appli body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.q24-appli .site-header, .q24-appli .site-footer, .q24-appli .fab-call, .q24-appli .espace-hero, .q24-appli .espace-tabs, .q24-appli .skip { display: none !important; }
.q24-appli main { padding-top: env(safe-area-inset-top); }
.q24-appli .block { padding-top: 0; }
.q24-appli #vue-acces { padding-top: calc(24px + env(safe-area-inset-top)); }
.q24-appli .wrap { width: 100%; max-width: 760px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
/* grand titre qui se réduit en barre floutée au défilement */
.q24-entete { position: sticky; top: 0; z-index: 30; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left))); padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-left)) 8px; transition: background-color .3s, box-shadow .3s; }
.q24-grand-titre { margin: 18px 0 4px; font: 700 38px/1.05 var(--serif); letter-spacing: -.01em; transform-origin: left center; transition: transform .35s var(--q24-ressort), margin .35s var(--q24-ressort); }
.q24-sentinelle { display: block; height: 1px; }
.q24-compact .q24-entete { background: var(--q24-verre); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--q24-verre-bord); }
.q24-compact .q24-grand-titre { margin: 0; transform: scale(.5) translateX(50%); transform-origin: left center; text-align: left; }
.q24-appli .panel-head h2 { display: none; }
/* barre d'onglets */
.q24-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)); background: var(--q24-verre); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-top: 1px solid var(--q24-verre-bord); }
.q24-sans-boutique .q24-barre { grid-template-columns: repeat(5, 1fr); }
.q24-onglet { position: relative; display: grid; justify-items: center; gap: 3px; min-height: 50px; padding: 4px 0 0; border: 0; background: none; color: #8a8d93; font: 500 10.5px/1.1 var(--sans); cursor: pointer; transition: color .2s; }
.q24-onglet i { width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; transition: transform .3s var(--q24-ressort); }
.q24-onglet:active i { transform: scale(.86); }
.q24-onglet.actif { color: var(--red); }
.q24-onglet.actif i { transform: translateY(-1px); }
.q24-pastille { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font: 600 10px/17px var(--sans); }
.o-accueil { --ico: url("/assets/espace/icones/accueil.svg"); }
.o-dossier { --ico: url("/assets/espace/icones/dossier.svg"); }
.o-rdv { --ico: url("/assets/espace/icones/rdv.svg"); }

.o-tchat { --ico: url("/assets/espace/icones/tchat.svg"); }
.o-plus { --ico: url("/assets/espace/icones/plus.svg"); }
/* feuille « Plus » (bas de l'écran) */
.q24-appli dialog.feuille { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.q24-appli dialog.feuille[open] { animation: q24-monte .45s var(--q24-ressort); }
@keyframes q24-monte { from { transform: translateY(100%); } }
.q24-poignee { width: 38px; height: 5px; margin: 8px auto 4px; border-radius: 3px; background: rgba(35, 38, 43, .2); }
.q24-plus ul { list-style: none; margin: 0; padding: 4px 12px 14px; }
.q24-plus button { width: 100%; min-height: 52px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: 400 17px var(--sans); color: var(--ink); cursor: pointer; }
.q24-plus li:last-child button { border-bottom: 0; }
/* entrée des rubriques : glissement doux + fondu */
.q24-appli .espace-panel:not([hidden]) { animation: q24-entree .45s var(--q24-ressort) both; }
.q24-appli.q24-vers-gauche .espace-panel:not([hidden]) { animation-name: q24-entree-g; }
@keyframes q24-entree { from { opacity: 0; transform: translateX(18px); } }
@keyframes q24-entree-g { from { opacity: 0; transform: translateX(-18px); } }
/* cartes et formulaires plus « iOS » */
.q24-appli .form-box, .q24-appli .projet, .q24-appli .card { border-radius: var(--q24-rayon); border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05); }
.q24-appli .btn { border-radius: 12px; min-height: 48px; transition: transform .2s var(--q24-ressort), opacity .2s; }
.q24-appli .btn:active { transform: scale(.97); opacity: .9; }
.q24-appli input, .q24-appli textarea, .q24-appli select { font-family: var(--sans); font-size: 16px; border-radius: 12px; } /* 16 px : pas de zoom automatique sur iPhone */
.q24-carte-alertes { display: grid; gap: 8px; margin: 0 0 16px; padding: 16px; border-radius: var(--q24-rayon); background: linear-gradient(135deg, #2a2d33, #14161a); color: #fff; }
.q24-carte-alertes span { color: rgba(255, 255, 255, .78); font-size: 14px; }
.q24-carte-alertes .btn { justify-self: start; }
.q24-appli .espace-deco { margin-bottom: 24px; }
/* défilement : pas d'effet coûteux sur les anciens téléphones */
.q24-leger .q24-barre, .q24-leger.q24-compact .q24-entete, .q24-leger dialog.feuille::backdrop, .q24-leger .film-lecture { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.q24-leger .q24-barre, .q24-leger.q24-compact .q24-entete { background: #f7f5f0; }
.q24-leger .espace-panel:not([hidden]) { animation-duration: .2s; }
@media (prefers-reduced-motion: reduce) { .q24-appli .espace-panel:not([hidden]), dialog.feuille[open], .q24-demarrage img { animation: none !important; } }
@media (prefers-color-scheme: dark) { .q24-natif .q24-demarrage { background: #14161a; } .q24-natif .q24-demarrage .q24-mot { color: #f7f5f0; } }

/* Panier : retrait à l'agence (jour + heure) ou livraison */
#panier .reception { margin: 14px 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
#panier .reception legend { font: 500 15px/1.3 var(--sans); margin-bottom: 8px; padding: 0; }
#panier .mode { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
#panier .mode.actif { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
#panier .mode input { accent-color: var(--red); width: 18px; height: 18px; margin: 0; }
#panier .mode span { display: grid; gap: 2px; }
#panier .mode small { color: var(--ink-soft); font-size: 13px; }
#panier .jours { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
#panier .jour { flex: 0 0 60px; display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; scroll-snap-align: start; color: var(--ink); font: inherit; }
#panier .jour b { font: 600 19px/1 var(--sans); }
#panier .jour small { font-size: 12px; color: var(--ink-soft); text-transform: capitalize; }
#panier .jour[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
#panier .jour[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
#panier .heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
#panier .heure { min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--ink); }
#panier .heure[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
