/* ZHO KACI : papier ivoire, encre prune, arches de la Casbah, étoile du zellige. */
:root {
  --papier: #f5efe6;
  --papier-2: #ece2d4;
  --carte: #fbf8f3;
  --encre: #1f1419;
  --encre-douce: #6d5a60;
  --prune: #5b1e3a;
  --prune-fonce: #3e1227;
  --terre: #b4583a;
  --or: #b8913f;
  --or-pale: #e9d9b4;
  --vert-wa: #1f8f55;
  --trait: rgba(31, 20, 25, .14);
  --titre: 'Bodoni Moda', 'Didot', Georgia, serif;
  --corps: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arche: 999px 999px 6px 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --marge: clamp(16px, 4vw, 56px);
  --onglets: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; font: 400 16px/1.55 var(--corps); color: var(--encre); background: var(--papier);
  padding-bottom: calc(var(--onglets) + env(safe-area-inset-bottom));
  /* grain de papier, sans image à télécharger */
  background-image: radial-gradient(rgba(91, 30, 58, .045) 1px, transparent 1px);
  background-size: 5px 5px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; border-radius: 4px; }
.icones { position: absolute; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .plein { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; color: var(--prune); }
.surtitre { margin: 0 0 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--terre); }

/* ---------- Bandeau et tête ---------- */
.bandeau { margin: 0; padding: 8px var(--marge); background: var(--prune); color: var(--or-pale); font-size: 12.5px; letter-spacing: .06em; text-align: center; text-wrap: balance; }
.tete-actions a.icone-bouton:not(.lien-facebook) { display: none; }
.lien-facebook[hidden] { display: none; }
.lien-facebook svg { fill: #1877f2; stroke: none; }
.tete {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 var(--marge); background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.tete.defile { border-bottom-color: var(--trait); }
.tete-liens { display: none; gap: 28px; font-size: 14px; letter-spacing: .04em; }
.tete-liens a, .lien-fleche { text-decoration: none; position: relative; }
.tete-liens a::after, .lien-fleche::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.tete-liens a:hover::after, .tete-liens a[aria-current]::after, .lien-fleche:hover::after { transform: scaleX(1); transform-origin: left; }
.logo { grid-column: 2; display: flex; align-items: center; gap: 8px; font: 500 clamp(18px, 5.6vw, 26px)/1 var(--titre); letter-spacing: clamp(.12em, 1.4vw - 1px, .32em); white-space: nowrap; text-decoration: none; padding-left: .32em; }
.logo svg, .pied-logo svg { width: 16px; height: 16px; fill: var(--or); stroke: none; }
.tete-actions { grid-column: 3; justify-self: end; display: flex; gap: 4px; }
.icone-bouton { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .2s; }
.icone-bouton:hover { background: var(--papier-2); }
.bouton-cabine { display: none; }
.pastille { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--terre); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.pastille.saute { animation: saute .5s var(--ease); }
@keyframes saute { 40% { transform: scale(1.5); } }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
  border-radius: 999px; background: var(--encre); color: var(--papier); font-size: 14px; letter-spacing: .06em; text-decoration: none;
  border: 1px solid var(--encre); transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.bouton:hover { background: var(--prune); border-color: var(--prune); }
.bouton:active { transform: scale(.97); }
.bouton:disabled { opacity: .4; cursor: not-allowed; }
.bouton-creux { background: transparent; color: var(--encre); }
.bouton-creux:hover { background: var(--encre); color: var(--papier); }
.bouton-clair { background: var(--papier); color: var(--prune-fonce); border-color: var(--papier); }
.bouton-clair:hover { background: var(--or-pale); border-color: var(--or-pale); }
.bouton-large { width: 100%; }
.bouton-whatsapp { background: var(--vert-wa); border-color: var(--vert-wa); }
.bouton-whatsapp:hover { background: #17733f; border-color: #17733f; }
.bouton-whatsapp svg { width: 20px; height: 20px; }
.lien-fleche { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.lien-fleche::before { content: '→ '; }

/* ---------- Arches : le motif de la maison ---------- */
.arche { position: relative; overflow: hidden; border-radius: var(--arche); background: var(--papier-2); isolation: isolate; }
.arche img { width: 100%; height: 100%; object-fit: cover; }
.arche::after { content: ''; position: absolute; inset: 7px 7px 0; border: 1px solid rgba(255, 255, 255, .55); border-bottom: 0; border-radius: var(--arche); pointer-events: none; z-index: 2; }

/* ---------- Accueil ---------- */
@keyframes apparait { from { opacity: 0; transform: translateY(12px); } }
.heros { display: grid; gap: 28px; padding: 28px var(--marge) 10px; }
.heros h1 { font-size: clamp(44px, 12vw, 92px); }
.heros h1 .ligne1 { white-space: nowrap; }
.heros h1 em { display: inline-block; }
.heros-phrase { max-width: 440px; color: var(--encre-douce); margin: 18px 0 26px; }
.heros-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.heros-image { position: relative; justify-self: center; width: min(100%, 460px); }
.arche-grande { aspect-ratio: 3 / 4; box-shadow: 0 30px 60px -30px rgba(62, 18, 39, .45); }
.arche-grande img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 6s linear; }
.arche-grande img.active { opacity: 1; transform: scale(1); }
.sceau { position: absolute; right: -14px; bottom: 28px; width: 118px; height: 118px; border-radius: 50%; background: var(--prune); color: var(--or-pale); display: grid; place-items: center; z-index: 3; box-shadow: 0 10px 30px -10px rgba(62, 18, 39, .6); }
.sceau > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: tourne 22s linear infinite; }
.sceau text { fill: currentColor; stroke: none; font: 500 8.4px var(--corps); letter-spacing: .1em; }
.sceau-etoile { width: 30px; height: 30px; fill: var(--or); stroke: none; }
@keyframes tourne { to { transform: rotate(360deg); } }

.section { padding: 56px 0 0; }
.section-titre { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 0 var(--marge) 20px; }
.section-titre h2 { font-size: clamp(32px, 6vw, 54px); }

.portes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 14px; padding: 0 var(--marge) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.portes::-webkit-scrollbar, .rail::-webkit-scrollbar, .filtres::-webkit-scrollbar { display: none; }
.porte { scroll-snap-align: start; text-decoration: none; text-align: center; }
.porte .arche { aspect-ratio: 2 / 3; }
.porte img { transition: transform .8s var(--ease); }
.porte:hover img { transform: scale(1.07); }
.porte span { display: block; margin-top: 10px; font: italic 400 19px/1.2 var(--titre); }
.porte small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 230px); gap: 16px; padding: 0 var(--marge) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail > * { scroll-snap-align: start; }

.miroir-pub { margin: 64px var(--marge) 0; padding: 34px 26px; display: grid; gap: 26px; background: var(--prune-fonce); color: var(--papier); border-radius: 28px; position: relative; overflow: hidden; }
.miroir-pub::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(184, 145, 63, .3), transparent 50%); }
.miroir-pub > * { position: relative; }
.miroir-pub h2 { font-size: clamp(40px, 8vw, 72px); }
.miroir-pub em { color: var(--or-pale); }
.miroir-pub p:not(.surtitre) { color: rgba(245, 239, 230, .78); max-width: 460px; margin: 14px 0 24px; }
.miroir-pub .surtitre { color: var(--or); }
.miroir-pub-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 320px; }
.miroir-pub-images .arche { aspect-ratio: 3 / 4; }
.miroir-pub-images .arche:nth-child(2) { transform: translateY(26px); }

.promesses { list-style: none; margin: 72px var(--marge) 0; padding: 26px 0; display: grid; gap: 22px; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.promesses li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
.promesses svg { grid-row: span 2; width: 30px; height: 30px; color: var(--terre); }
.promesses li:nth-child(2) svg { fill: var(--or); stroke: none; }
.promesses strong { font: 400 20px/1.2 var(--titre); }
.promesses span { font-size: 14px; color: var(--encre-douce); }

/* ---------- Cartes article ---------- */
.carte { position: relative; display: flex; flex-direction: column; gap: 10px; }
.carte-image { display: block; aspect-ratio: 3 / 4; }
.carte-image img { position: absolute; inset: 0; transition: transform .9s var(--ease), opacity .5s; }
.carte-image .seconde { opacity: 0; }
.carte:hover .carte-image img:first-child { transform: scale(1.05); }
.carte:hover .carte-image .seconde { opacity: 1; }
.badges { position: absolute; top: 34%; left: 0; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.badge { padding: 3px 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; background: var(--papier); color: var(--encre); border-radius: 0 999px 999px 0; }
.badge-promo { background: var(--terre); color: #fff; }
.badge-reste { background: var(--or-pale); color: var(--prune-fonce); }
.badge-epuise { background: var(--encre); color: var(--papier); }
.carte-epuisee .carte-image img { filter: grayscale(.8); opacity: .65; }
.carte-cadre { position: relative; }
.carte-plus {
  position: absolute; right: 10px; bottom: 10px; z-index: 4; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--papier); color: var(--encre); font: 300 26px/1 var(--corps);
  box-shadow: 0 6px 16px -6px rgba(31, 20, 25, .4); transition: transform .3s var(--ease), background-color .2s, color .2s;
}
.carte-plus:hover { background: var(--prune); color: var(--papier); transform: rotate(90deg); }
.carte-texte { display: grid; gap: 2px; min-height: 60px; }
.carte-cat { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-douce); }
.carte-nom { font: 400 17px/1.25 var(--titre); }
.carte-nom a { text-decoration: none; }
.prix { font-size: 15px; letter-spacing: .02em; }
.prix s { color: var(--encre-douce); margin-left: 6px; font-size: .88em; }
.prix .solde { color: var(--terre); }

/* ---------- Boutique ---------- */
.boutique-tete { display: grid; gap: 16px; padding: 24px var(--marge) 8px; }
.boutique-tete h1 { font-size: clamp(40px, 8vw, 76px); }
.recherche { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px; border: 1px solid var(--trait); border-radius: 999px; background: var(--carte); max-width: 440px; }
.recherche:focus-within { border-color: var(--prune); }
.recherche input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; }
.filtres-barre { position: sticky; top: 64px; z-index: 10; display: flex; gap: 10px; align-items: center; padding: 10px var(--marge); background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.filtres { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filtre { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--trait); border-radius: 999px; font-size: 14px; transition: background-color .2s, color .2s, border-color .2s; }
.filtre:hover { border-color: var(--encre); }
.filtre[aria-pressed='true'] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.tri select { height: 40px; padding: 0 12px; border: 1px solid var(--trait); border-radius: 999px; background: var(--carte); font-size: 14px; }
.compte { margin: 6px var(--marge) 14px; font-size: 13px; color: var(--encre-douce); }
.grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 14px; padding: 0 var(--marge); }
.grille .carte { animation: apparait .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.message-vide { margin: 30px var(--marge); font: italic 22px var(--titre); color: var(--encre-douce); }

/* ---------- Fiche article ---------- */
.fiche { padding: 16px var(--marge) 0; }
.fiche-haut { display: grid; gap: 26px; }
/* Une grille laisse ses enfants grandir avec leur contenu (tableau des tailles) : on les tient à la largeur de l’écran */
.fiche-haut > *, .miroir > *, .boutique-tete > * { min-width: 0; }
.retour { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--encre-douce); }
.galerie { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--arche); }
.galerie::-webkit-scrollbar { display: none; }
.galerie .arche { aspect-ratio: 3 / 4; scroll-snap-align: center; border-radius: 0; }
.galerie .arche::after { display: none; }
.galerie-cadre { position: relative; }
.galerie-cadre::after { content: ''; position: absolute; inset: 9px 9px 0; border: 1px solid rgba(255, 255, 255, .6); border-bottom: 0; border-radius: var(--arche); pointer-events: none; }
.points { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.points span { width: 6px; height: 6px; border-radius: 3px; background: var(--trait); transition: width .3s var(--ease), background-color .3s; }
.points span.actif { width: 20px; background: var(--prune); }
.fiche-corps { display: grid; gap: 14px; align-content: start; }
.fiche-corps h1 { font-size: clamp(34px, 6vw, 56px); }
.fiche-corps .prix { font-size: 22px; font-family: var(--titre); }
.etiquette-champ { margin: 8px 0 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-douce); }
.tailles { display: flex; flex-wrap: wrap; gap: 8px; }
.taille { min-width: 52px; min-height: 48px; padding: 0 14px; border: 1px solid var(--trait); border-radius: 14px; background: var(--carte); font-size: 15px; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.taille:hover:not(:disabled) { border-color: var(--encre); }
.taille[aria-pressed='true'] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.taille:disabled { text-decoration: line-through; opacity: .4; cursor: not-allowed; }
.tailles.manque { animation: secoue .4s; }
@keyframes secoue { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.reste { margin: 0; min-height: 22px; font-size: 14px; color: var(--terre); }
.quantite { display: inline-flex; align-items: center; border: 1px solid var(--trait); border-radius: 999px; background: var(--carte); }
.quantite button { width: 44px; height: 44px; font-size: 20px; }
.quantite button:disabled { opacity: .3; cursor: not-allowed; }
.quantite span { min-width: 26px; text-align: center; }
.fiche-boutons { display: grid; gap: 10px; margin-top: 6px; }
.plis { border-top: 1px solid var(--trait); }
.plis details { border-bottom: 1px solid var(--trait); }
.plis summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 16px 0; font: 400 19px var(--titre); }
.plis summary::-webkit-details-marker { display: none; }
.plis summary::after { content: '+'; font: 300 22px var(--corps); transition: transform .3s var(--ease); }
.plis details[open] summary::after { transform: rotate(45deg); }
.plis p { margin: 0 0 16px; color: var(--encre-douce); }
.guide { overflow-x: auto; padding-bottom: 16px; }
.guide table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.guide th, .guide td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--trait); white-space: nowrap; }
.guide thead th { font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-douce); }
.guide tbody th { font: 400 16px var(--titre); }
.guide .note { margin: 12px 0 0; text-align: left; }
.lien-miroir { justify-self: start; margin-top: 4px; color: var(--prune); }
.lien-question { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 14px; color: var(--vert-wa); text-decoration: none; }
.lien-question svg { width: 20px; height: 20px; }
.lien-question:hover { text-decoration: underline; }
.fiche-barre {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--onglets) + 10px + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px;
  background: var(--carte); border: 1px solid var(--trait); border-radius: 999px; box-shadow: 0 14px 30px -14px rgba(31, 20, 25, .5);
  transform: translateY(160%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; pointer-events: none;
}
.fiche-barre.visible { transform: none; opacity: 1; pointer-events: auto; }
.fiche-barre > div { min-width: 0; display: grid; }
.fiche-barre strong { font: 400 15px var(--titre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche-barre .prix { font-size: 13px; }
.fiche-barre .bouton { min-height: 42px; flex: none; }
.look { padding-top: 56px; }
.look h2 { font-size: clamp(28px, 5vw, 44px); padding-bottom: 18px; }
.look .rail { padding: 0; }

/* ---------- Le Miroir ---------- */
.miroir-entete { padding: 24px var(--marge) 10px; text-align: center; display: grid; justify-items: center; }
.miroir-entete h1 { font-size: clamp(44px, 9vw, 84px); }
.miroir-entete p:not(.surtitre) { max-width: 460px; color: var(--encre-douce); margin: 12px 0 18px; }
.bascule { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--papier-2); }
.bascule button { min-height: 42px; padding: 0 22px; border-radius: 999px; font-size: 14px; transition: background-color .25s, color .25s; }
.bascule button[aria-checked='true'] { background: var(--encre); color: var(--papier); }
.miroir { display: grid; gap: 26px; padding: 22px var(--marge) 0; }
.miroir-cadre {
  justify-self: center; width: min(100%, 460px); padding: 14px 14px 12px; border-radius: 999px 999px 28px 28px;
  background: linear-gradient(160deg, #d8c08a, var(--or) 40%, #8a6a2a 70%, #d9bf86); box-shadow: 0 30px 60px -30px rgba(62, 18, 39, .5);
}
.miroir-glace { position: relative; overflow: hidden; padding: 76px 0 16px; border-radius: 999px 999px 20px 20px; background: radial-gradient(ellipse at 50% 20%, #fffdf8, #f1e8da 65%, #e8dccb); }
.miroir-glace::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .4) 40%, transparent 48%); }
.miroir-etages { display: grid; gap: 4px; }
.etage { position: relative; container-type: inline-size; animation: apparait .5s var(--ease) backwards; animation-delay: calc(var(--rang) * 70ms); }
.etage-tete { display: flex; justify-content: space-between; align-items: center; padding: 0 14px 2px; }
.etage-nom { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-douce); }
.etage-retirer { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 248, 243, .9); transition: transform .3s var(--ease), background-color .2s; }
.etage-retirer:hover { background: var(--papier-2); }
.etage-retirer svg { width: 15px; height: 15px; }
.etage[data-vide] .etage-retirer { transform: rotate(45deg); background: var(--encre); color: var(--papier); }
.etage-corps { position: relative; }
.etage-piste { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 56cqw; gap: 10px; padding: 4px 22cqw 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.etage-piste::-webkit-scrollbar { display: none; }
.etage-piste:focus-visible { box-shadow: inset 0 0 0 2px var(--terre); border-radius: 14px; }
.etage-piste img { scroll-snap-align: center; width: 100%; height: var(--h); object-fit: cover; object-position: center 35%; border-radius: 18px; opacity: .38; transform: scale(.86); cursor: pointer; transition: opacity .35s, transform .45s var(--ease), box-shadow .35s; }
.etage-piste img.choisi { opacity: 1; transform: none; cursor: grab; box-shadow: 0 16px 26px -16px rgba(31, 20, 25, .6); }
.etage[data-vide] .etage-piste img { opacity: .14; filter: grayscale(1); }
.etage[data-vide] .etage-piste img.choisi { box-shadow: none; outline: 1.5px dashed var(--encre-douce); outline-offset: -1.5px; }
.etage-fleche { position: absolute; top: calc(50% - 5px); width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: rgba(251, 248, 243, .92); font-size: 20px; line-height: 1; box-shadow: 0 4px 12px -6px rgba(31, 20, 25, .5); transition: background-color .2s; }
.etage-fleche:hover { background: var(--papier); }
.etage-fleche.gauche { left: 8px; }
.etage-fleche.droite { right: 8px; }
.etage-legende { min-height: 22px; padding: 0 14px 4px; text-align: center; font-size: 13px; }
.etage-legende a { display: inline-flex; gap: 8px; text-decoration: none; max-width: 100%; }
.etage-legende span { font-family: var(--titre); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etage-legende b { font-weight: 500; color: var(--prune); white-space: nowrap; }
.etage-vide { color: var(--encre-douce); font-style: italic; }
.miroir-resume { display: grid; gap: 14px; align-content: start; padding: 24px; background: var(--carte); border: 1px solid var(--trait); border-radius: 24px; }
.miroir-resume h2 { font-size: 32px; }
.miroir-resume .deux { gap: 10px; }
.miroir-resume .deux .bouton { padding: 0 12px; font-size: 13px; }
.miroir-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.miroir-liste li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.miroir-liste li.note { display: block; text-align: left; }
.miroir-liste img { width: 44px; height: 56px; object-fit: cover; border-radius: 22px 22px 4px 4px; }
.miroir-liste a { text-decoration: none; font-family: var(--titre); font-size: 16px; }
.miroir-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--trait); }
.miroir-total strong { font: 400 26px var(--titre); }
/* Sur téléphone, le total et le bouton restent sous le pouce pendant qu'on fait glisser */
.miroir-barre {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--onglets) + 10px + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px;
  background: var(--encre); color: var(--papier); border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(31, 20, 25, .6); font-size: 14px;
}
.miroir-barre .bouton { min-height: 42px; background: var(--papier); color: var(--encre); border-color: var(--papier); }
.miroir-barre .bouton:hover { background: var(--or-pale); }
section[data-vue='miroir']:not([hidden]) { padding-bottom: 80px; }
.miroir-resume { display: grid; gap: 14px; align-content: start; padding: 24px; background: var(--carte); border: 1px solid var(--trait); border-radius: 24px; }
.miroir-resume h2 { font-size: 32px; }
.miroir-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.miroir-liste li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.miroir-liste img { width: 44px; height: 56px; object-fit: cover; border-radius: 22px 22px 4px 4px; }
.miroir-liste a { text-decoration: none; font-family: var(--titre); font-size: 16px; }
.miroir-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--trait); }
.miroir-total strong { font: 400 26px var(--titre); }

/* ---------- Formulaires ---------- */
label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .04em; color: var(--encre-douce); }
input:not([type='radio']), select, textarea {
  width: 100%; min-height: 50px; padding: 0 16px; font-size: 16px; color: var(--encre);
  background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; transition: border-color .2s;
}
input:focus, select:focus { outline: none; border-color: var(--prune); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 12px; }
legend { margin-bottom: 12px; font: 400 21px var(--titre); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { position: relative; }
.mode input { position: absolute; opacity: 0; }
.mode span { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--trait); border-radius: 16px; background: var(--carte); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.mode strong { color: var(--encre); font-weight: 500; font-size: 15px; letter-spacing: 0; }
.mode small { font-size: 14px; color: var(--terre); }
.mode input:checked + span { border-color: var(--prune); box-shadow: inset 0 0 0 1px var(--prune); }
.mode input:focus-visible + span { outline: 2px solid var(--terre); outline-offset: 2px; }
.erreur { margin: 0; padding: 12px 14px; border-radius: 12px; background: #f6e2dc; color: #8a2f16; font-size: 14px; }
.note { margin: 0; font-size: 13px; color: var(--encre-douce); text-align: center; }

/* ---------- Fenêtres : feuille du bas, tiroir de droite ---------- */
dialog { padding: 0; border: 0; color: var(--encre); background: var(--papier); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(31, 20, 25, .45); backdrop-filter: blur(3px); }
.fermer { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.fermer:hover { background: var(--papier-2); }
.feuille { margin: auto auto 0; width: 100%; max-height: 88dvh; overflow-y: auto; padding: 22px var(--marge) calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; }
.feuille[open] { animation: monte .45s var(--ease); }
.feuille > .fermer { position: absolute; right: 10px; top: 10px; }
.feuille h2 { font-size: 30px; margin: 4px 50px 16px 0; }
@keyframes monte { from { transform: translateY(100%); } }
.rapide { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.rapide .arche { aspect-ratio: 3 / 4; }
.rapide h3 { font-size: 22px; margin-bottom: 4px; }
.tiroir { margin: 0 0 0 auto; height: 100dvh; width: min(100%, 440px); display: none; flex-direction: column; }
.tiroir[open] { display: flex; animation: glisse .5s var(--ease); }
.tiroir-large { width: min(100%, 560px); overflow-y: auto; }
@keyframes glisse { from { transform: translateX(100%); } }
.tiroir-tete { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 14px var(--marge); border-bottom: 1px solid var(--trait); position: sticky; top: 0; background: var(--papier); z-index: 2; }
.tiroir-tete h2 { font-size: 30px; }
.rideau { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: repeating-linear-gradient(90deg, var(--prune) 0 18px, var(--prune-fonce) 18px 36px); transform-origin: right; animation: rideau .9s .1s var(--ease) both; }
@keyframes rideau { to { transform: scaleX(0); } }
.lignes { flex: 1; overflow-y: auto; padding: 8px var(--marge); }
.ligne { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.ligne img { width: 74px; height: 96px; object-fit: cover; border-radius: 37px 37px 6px 6px; }
.ligne-nom { font: 400 17px/1.2 var(--titre); }
.ligne-info { font-size: 13px; color: var(--encre-douce); margin: 2px 0 6px; }
.ligne-prix { font-size: 15px; white-space: nowrap; }
.ligne .quantite button { width: 36px; height: 36px; }
.lignes-compactes { padding: 0; flex: none; }
.lignes-compactes .ligne { grid-template-columns: 52px 1fr auto; }
.lignes-compactes .ligne img { width: 52px; height: 66px; }
.vide { text-align: center; padding: 50px 0; font: italic 22px var(--titre); color: var(--encre-douce); }
.vide a { display: block; margin-top: 12px; font: 400 14px var(--corps); letter-spacing: .08em; text-transform: uppercase; }
.tiroir-bas { padding: 16px var(--marge) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--trait); display: grid; gap: 12px; background: var(--carte); }
.totaux { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 15px; }
.totaux dd { margin: 0; text-align: right; }
.totaux .fort { font: 400 22px var(--titre); padding-top: 8px; border-top: 1px solid var(--trait); }
.form-commande { display: grid; gap: 26px; padding: 18px var(--marge) calc(26px + env(safe-area-inset-bottom)); }
.commande-finie { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 40px var(--marge); }
.commande-finie h3 { font-size: 46px; }
.commande-finie p { margin: 0; }
.grande-etoile { width: 70px; height: 70px; fill: var(--or); stroke: none; animation: tourne 12s linear infinite; }
.tenue-ligne { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.tenue-ligne img { width: 56px; height: 72px; object-fit: cover; border-radius: 28px 28px 4px 4px; }
.tenue-ligne .tailles { margin-top: 6px; }
.tenue-ligne .taille { min-width: 44px; min-height: 40px; border-radius: 12px; font-size: 14px; }
#tenue-valider { margin-top: 16px; }

/* ---------- Pied, onglets, annonce ---------- */
.pied { margin-top: 80px; padding: 46px var(--marge) 30px; background: var(--encre); color: rgba(245, 239, 230, .7); text-align: center; font-size: 14px; }
.pied-logo { font: 500 clamp(24px, 8vw, 34px) var(--titre); letter-spacing: .24em; white-space: nowrap; color: var(--papier); display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 8px; }
.pied-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 10px 0 0; }
.pied-liens a { color: var(--or-pale); }
.onglets {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--onglets) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--carte) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--trait);
}
.onglets a, .onglets button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 10.5px; letter-spacing: .06em; text-decoration: none; color: var(--encre-douce); }
.onglets [aria-current] { color: var(--prune); }
.onglets [aria-current]::before { content: ''; position: absolute; top: 0; width: 26px; height: 2px; border-radius: 2px; background: var(--prune); }
.onglets .pastille { top: 6px; right: calc(50% - 22px); }
.annonce {
  position: fixed; left: 50%; bottom: calc(var(--onglets) + 16px + env(safe-area-inset-bottom)); z-index: 60; max-width: calc(100% - 32px);
  padding: 13px 22px; border-radius: 999px; background: var(--encre); color: var(--papier); font-size: 14px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .45s var(--ease);
}
.annonce.visible { opacity: 1; transform: translate(-50%, 0); }
.squelette { aspect-ratio: 3 / 4; border-radius: var(--arche); background: linear-gradient(100deg, var(--papier-2) 30%, var(--carte) 50%, var(--papier-2) 70%); background-size: 300% 100%; animation: brille 1.4s infinite; }
@keyframes brille { to { background-position: -150% 0; } }

/* ---------- Grand écran ---------- */
@media (min-width: 640px) {
  .grille { grid-template-columns: repeat(3, 1fr); }
  .promesses { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  :root { --onglets: 0px; }
  .onglets { display: none; }
  .tete-liens { display: flex; }
  .bouton-cabine, .tete-actions a.icone-bouton { display: grid; }
  .heros { grid-template-columns: 1.1fr 1fr; align-items: center; min-height: calc(100dvh - 110px); padding-top: 10px; }
  .heros-image { justify-self: end; }
  .sceau { right: auto; left: -50px; width: 140px; height: 140px; }
  .heros h1 { font-size: clamp(56px, 6.6vw, 104px); }
  .grille { grid-template-columns: repeat(4, 1fr); gap: 40px 22px; }
  .rail { grid-auto-columns: minmax(220px, 260px); gap: 22px; }
  .portes { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); overflow: visible; }
  .miroir-pub { grid-template-columns: 1fr 1.2fr; align-items: center; padding: 56px; }
  .miroir-pub-images { max-width: 380px; }
  .fiche-haut { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
  .fiche-barre { display: none; }
  .fiche-corps { position: sticky; top: 90px; }
  .fiche-boutons { grid-template-columns: 1fr 1fr; }
  .miroir { grid-template-columns: 460px 360px; justify-content: center; align-items: start; gap: 48px; }
  .miroir-resume { position: sticky; top: 90px; }
  .miroir-barre { display: none; }
  section[data-vue='miroir']:not([hidden]) { padding-bottom: 0; }
  .feuille { width: 480px; margin: auto; border-radius: 28px; }
  .feuille[open] { animation: apparait .4s var(--ease); }
  .annonce { bottom: 28px; }
  .boutique-tete { grid-template-columns: 1fr auto; align-items: end; }
  .recherche { width: 360px; }
}
@media (hover: none) { .carte:hover .carte-image .seconde { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
