/* Photomark Galeries — aux couleurs de « Sev et vos Animaux » */
:root {
  /* Fond brun très sombre, texte crème, accents dorés */
  --fond: #16120d;
  --fond-profond: #100c08;
  --carte: #1f1912;
  --carte-2: #271f16;
  --texte: #f7edda;
  --texte-doux: #e8d7b8;
  --gris: #bfa983;
  --bord: rgba(168, 134, 76, 0.4);
  --bord-fort: #f0cd8d;
  --or: #e9bd72;
  --or-clair: #f4d9a1;
  --or-plein: #dfb86d;
  --or-degrade: linear-gradient(115deg, #ad762f, #f5d998 50%, #c18c41);
  --or-fond: rgba(197, 151, 78, 0.16);
  --sur-or: #2b1908;
  --accent: var(--or);
  --accent-texte: var(--sur-or);
  --accent-clair: var(--or-fond);
  --alerte: #ffb4a3;
  --alerte-fond: rgba(214, 72, 48, 0.16);
  --ok: #a9d9a0;
  --ok-fond: rgba(120, 170, 100, 0.14);
  --rayon: 22px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px)); padding-inline: clamp(16px, 5vw, 64px); }
.page-admin main { max-width: 980px; }
a { color: var(--or); }
code { font-size: 0.92em; background: var(--accent-clair); padding: 1px 6px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--texte); }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.15; margin: 0; color: #fff2d7; }
h1 em, h2 em { color: var(--or); font-style: italic; }
h2 { font-size: 1.3rem; margin: 0 0 4px; }
.surtitre { margin: 0 auto 12px !important; color: #e4bb74; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

/* En-tête du site : logo, écriture manuscrite et menu en pastilles dorées */
.bande-admin {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 6px 16px;
  background: var(--or-fond); color: var(--gris); font-size: 0.85rem; border-bottom: 1px solid var(--bord);
}
.bande-admin a { color: var(--or-clair); font-weight: 700; text-decoration: none; }
.barre { background: rgba(24, 18, 14, 0.92); border-bottom: 1px solid rgba(168, 134, 76, 0.25); padding: 18px 12px 14px; text-align: center; }
.marque { display: inline-flex; align-items: center; justify-content: center; gap: 14px; text-decoration: none; }
.marque-logo { width: 120px; height: auto; }
.marque-ecriture { width: 300px; max-width: 52vw; height: auto; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.menu a {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: 999px;
  border: 1px solid rgba(240, 205, 141, 0.55); color: var(--or-clair); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.01em; text-decoration: none; transition: background 0.2s, box-shadow 0.2s;
}
.menu a::before, .menu a::after { content: "•"; color: var(--or); font-size: 0.6rem; }
.menu a:hover, .menu a[aria-current="page"] {
  background: rgba(197, 151, 78, 0.22); border-color: var(--bord-fort); box-shadow: 0 0 13px rgba(218, 173, 97, 0.23);
}
.bandeau {
  background: var(--or-plein); color: #24190f; text-align: center; padding: 13px 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; overflow: hidden;
}
@media (max-width: 640px) {
  .marque-logo { width: 78px; }
  .menu { gap: 6px; }
  .menu a { padding: 8px 10px; font-size: 0.72rem; }
  .menu a::before, .menu a::after { display: none; }
  .bandeau { letter-spacing: 0.12em; font-size: 0.7rem; }
}

/* Pied de page, comme sur le site */
.pied { margin-top: 30px; padding: 34px 18px 44px; text-align: center; color: #d9c9a9; border-top: 1px solid rgba(168, 134, 76, 0.25); background: #19130f; }
.pied p { margin: 8px 0; }
.pied-titre { font-family: var(--serif); font-size: 1.25rem; color: var(--or-clair); margin-bottom: 16px !important; }
.reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px !important; }
.reseaux a, .pied-liens a { color: var(--or-clair); text-decoration: none; font-weight: 700; font-size: 0.85rem; }
.reseaux a { padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(240, 205, 141, 0.5); }
.reseaux a:hover { background: var(--or-fond); }
.pied-logo { width: 84px; height: auto; margin: 6px auto; display: block; }
.pied-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 0.8rem; }
.pied-liens a { font-weight: 400; color: #d9c9a9; }

.intro { padding: 64px 4px 48px; text-align: center; }
.intro p { margin: 12px auto 0; max-width: 62ch; }
.compte { color: var(--gris); font-family: var(--serif); font-style: italic; }
.mot { white-space: normal; font-family: var(--serif); font-size: 1.06rem; color: var(--texte-doux); }
.vide { text-align: center; color: var(--gris); padding: 50px 16px; font-family: var(--serif); }
.centre { text-align: center; margin: 24px 0; }

/* Boutons et champs */
button, input, select, textarea { font: inherit; color: inherit; }
.principal, .bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer;
}
.principal { background: var(--or-degrade); color: var(--sur-or); font-weight: 700; box-shadow: 0 6px 30px rgba(173, 122, 57, 0.35); }
.bouton { background: transparent; color: var(--or-clair); border-color: rgba(240, 205, 141, 0.55); font-weight: 700; }
.principal:hover { filter: brightness(1.06); }
.bouton:hover { background: var(--or-fond); }
.lien { background: none; border: 0; padding: 10px 4px; min-height: 44px; color: var(--accent); font-weight: 600; cursor: pointer; text-align: left; }
.lien.danger { color: var(--alerte); }
label { display: block; font-size: 0.9rem; color: var(--gris); margin: 14px 0 5px; }
input[type="text"], input[type="password"], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--bord); background: var(--fond-profond); color: var(--texte);
}
input:focus { border-color: var(--or); outline: none; box-shadow: 0 0 0 3px var(--or-fond); }
textarea { resize: vertical; }
.alerte, .info { padding: 12px 16px; border-radius: 10px; margin: 14px 0; }
.alerte { background: var(--alerte-fond); color: var(--alerte); }
.info { background: var(--ok-fond); color: var(--ok); }

/* Boîte centrée : mot de passe, connexion, messages */
.boite {
  max-width: 460px; margin: 8vh auto 0; padding: 34px 30px; text-align: center;
  background: radial-gradient(circle at 50% 0%, #3a2d1b 0%, var(--carte) 70%);
  border-radius: var(--rayon); border: 1px solid var(--bord);
}
.boite h1 { font-size: 1.9rem; margin-bottom: 8px; }
.boite p { color: var(--texte-doux); }
.boite label { text-align: left; }
.boite .principal { width: 100%; margin-top: 20px; }

/* Accueil : cartes des galeries */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.carte-galerie {
  position: relative; display: block; border-radius: var(--rayon); overflow: hidden;
  border: 1px solid var(--bord); color: var(--texte); text-decoration: none; transition: transform 0.2s, border-color 0.2s;
}
.carte-galerie:hover { transform: translateY(-3px); border-color: var(--bord-fort); }
.carte-galerie .toile { width: 100%; aspect-ratio: 4 / 3; }
.carte-texte {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 60px 20px 18px;
  background: linear-gradient(0deg, rgba(14, 13, 11, 0.92), rgba(14, 13, 11, 0) 100%);
}
.carte-texte strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.carte-texte span { color: var(--or-clair); font-size: 0.85rem; }

/* Galerie : lignes justifiées, sans script */
.section {
  display: flex; align-items: center; gap: 16px; margin: 76px 0 26px; font-size: 1.6rem;
}
.section::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bord), transparent); }
.section span { color: var(--or); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; padding: 2px 10px; border: 1px solid var(--bord); border-radius: 999px; }
/* Grille aérée : grands écarts entre les photos */
.grille { display: flex; flex-wrap: wrap; gap: clamp(12px, 2.2vw, 28px); }
.grille::after { content: ""; flex-grow: 999999; }
.photo {
  position: relative; margin: 0; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 270px);
  aspect-ratio: var(--r); background: var(--carte); border-radius: 14px; overflow: hidden;
}
/* Photo dessinée dans un canvas, avec un bouton transparent par-dessus */
.toile { position: relative; display: block; overflow: hidden; background: var(--carte); }
.photo .toile { width: 100%; height: 100%; }
.toile canvas {
  display: block; width: 100%; height: 100%; opacity: 0; filter: blur(14px) saturate(0.6); transform: scale(1.08);
  transition: opacity 0.6s ease, filter 0.9s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.toile.prete canvas { opacity: 1; filter: none; transform: none; }
.ouvrir { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.ouvrir:focus-visible { outline-offset: -3px; }
.page-galerie, .cartes { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.coeur {
  position: absolute; right: 6px; bottom: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(16, 12, 8, 0.6); cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.15s;
}
.photo:hover .coeur, .coeur:focus-visible, .coeur[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .coeur { opacity: 1; } }
.coeur svg, .vn-action svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.coeur[aria-pressed="true"] { background: var(--or-degrade); }
.coeur[aria-pressed="true"] svg { fill: var(--sur-or); stroke: var(--sur-or); }
body.filtre-selection .photo:not(.choisie) { display: none; }

/* Coups de cœur : bandeau en bas de l'écran */
:root { --coeur: #e9bd72; --coeur-clair: rgba(197, 151, 78, 0.2); }

.astuce {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px !important; text-align: left;
  padding: 8px 18px; border-radius: 999px; background: var(--or-fond); border: 1px solid var(--bord); color: var(--texte-doux); font-size: 0.92rem;
}
.astuce-coeur svg { width: 20px; height: 20px; display: block; fill: var(--coeur); }

.panier {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 14px; width: min(820px, calc(100vw - 24px));
  padding: 10px 10px 10px 12px; background: rgba(31, 25, 18, 0.96); border: 1px solid var(--bord-fort); border-radius: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(218, 173, 97, 0.15); backdrop-filter: blur(8px);
}
.panier[hidden] { display: none; }
.panier-compte { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--coeur-clair); display: grid; place-items: center; }
.panier-compte svg { width: 28px; height: 28px; fill: var(--coeur); }
.panier-compte span {
  position: absolute; right: -4px; top: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--or-plein); color: var(--sur-or); font-size: 0.8rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--carte);
}
.panier-texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.panier-texte strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.panier-texte span { color: var(--gris); font-size: 0.88rem; }
.panier-minis { display: flex; align-items: center; flex: none; }
.mini-photo { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--or-plein); margin-left: -12px; background: var(--carte-2); }
.mini-photo:first-child { margin-left: 0; }
.mini-plus { margin-left: 6px; color: var(--gris); font-size: 0.85rem; font-weight: 600; }
.panier-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.envoyer {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--or-degrade); color: var(--sur-or); font-weight: 700; font-size: 1rem; cursor: pointer;
  box-shadow: 0 6px 30px rgba(173, 122, 57, 0.35);
  transition: background 0.2s, transform 0.15s;
}
.envoyer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.envoyer:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.envoyer:disabled { cursor: default; }
.panier.envoye .envoyer { background: var(--or-plein); }
.panier.envoye .envoyer svg { display: none; }
.panier.envoye .envoyer::before { content: "✓"; font-size: 1.1rem; }
.panier.envoi .envoyer { opacity: 0.75; }
.panier.envoi .envoyer svg { animation: envoi 0.8s ease-in-out infinite; }
@keyframes envoi { 50% { transform: translate(3px, -3px); } }
.page-galerie main { padding-bottom: 130px; }

@media (max-width: 640px) {
  .panier { flex-wrap: wrap; gap: 10px; border-radius: 22px; bottom: 10px; }
  .panier-minis { display: none; }
  .panier-actions { width: 100%; }
  .envoyer { flex: 1; justify-content: center; }
}

/* Cœur des photos : petite pulsation, et cœur qui s'envole vers le bandeau */
.coeur.pop, .vn-action.pop { animation: pop 0.35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.envol { position: fixed; z-index: 30; width: 28px; height: 28px; pointer-events: none; }
.envol svg { width: 100%; height: 100%; fill: var(--coeur); filter: drop-shadow(0 2px 8px rgba(233, 189, 114, 0.6)); }
.photo.choisie::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--coeur);
}
.photo .coeur { z-index: 1; }

/* Confirmation après l'envoi */
.merci { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(10, 7, 4, 0.7); cursor: pointer; }
.merci[hidden] { display: none; }
.merci-carte {
  width: min(400px, 100%); padding: 34px 26px 30px; border-radius: 28px; text-align: center;
  background: radial-gradient(circle at 50% 0%, #4a3820 0%, var(--carte) 70%); border: 1px solid var(--bord-fort);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); animation: monte 0.4s cubic-bezier(.2, 1.3, .4, 1);
}
.merci-badge { position: relative; width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%; background: var(--coeur-clair); display: grid; place-items: center; }
.merci-badge > svg { width: 56px; height: 56px; fill: var(--coeur); animation: bat 1.1s ease-in-out 0.3s 2; }
.merci-coche {
  position: absolute; right: 0; bottom: 2px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--or-degrade); display: grid; place-items: center; border: 3px solid var(--carte);
  animation: apparait 0.3s ease-out 0.35s both;
}
.merci-coche svg { width: 22px; height: 22px; fill: none; stroke: var(--sur-or); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.merci-titre { margin: 0; font-family: var(--serif); font-size: 1.9rem; color: #fff2d7; }
.merci-texte { margin: 6px 0 0; color: var(--texte-doux); }
@keyframes monte { from { transform: translateY(24px) scale(0.92); opacity: 0; } }
@keyframes bat { 25% { transform: scale(1.15); } 50% { transform: scale(1); } }
@keyframes apparait { from { transform: scale(0); } }

dialog {
  width: min(460px, calc(100vw - 24px)); padding: 26px; border-radius: 20px; border: 1px solid var(--bord);
  background: var(--carte); color: var(--texte);
}
dialog::backdrop { background: rgba(10, 7, 4, 0.7); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
dialog .actions { justify-content: flex-end; }

/* Visionneuse */
.visionneuse { position: fixed; inset: 0; z-index: 20; background: #0d0a07; display: grid; place-items: center; }
.visionneuse[hidden] { display: none; }
.visionneuse #grande { position: absolute; left: 0; top: 0; width: 100vw; height: calc(100vh - 76px); }
.vn-chargement { position: absolute; top: calc(50% - 50px); color: #c9ccd3; }
.vn-chargement[hidden] { display: none; }
.visionneuse button, .vn-action { color: var(--or-clair); cursor: pointer; }
.vn-action[hidden] { display: none; }
.vn-fermer, .vn-prec, .vn-suiv {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(197, 151, 78, 0.18); border: 1px solid rgba(240, 205, 141, 0.35) !important; display: grid; place-items: center;
}
.vn-fermer svg, .vn-prec svg, .vn-suiv svg { width: 24px; height: 24px; fill: none; stroke: var(--or-clair); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vn-fermer { top: 14px; right: 14px; }
.vn-prec { left: 14px; top: calc(50% - 64px); }
.vn-suiv { right: 14px; top: calc(50% - 64px); }
.vn-bas {
  position: absolute; left: 0; right: 0; bottom: 0; height: 76px; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px 22px; color: var(--texte-doux);
}
.vn-action {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(240, 205, 141, 0.5); background: transparent; color: var(--or-clair); text-decoration: none; font-weight: 700;
}
.vn-action svg { stroke: currentColor; }
.vn-action[aria-pressed="true"] { background: var(--or-degrade); color: var(--sur-or); border-color: transparent; }
.vn-action[aria-pressed="true"] svg { fill: var(--sur-or); stroke: var(--sur-or); }
body.verrou { overflow: hidden; }

/* Sections réservées à l'administrateur */
.reservee { margin: 40px 0 12px; border: 1px dashed var(--bord-fort); border-radius: var(--rayon); padding: 0 14px; background: rgba(197, 151, 78, 0.05); }
.reservee[open] { padding-bottom: 12px; }
.reservee summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 56px; padding: 8px 4px;
  cursor: pointer; font-size: 1.05rem; color: var(--or-clair);
}
.reservee summary { list-style: none; }
.reservee summary::-webkit-details-marker { display: none; }
.bascule { font-weight: 700; color: var(--or); }
.bascule::after { content: "Afficher ▾"; }
.reservee[open] .bascule::after { content: "Masquer ▴"; }
.cadenas svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.etiquette {
  margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: var(--accent-clair); color: var(--accent);
}
.sections { border: 1px solid var(--bord); border-radius: 12px; margin: 16px 0 0; padding: 4px 14px 10px; }
.sections legend { padding: 0 6px; font-weight: 600; }
.sections .aide { margin: 4px 0 6px; color: var(--gris); font-size: 0.9rem; }
.sections label { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 36px; color: var(--texte); font-size: 1rem; }
.sections input { width: 20px; height: 20px; accent-color: var(--accent); }
.sections .nb { color: var(--gris); }

/* Administration */
.reglage {
  display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; margin: 0 0 18px;
  background: var(--carte); border: 1px solid var(--bord); border-radius: 20px;
}
.apercu { flex: 1 1 220px; max-width: 280px; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--bord); align-self: flex-start; }
.apercu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.champs { flex: 999 1 380px; min-width: 0; }
.dossier { margin: 0; color: var(--gris); font-size: 0.92rem; }
.ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0 16px; }
.cases { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.cases label { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 36px; color: var(--texte); font-size: 1rem; }
.cases input { width: 20px; height: 20px; accent-color: var(--accent); }
.partage { display: flex; gap: 8px; }
.partage input { min-width: 0; }
.mini { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.mini img { height: 92px; border-radius: 6px; display: block; }

/* Bandeau « Vos photos sont prêtes » en haut de la galerie */
.pret {
  display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 24px auto 0; padding: 14px 14px 14px 16px;
  border-radius: var(--rayon); color: var(--texte); text-decoration: none;
  background: radial-gradient(circle at 0% 50%, #4a3820 0%, var(--carte) 60%); border: 1px solid var(--bord-fort);
  box-shadow: 0 0 24px rgba(218, 173, 97, 0.15);
}
.pret-icone { width: 46px; height: 46px; border-radius: 50%; background: var(--or-degrade); display: grid; place-items: center; flex: none; }
.pret-icone svg { width: 24px; height: 24px; fill: none; stroke: var(--sur-or); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pret-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pret-texte strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.pret-texte span { color: var(--texte-doux); font-size: 0.92rem; }
.pret-bouton { padding: 12px 22px; border-radius: 999px; background: var(--or-degrade); color: var(--sur-or); font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) { .pret { flex-wrap: wrap; } .pret-bouton { width: 100%; text-align: center; } }

/* Page de livraison */
.livraison-tete { padding: 48px 4px 30px; text-align: center; }
.livraison-tete p { margin: 10px auto 0; }
.livraison-badge { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--or-fond); border: 1px solid var(--bord-fort); display: grid; place-items: center; }
.livraison-badge svg { width: 40px; height: 40px; fill: none; stroke: var(--or); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.principal.grand { min-height: 56px; padding: 0 30px; font-size: 1.1rem; margin-top: 10px; }
.principal .poids { font-weight: 400; opacity: 0.85; margin-left: 4px; }
.livraison-tete .merci-texte { color: var(--texte-doux); font-family: var(--serif); font-style: italic; }
.livraison-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.livraison-photo { margin: 0; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; }
.livraison-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--carte-2); }
.livraison-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; }
.livraison-photo figcaption span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gris); font-size: 0.9rem; }
.livraison-photo .bouton { width: 44px; padding: 0; flex: none; }
.livraison-photo .bouton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Impression désactivée pour les galeries */
@media print {
  .page-galerie main, .cartes { display: none !important; }
  body::after { content: "Impression désactivée."; display: block; padding: 40px; }
}

/* ─── Effets modernes : apparitions, survol, visionneuse ─── */

/* Arrivée du titre */
.intro > * { animation: lever 0.9s cubic-bezier(.2, .8, .2, 1) both; }
.intro > :nth-child(2) { animation-delay: 0.08s; }
.intro > :nth-child(3) { animation-delay: 0.16s; }
.intro > :nth-child(4) { animation-delay: 0.24s; }
.intro > :nth-child(5) { animation-delay: 0.32s; }
@keyframes lever { from { opacity: 0; transform: translateY(22px); } }

/* Photos, titres de section : apparition en cascade au défilement */
.js-anime .photo, .js-anime h2.section, .js-anime .reservee {
  opacity: 0; transform: translateY(34px) scale(0.97);
  transition: opacity 0.7s ease var(--delai, 0s), transform 0.9s cubic-bezier(.2, .8, .2, 1) var(--delai, 0s), box-shadow 0.4s;
}
.js-anime .photo.vue, .js-anime h2.section.vue, .js-anime .reservee.vue { opacity: 1; transform: none; }
.js-anime h2.section::after { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) 0.2s; }
.js-anime h2.section.vue::after { transform: scaleX(1); }

/* Survol : zoom lent, voile doré et liseré */
.photo { transition: box-shadow 0.4s, transform 0.4s; }
.photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(0deg, rgba(16, 12, 8, 0.55), rgba(16, 12, 8, 0) 45%), radial-gradient(circle at 50% 120%, rgba(233, 189, 114, 0.25), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(240, 205, 141, 0); opacity: 0; transition: opacity 0.4s, box-shadow 0.4s;
}
@media (hover: hover) {
  .photo:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 26px rgba(218, 173, 97, 0.18); z-index: 1; }
  .photo:hover::before { opacity: 1; box-shadow: inset 0 0 0 1px rgba(240, 205, 141, 0.6); }
  .photo:hover .toile.prete canvas { transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2, .8, .2, 1), filter 0.9s, opacity 0.6s; }
}
.photo .coeur { z-index: 2; }
.carte-galerie .toile.prete canvas { transition: transform 1.6s cubic-bezier(.2, .8, .2, 1), filter 0.9s, opacity 0.6s; }
.carte-galerie:hover .toile.prete canvas { transform: scale(1.06); }

/* Visionneuse : fond velouté, fil de progression, chargement doré */
.visionneuse { background: radial-gradient(ellipse at 50% 40%, rgba(40, 30, 19, 0.97), rgba(10, 7, 4, 0.985) 70%); backdrop-filter: blur(10px); }
.vn-fil { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(240, 205, 141, 0.12); z-index: 2; }
.vn-fil span { display: block; height: 100%; background: var(--or-degrade); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1); }
.vn-envol { position: fixed; z-index: 3; transform-origin: 0 0; pointer-events: none; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.vn-chargement:empty { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(240, 205, 141, 0.18); border-top-color: var(--or); animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.vn-fermer, .vn-prec, .vn-suiv { transition: background 0.2s, transform 0.2s; z-index: 4; }
.vn-fermer:hover, .vn-prec:hover, .vn-suiv:hover { background: rgba(197, 151, 78, 0.38); transform: scale(1.08); }
.vn-prec:hover { transform: translateX(-3px) scale(1.08); }
.vn-suiv:hover { transform: translateX(3px) scale(1.08); }
.vn-bas { z-index: 4; }
.vn-bas > * { animation: lever 0.5s cubic-bezier(.2, .8, .2, 1) 0.15s both; }
#vn-compte { font-family: var(--serif); font-style: italic; letter-spacing: 0.05em; min-width: 4.5em; text-align: center; }
.vn-minuteur { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; animation: none !important; }
.vn-minuteur span { display: block; height: 100%; background: var(--or); transform: scaleX(0); transform-origin: left; opacity: 0.8; }
#vn-diapo .ic-pause, #vn-diapo[aria-pressed="true"] .ic-lecture { display: none; }
#vn-diapo[aria-pressed="true"] .ic-pause { display: block; }
#vn-diapo .ic-lecture { fill: currentColor; stroke: none; }
.en-diapo .vn-prec, .en-diapo .vn-suiv { opacity: 0.35; }
.en-diapo .vn-prec:hover, .en-diapo .vn-suiv:hover { opacity: 1; }
.vn-action { transition: background 0.2s, border-color 0.2s, transform 0.15s; }
.vn-action:not([aria-pressed="true"]):hover { background: rgba(197, 151, 78, 0.18); border-color: var(--bord-fort); }
.vn-action[aria-pressed="true"]:hover { filter: brightness(1.08); }

/* Barre des coups de cœur : arrivée en glissant */
.panier:not([hidden]) { animation: panier-arrive 0.5s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes panier-arrive { from { opacity: 0; transform: translate(-50%, 40px); } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* « Je veux acheter cette photo » : libellé court sur téléphone */
.txt-court { display: none; }
@media (max-width: 560px) {
  .txt-long { display: none; }
  .txt-court { display: inline; }
  .vn-bas { gap: 8px 10px; padding: 0 10px; }
  #vn-diapo span { display: none; }
  #vn-diapo { padding: 0 12px; }
  #vn-compte { min-width: 3.6em; }
}

/* Téléphone : photos plus grandes, écarts un peu réduits */
@media (max-width: 640px) {
  .grille { gap: 12px; }
  .photo { flex-basis: calc(var(--r) * 200px); }
  .intro { padding: 40px 4px 30px; }
  .section { margin-top: 52px; }
}

/* Espace client : fenêtre flottante en bas à droite, qui suit le défilement */
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acces-flottant {
  position: fixed; z-index: 15;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; max-width: calc(100vw - 32px);
}
.acces-panneau {
  width: 360px; max-width: 100%; padding: 18px 18px 18px 20px; border-radius: var(--rayon);
  background: radial-gradient(circle at 0% 0%, #3a2d1b 0%, rgba(31, 25, 18, 0.97) 65%); border: 1px solid var(--bord-fort);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 26px rgba(218, 173, 97, 0.14); backdrop-filter: blur(8px);
}
.acces-flottant.anime .acces-panneau:not([hidden]) { animation: acces-arrive 0.45s cubic-bezier(.2, .9, .3, 1.1); }
.acces-flottant.anime .acces-pastille:not([hidden]) { animation: acces-arrive 0.35s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes acces-arrive { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
.acces-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.acces-tete .surtitre { margin: 0 0 4px !important; text-align: left; font-size: 0.66rem; }
.acces-tete h2 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.acces-reduire {
  flex: none; width: 36px; height: 36px; margin: -4px -4px 0 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(197, 151, 78, 0.14); border: 1px solid rgba(240, 205, 141, 0.35); color: var(--or-clair); transition: background 0.2s;
}
.acces-reduire:hover { background: rgba(197, 151, 78, 0.3); }
.acces-reduire svg, .acces-pastille svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acces-aide { margin: 6px 0 12px; color: var(--texte-doux); font-size: 0.9rem; }
.acces-pastille {
  display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 20px 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--or-degrade); color: var(--sur-or); border: 0; font: 700 0.95rem/1 var(--sans);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 6px 26px rgba(173, 122, 57, 0.35); transition: transform 0.2s, filter 0.2s;
}
.acces-pastille:hover { transform: translateY(-2px); filter: brightness(1.06); }
.acces-client { margin: 0; }
.acces-client.en-erreur input { border-color: var(--alerte); }
.acces-champ { display: flex; flex-wrap: wrap; gap: 8px; }
.acces-champ input {
  flex: 1 1 140px; min-width: 0; margin: 0; padding: 0 14px; height: 48px; border-radius: 999px;
  font: 700 1.05rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-align: center;
}
.acces-champ input::placeholder { letter-spacing: 0.06em; text-transform: none; font-weight: 400; color: var(--gris); }
.acces-champ .principal { flex: 1 1 140px; min-height: 48px; padding: 0 18px; white-space: nowrap; }
.acces-client .alerte { margin: 10px 0 0; font-size: 0.9rem; }
.boite .acces-client { margin-top: 22px; }
/* Le pied de page reste lisible au-dessus de la fenêtre */
body:has(.acces-flottant) .pied { padding-bottom: 130px; }
@media (max-width: 560px) {
  .acces-flottant { right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); max-width: none; }
  .acces-panneau { width: 100%; }
  .acces-pastille { min-height: 46px; }
}
.acces-flottant [hidden] { display: none !important; }

/* Lien temporaire vers l'administration, en bas des pages */
.pied-admin { margin-top: 18px !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.deconnecte {
  position: fixed; left: 50%; top: calc(18px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 30;
  margin: 0 !important; padding: 12px 20px; border-radius: 999px; background: var(--carte-2); color: var(--or-clair);
  border: 1px solid var(--bord-fort); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); animation: deconnecte 4.5s forwards;
}
@keyframes deconnecte { 0% { opacity: 0; transform: translate(-50%, -10px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; } }
.pied-admin a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 0.8rem;
  color: var(--gris); text-decoration: none; border: 1px solid rgba(168, 134, 76, 0.3);
}
.pied-admin a:hover { color: var(--or-clair); border-color: var(--bord-fort); }
.pied-admin svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Vitrine : ni titre ni nombre de photos, les photos viennent tout de suite */
.intro-vitrine { padding: 36px 4px 0; }
.intro-vitrine:not(:has(> :not(.invisible))) { padding: 0; }
.intro-vitrine ~ h2.section:first-of-type { margin-top: 48px; }
.intro-vitrine:not(:has(> :not(.invisible))) ~ .grille:first-of-type { margin-top: 48px; }

/* ───────── Photo offerte et suppléments (1.25) ───────── */
.astuce-offre { display: flex; align-items: flex-start; gap: 14px; max-width: 640px; margin-inline: auto; border-radius: 20px; padding: 14px 20px; text-align: left; }
.astuce-offre p { margin: 0; line-height: 1.5; }
.astuce-offre strong { color: var(--or-clair); }
.astuce-offre p span { display: block; margin-top: 4px; color: var(--texte-doux); }
.astuce-cadeau, .suggestion-cadeau { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--or-degrade); display: grid; place-items: center; }
.astuce-cadeau svg, .suggestion-cadeau svg { width: 21px; height: 21px; fill: none; stroke: var(--sur-or); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.etiquette-choix {
  position: absolute; left: 8px; top: 8px; padding: 3px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  pointer-events: none; opacity: 0; transform: translateY(-4px); transition: opacity 0.2s, transform 0.2s;
}
.photo[data-choix="offerte"] .etiquette-choix, .photo[data-choix="supplement"] .etiquette-choix { opacity: 1; transform: none; }
.photo[data-choix="offerte"] .etiquette-choix { background: var(--or-degrade); color: var(--sur-or); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.photo[data-choix="supplement"] .etiquette-choix { background: rgba(16, 12, 8, 0.72); color: var(--or-clair); border: 1px solid rgba(240, 205, 141, 0.55); }
.photo[data-choix="offerte"] .toile { box-shadow: 0 0 0 3px var(--or-plein); }

.suggestion {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 12px; width: min(560px, calc(100vw - 24px)); padding: 12px 14px;
  background: rgba(31, 25, 18, 0.97); border: 1px solid var(--bord-fort); border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.suggestion[hidden] { display: none; }
/* La bulle ne bloque pas les photos en dessous : seule la croix se touche */
.suggestion { pointer-events: none; }
.suggestion-fermer { pointer-events: auto; }
.suggestion p { margin: 0; flex: 1 1 auto; min-width: 0; line-height: 1.45; font-size: 0.95rem; color: var(--texte-doux); }
.suggestion strong { color: var(--or-clair); }
.suggestion-fermer { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--gris); font-size: 1.4rem; cursor: pointer; }
.suggestion-fermer:hover { background: var(--or-fond); color: var(--texte); }
.suggestion.en-haut { top: max(12px, env(safe-area-inset-top, 0px)); bottom: auto; }

/* ───────── Photo offerte livrée tout de suite (1.26) ───────── */
.merci-lien { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 13px 24px; border-radius: 999px; text-decoration: none; font-size: 1rem; }
.merci-lien[hidden], .merci-suite[hidden] { display: none; }
.merci-lien svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.merci-suite { margin: 14px 0 0; color: var(--gris); font-size: 0.9rem; line-height: 1.5; }
.livraison-tete .encore { margin-top: 14px; color: var(--texte-doux); }

/* ───────── Objets personnalisés (1.27) ───────── */
.astuce-objets { gap: 10px; }
.astuce-sac svg, .objet-bouton svg, .panier-objets svg, #vn-objet svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.astuce-sac { color: var(--or); display: grid; }
.astuce-sac svg { width: 20px; height: 20px; }
.objet-bouton {
  position: absolute; right: 56px; bottom: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(16, 12, 8, 0.6); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity 0.15s, background 0.15s;
}
.objet-bouton svg { width: 21px; height: 21px; }
.photo:hover .objet-bouton, .objet-bouton:focus-visible { opacity: 1; }
.objet-bouton:hover { background: rgba(197, 151, 78, 0.55); }
@media (hover: none) { .objet-bouton { opacity: 1; } }
.panier-objets { display: inline-flex; align-items: center; gap: 4px; }
.panier-objets[hidden] { display: none; }
.panier-objets svg { width: 18px; height: 18px; }
#vn-objet svg { fill: none; }

.atelier { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(10, 7, 4, 0.78); backdrop-filter: blur(6px); }
.atelier[hidden] { display: none; }
.atelier-carte {
  width: min(880px, 100%); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 22px clamp(16px, 3vw, 30px) 20px; border-radius: 24px; background: var(--carte); border: 1px solid var(--bord-fort);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); animation: monte 0.35s cubic-bezier(.2, 1.2, .4, 1);
}
.atelier-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.atelier-tete .surtitre { margin: 0 0 2px; }
.atelier-tete h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.atelier-fermer { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--bord); background: transparent; color: var(--texte); font-size: 1.5rem; cursor: pointer; }
.atelier-fermer:hover { background: var(--or-fond); }
.atelier-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.objet { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; border: 1px solid var(--bord); background: rgba(255, 245, 225, 0.03); overflow: hidden; }
.objet-infos { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.objet-infos h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.objet-prix { margin: 0; color: var(--or-clair); font-weight: 700; }
.objet-desc { margin: 0; color: var(--gris); font-size: 0.86rem; }
.objet-reglages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.objet-reglages select { flex: 1 1 100%; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--bord); background: var(--fond); color: var(--texte); font: inherit; }
.objet-option { flex: 1 1 100%; color: var(--texte-doux); font-size: 0.9rem; }
.quantite { display: inline-flex; align-items: center; border: 1px solid var(--bord); border-radius: 999px; }
.quantite button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--texte); font-size: 1.15rem; cursor: pointer; border-radius: 50%; }
.quantite button:hover { background: var(--or-fond); }
.quantite output { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.objet-ajouter { flex: 1 1 auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--or-degrade); color: var(--sur-or); font-weight: 700; cursor: pointer; }
.objet-ajouter.fait { background: var(--or-plein); }
.atelier-note { margin: 14px 0 0; color: var(--gris); font-size: 0.86rem; }

/* Maquettes : la zone d'impression contient la photo, le reste dessine l'objet */
.maquette { position: relative; display: grid; place-items: center; height: 190px; padding: 18px; background: radial-gradient(circle at 50% 40%, #3a2d1d, #1a140d 75%); }
.maquette .zone { position: relative; display: block; max-width: 78%; max-height: 100%; overflow: hidden; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
.maquette .zone canvas { display: block; width: 100%; height: 100%; }
.maquette.forme-mug .zone { width: 62%; border-radius: 6px 6px 22px 22px / 6px 6px 14px 14px; border: 6px solid #f4f0ea; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 12px 26px rgba(0, 0, 0, 0.5); }
.maquette.forme-mug .zone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.28), transparent 22%, rgba(255,255,255,0.18) 50%, transparent 70%, rgba(0,0,0,0.3)); }
.maquette.forme-mug .anse { position: absolute; left: calc(50% + 31% - 4px); top: 50%; width: 34px; height: 56px; transform: translateY(-50%); border: 9px solid #f4f0ea; border-left: 0; border-radius: 0 30px 30px 0; }
.maquette.forme-coussin .zone { width: 58%; border-radius: 22px; box-shadow: inset 0 0 18px rgba(0,0,0,0.35), 0 14px 26px rgba(0, 0, 0, 0.5); }
.maquette.forme-coussin .zone::after { content: ""; position: absolute; inset: 0; border-radius: 22px; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12), transparent 60%), radial-gradient(circle at 50% 50%, transparent 55%, rgba(0,0,0,0.35)); }
.maquette.forme-toile .zone { box-shadow: 6px 6px 0 rgba(0,0,0,0.35), 0 16px 30px rgba(0, 0, 0, 0.55); height: 82%; width: auto; }
.maquette.forme-toile .zone canvas { height: 100%; width: auto; }
.maquette.forme-tirage .zone { padding: 7px 7px 22px; background: #fbf8f2; height: 86%; width: auto; transform: rotate(-3deg); }
.maquette.forme-tirage .zone canvas { height: 100%; width: auto; }
.maquette.forme-magnet .zone { width: 44%; border-radius: 10px; }
.maquette.forme-porte-cles .zone { height: 72%; width: auto; border-radius: 14px; border: 2px solid rgba(255,255,255,0.55); }
.maquette.forme-porte-cles .zone canvas { height: 100%; width: auto; }
.maquette.forme-porte-cles .anneau { position: absolute; top: 8px; left: 50%; width: 30px; height: 30px; transform: translateX(-50%); border: 4px solid #c9c4bb; border-radius: 50%; }
.maquette.forme-calendrier .zone { width: 66%; border-top: 8px solid #f4f0ea; }
.maquette.forme-calendrier .jours { position: absolute; left: 17%; right: 17%; bottom: 14px; height: 22px; background: repeating-linear-gradient(90deg, #f4f0ea 0 10px, #e2dcd2 10px 12px); border-radius: 0 0 4px 4px; }
.maquette.forme-autre .zone { width: 56%; border-radius: 8px; }

.recap-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.recap-liste li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px; border-radius: 14px; border: 1px solid var(--bord); }
.recap-photo { width: 56px; height: 56px; border-radius: 10px; flex: none; }
.recap-texte { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.recap-texte span { color: var(--gris); font-size: 0.88rem; }
.recap-montant { font-weight: 700; color: var(--or-clair); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.recap-retirer { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bord); background: transparent; color: var(--gris); font-size: 1.2rem; cursor: pointer; }
.recap-retirer:hover { color: var(--texte); background: var(--or-fond); }
.recap-total { margin: 14px 0 0; text-align: right; font-family: var(--serif); font-size: 1.2rem; color: var(--or-clair); }
@media (prefers-reduced-motion: reduce) { .atelier-carte { animation: none; } }

/* ───────── Panier et bon de commande (1.28) ───────── */
.panier { gap: 12px; padding: 8px 8px 8px 10px; width: min(860px, calc(100vw - 24px)); }
.panier-ouvrir {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--bord-fort);
  background: var(--coeur-clair); color: var(--or-clair); display: grid; place-items: center; cursor: pointer;
}
.panier-ouvrir svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.panier-ouvrir:hover { background: rgba(197, 151, 78, 0.32); }
.panier-nombre {
  position: absolute; right: -5px; top: -5px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--or-plein); color: var(--sur-or); font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--carte);
}
button.panier-texte { flex: 1 1 auto; min-width: 0; padding: 4px 6px; border: 0; border-radius: 12px; background: transparent; color: var(--texte); text-align: left; font: inherit; cursor: pointer; }
button.panier-texte:hover { background: var(--or-fond); }
button.panier-texte strong::after { content: " · voir le détail"; font-family: var(--sans); font-size: 0.8rem; color: var(--or); }
.panier-texte span { overflow: hidden; text-overflow: ellipsis; }
.panier-total { flex: none; font-family: var(--serif); font-size: 1.35rem; color: var(--or-clair); font-variant-numeric: tabular-nums; }
.panier-total:empty { display: none; }
.envoyer { padding: 0 20px; font-size: 0.95rem; white-space: nowrap; }
.envoyer.grand { width: 100%; justify-content: center; min-height: 56px; font-size: 1.05rem; white-space: normal; text-align: center; }
.panier.envoye .envoyer svg, .detail-pied .envoyer:disabled svg { display: none; }
@media (max-width: 760px) {
  .panier { flex-wrap: wrap; border-radius: 22px; }
  button.panier-texte { flex: 1 1 0; }
  .panier .envoyer { flex: 1 1 100%; justify-content: center; white-space: normal; }
}

/* Tiroir du panier */
.tiroir .atelier-carte { width: min(640px, 100%); display: flex; flex-direction: column; }
.detail-section { padding: 14px 0; border-top: 1px solid var(--bord); }
.detail-section:first-child { border-top: 0; padding-top: 4px; }
.detail-section h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--or-clair); }
.detail-aide { margin: 0 0 8px; color: var(--gris); font-size: 0.9rem; }
.lignes { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ligne {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto auto; grid-template-areas: "img txt qte prix x";
  align-items: center; gap: 0 12px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 245, 225, 0.035); border: 1px solid var(--bord);
}
.ligne > .ligne-photo { grid-area: img; }
.ligne > .ligne-texte { grid-area: txt; }
.ligne > .quantite { grid-area: qte; }
.ligne > .ligne-prix { grid-area: prix; }
.ligne > .ligne-retirer { grid-area: x; }
.ligne-photo { width: 52px; height: 52px; border-radius: 10px; flex: none; }
.ligne-texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ligne-texte span { color: var(--gris); font-size: 0.86rem; }
.ligne-prix { flex: none; min-width: 64px; text-align: right; font-weight: 700; color: var(--texte); font-variant-numeric: tabular-nums; }
.ligne-prix.offerte { color: var(--sur-or); background: var(--or-degrade); border-radius: 999px; padding: 3px 10px; min-width: 0; font-size: 0.85rem; }
.ligne .quantite button { width: 32px; height: 32px; }
.ligne-retirer { order: 9; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--bord); background: transparent; color: var(--gris); font-size: 1.15rem; cursor: pointer; }
.ligne-retirer:hover { color: var(--texte); background: var(--or-fond); }
.detail-pied { position: sticky; bottom: -20px; margin: 6px calc(-1 * clamp(16px, 3vw, 30px)) -20px; padding: 14px clamp(16px, 3vw, 30px) 18px; background: var(--carte); border-top: 1px solid var(--bord-fort); }
.detail-totaux { display: grid; grid-template-columns: 1fr auto; gap: 4px 0; margin: 0 0 14px; }
.detail-totaux dd { padding-left: 16px; }
.detail-totaux dt { color: var(--gris); }
.detail-totaux dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.detail-totaux .total { padding-top: 6px; border-top: 1px solid var(--bord); font-family: var(--serif); font-size: 1.3rem; color: var(--or-clair); }
.detail-note { margin: 10px 0 0; color: var(--gris); font-size: 0.85rem; text-align: center; }
@media (max-width: 520px) {
  .ligne { grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: "img txt prix x" "img qte qte qte"; gap: 0 10px; }
  .ligne-photo { width: 44px; height: 44px; }
  .ligne > .quantite { justify-self: start; margin-top: 6px; }
  .ligne-prix { min-width: 0; }
  /* Pied du panier compact : seul le total, le détail reste dans les lignes */
  .detail-totaux dt:not(.total), .detail-totaux dd:not(.total) { display: none; }
  .detail-totaux { margin-bottom: 10px; }
  .detail-totaux .total { border-top: 0; padding-top: 0; }
  .detail-note { font-size: 0.8rem; margin-top: 8px; }
  .panier .envoyer { font-size: 0.92rem; padding: 0 14px; }
  .panier .envoyer svg { display: none; }
}

/* ───────── Récapitulatif du bon de commande (1.29) ───────── */
.merci-bon { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; text-decoration: none; }
.merci-bon[hidden] { display: none; }
.merci-bon svg, .bon-pdf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.merci-lien + .merci-bon { margin-left: 0; }
.panier-recap { flex: none; color: var(--or-clair); font-weight: 700; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.panier-recap[hidden] { display: none; }

.bon { width: min(860px, 100%); margin: 28px auto 0; padding: 28px clamp(16px, 4vw, 40px) 34px; border-radius: 24px; background: var(--carte); border: 1px solid var(--bord); }
.bon-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--bord); }
.bon-tete .surtitre { margin: 0; }
.bon-tete h1 { margin: 4px 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.3rem); }
.bon-infos { margin: 0; color: var(--gris); }
.bon-pdf { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.bon-table { width: 100%; margin: 18px 0 0; border-collapse: collapse; }
.bon-table th { text-align: left; color: var(--gris); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding: 0 8px 10px; }
.bon-table td { padding: 10px 8px; border-top: 1px solid var(--bord); vertical-align: middle; }
.bon-table td strong { display: block; }
.bon-table td span { color: var(--gris); font-size: 0.88rem; }
.bon-table .nombre, .bon-table th:nth-child(n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bon-vignette { width: 60px; }
.bon-vignette img { display: block; width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.bon-offerte td:last-child { color: var(--or); font-weight: 700; }
.bon-table tfoot th, .bon-table tfoot td { padding-top: 16px; border-top: 2px solid var(--bord-fort); font-family: var(--serif); font-size: 1.3rem; color: var(--or-clair); letter-spacing: 0; text-transform: none; font-weight: 400; }
.bon-table tfoot th { text-align: right; }
.bon-suite { margin-top: 26px; }
.bon-suite h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.bon-suite ul { margin: 0 0 18px; padding-left: 20px; color: var(--texte-doux); line-height: 1.7; }
@media (max-width: 560px) {
  .bon-table thead { display: none; }
  .bon-table tr { display: grid; grid-template-columns: 52px 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--bord); }
  .bon-table td { padding: 0; border: 0; }
  .bon-table td.bon-vignette { grid-row: span 2; width: auto; }
  .bon-table td:nth-child(3) { display: none; }
  .bon-table td:nth-child(4) { grid-column: 2; text-align: left; color: var(--gris); font-size: 0.85rem; }
  .bon-table .bon-offerte td:nth-child(4) { visibility: hidden; }
  .bon-table td:nth-child(5) { grid-column: 3; grid-row: 1; }
  .bon-table tfoot tr { grid-template-columns: 1fr auto; border-top: 2px solid var(--bord-fort); }
  .bon-table tfoot th, .bon-table tfoot td { border: 0; padding-top: 6px; }
}
@media print {
  .entete-site, .pied-site, .bon-pdf, .bon-suite .bouton, .bande-admin, .menu, .bandeau { display: none !important; }
  body { background: #fff; color: #222; }
}

/* ═════════ Parcours guidé (1.33) ═════════ */
/* Repère des étapes, toujours visible en haut */
.parcours { width: min(1100px, 100%); margin: 8px auto 18px; }
.parcours-barre {
  position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin: 0 -4px; border-radius: 0 0 18px 18px;
  background: rgba(22, 18, 13, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bord);
}
.etapes { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.etapes li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.etapes li + li::before { content: ""; position: absolute; top: 15px; right: calc(50% + 20px); width: calc(100% - 40px); height: 2px; background: var(--bord); }
.etapes li.faite + li::before, .etapes li.active::before { background: var(--or-plein); }
.etape-rond {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem; color: var(--gris); border: 1px solid var(--bord); background: var(--fond);
}
.etapes li.faite .etape-rond { background: #3a2c18; color: var(--or-clair); border-color: var(--or); }
.etapes li.active .etape-rond { background: var(--or-degrade); color: var(--sur-or); border-color: transparent; box-shadow: 0 0 0 4px rgba(233, 189, 114, 0.22); }
.etape-nom { font-size: 0.78rem; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.etapes li.active .etape-nom { color: var(--or-clair); font-weight: 700; }
.aide-bouton {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(240, 205, 141, 0.6); background: var(--or-fond); color: var(--or-clair); font: inherit; font-weight: 700; cursor: pointer;
}
.aide-bouton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.aide-bouton:hover { background: rgba(197, 151, 78, 0.3); }
.parcours-consigne { padding: 18px 4px 0; text-align: center; }
.parcours-consigne h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.1rem); color: #fff2d7; }
.parcours-consigne > p { margin: 8px auto 0; max-width: 62ch; color: var(--texte-doux); font-size: 1.02rem; line-height: 1.5; }
.etape-astuce {
  display: inline-flex !important; align-items: center; gap: 10px; margin-top: 14px !important; padding: 10px 16px; border-radius: 14px;
  background: var(--or-fond); border: 1px dashed rgba(240, 205, 141, 0.6); color: var(--or-clair) !important; font-size: 0.95rem !important;
}
.etape-astuce[hidden] { display: none !important; }
.etape-astuce svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Un seul bouton écrit par photo, qui change avec l'étape */
.choix-bouton {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(240, 205, 141, 0.65); background: rgba(16, 12, 8, 0.78); color: #fff6e6;
  font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer; backdrop-filter: blur(4px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.15s, color 0.15s;
}
.choix-bouton:hover { background: rgba(60, 44, 22, 0.92); }
.choix-bouton[data-etat="actif"] { background: var(--or-degrade); color: var(--sur-or); border-color: transparent; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.choix-bouton[data-etat="fixe"] { background: #fbf4e6; color: var(--sur-or); border-color: transparent; }
.choix-bouton:empty { display: none; }
.choix-bouton.pop { animation: tape 0.3s ease; }
@keyframes tape { 40% { transform: scale(1.06); } }
.choix-bouton.indice { animation: indice 1.6s ease-in-out infinite; }
@keyframes indice { 0%, 100% { box-shadow: 0 0 0 0 rgba(233, 189, 114, 0.7); } 50% { box-shadow: 0 0 0 10px rgba(233, 189, 114, 0); } }
.photo[data-choix="offerte"] .toile, .photo.choisie .toile { box-shadow: inset 0 0 0 3px var(--or-plein); }
.photo .etiquette-choix { top: 8px; left: 8px; }
/* Étape « objets » : l'étiquette Offerte/En plus reste, le bouton imprime */
body[data-etape="recap"] .grille, body[data-etape="recap"] h2.section, body[data-etape="recap"] .reservee { display: none; }
body[data-etape] .page-galerie .astuce { display: none; }

/* Étape 4 : le récapitulatif dans la page */
.recap-etape { width: min(720px, 100%); margin: 0 auto 30px; padding: 6px clamp(14px, 3vw, 26px) 20px; border-radius: 24px; background: var(--carte); border: 1px solid var(--bord); }
.recap-etape[hidden] { display: none; }
.recap-etape .detail-totaux { margin: 14px 0 6px; }
.recap-etape .detail-note { text-align: left; }

/* Barre du bas : résumé, total, une action principale */
.panier.barre-etape {
  flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 12px; border-radius: 24px; width: min(720px, calc(100vw - 24px));
}
.barre-resume {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 6px; border: 0; background: transparent;
  color: var(--texte-doux); font: inherit; font-size: 0.92rem; text-align: left; cursor: pointer; border-radius: 10px;
}
.barre-resume:hover { background: var(--or-fond); }
.barre-resume strong { font-family: var(--serif); font-size: 1.3rem; color: var(--or-clair); font-weight: 400; white-space: nowrap; }
.barre-resume strong:empty { display: none; }
.barre-actions { display: flex; gap: 10px; }
.barre-actions .envoyer { flex: 1; justify-content: center; white-space: normal; text-align: center; min-height: 54px; }
.barre-actions .envoyer[hidden] { display: none; }
.etape-suivante svg { width: 20px; height: 20px; }
.etape-suivante.bloque { background: #3a3024; color: var(--gris); box-shadow: none; }
.etape-suivante.bloque svg { display: none; }
.etape-retour {
  flex: none; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(240, 205, 141, 0.55); background: transparent;
  color: var(--or-clair); display: grid; place-items: center; cursor: pointer;
}
.etape-retour[hidden] { display: none; }
.etape-retour svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.etape-passer { align-self: center; min-height: 36px; border: 0; background: transparent; color: var(--gris); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 0.92rem; cursor: pointer; }
.etape-passer[hidden] { display: none; }
.barre-etape .panier-recap { align-self: center; }
body.page-galerie:has(.barre-etape) .pied-site { padding-bottom: 170px; }

/* Aide : feuille du bas */
.aide-feuille { align-items: end; padding: 0; }
.aide-feuille .atelier-carte { width: min(640px, 100%); max-height: 86dvh; border-radius: 26px 26px 0 0; background: #fbf4e6; color: var(--sur-or); border: 0; }
.aide-feuille .surtitre { color: #8a5a17; }
.aide-feuille h2 { color: var(--sur-or); }
.aide-feuille .atelier-fermer { color: var(--sur-or); border-color: #d9c6a2; }
.aide-etape { padding: 14px 16px; border-radius: 16px; background: #f1e3c6; margin-bottom: 16px; }
.aide-etape p { margin: 0; line-height: 1.55; }
.aide-etiquette { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8a5a17; margin-bottom: 4px !important; }
.aide-sous-titre { margin: 0 0 4px; font-weight: 700; }
.faq { border-top: 1px solid #e3d3b2; padding: 10px 0; }
.faq:last-of-type { border-bottom: 1px solid #e3d3b2; }
.faq summary { cursor: pointer; min-height: 30px; display: flex; align-items: center; font-size: 1rem; }
.faq p { margin: 8px 0 0; color: #4a3720; line-height: 1.5; }
.aide-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.aide-actions .bouton { border-color: var(--sur-or); color: var(--sur-or); justify-content: center; }
.aide-actions .principal { justify-content: center; text-align: center; text-decoration: none; }

/* Visite guidée */
.visite { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 3, 0.8); }
.visite[hidden] { display: none; }
.visite-carte { width: min(440px, 100%); padding: 24px; border-radius: 24px; background: #fbf4e6; color: var(--sur-or); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); animation: monte 0.35s cubic-bezier(.2, 1.2, .4, 1); }
.visite-numero { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8a5a17; }
.visite-carte h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.visite-carte p:not(.visite-numero) { margin: 0 0 18px; line-height: 1.55; color: #4a3720; }
.visite-actions { display: flex; align-items: center; gap: 12px; }
.visite-passer { min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: #6b5233; text-decoration: underline; font: inherit; cursor: pointer; }
.visite-suivant { flex: 1; min-height: 50px; border: 0; border-radius: 999px; background: var(--sur-or); color: #fbf4e6; font: inherit; font-weight: 700; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .visite-carte { animation: none; } .choix-bouton.indice { animation: none; } }

@media (max-width: 640px) {
  .parcours-barre { padding: 8px 8px; gap: 8px; }
  .etape-nom { font-size: 0.7rem; }
  .aide-bouton { padding: 0 12px; }
  .choix-bouton { left: 6px; right: 6px; bottom: 6px; font-size: 0.88rem; min-height: 42px; }
  .barre-resume { font-size: 0.86rem; }
}
