/* =========================================================
   Mélodie — cartes postales personnalisées
   ========================================================= */

:root {
  /* ✏️ COULEURS DU SITE — modifiez-les ici, tout le site suit.
     Ambiance : salon aux lumières chaudes, feu de cheminée. */
  --paper: #fcf4e6;         /* fond principal : crème chaud */
  --paper-2: #f3e3c8;       /* fond des emplacements photo : sable doré */
  --ink: #3a2518;           /* texte : brun chocolat */
  --ink-soft: #7a5c48;      /* texte secondaire */
  --accent: #c9742c;        /* couleur principale : ambre / caramel (boutons) */
  --accent-dark: #a65c1d;
  --accent-rgb: 201, 116, 44;
  --ember: #b9432a;         /* braise : titres, accents */
  --honey: #f2b84b;         /* miel : touches lumineuses */
  --terracotta: #d2794f;    /* terre cuite */
  --wood: #5c3a27;          /* bois sombre : section « Comment ça marche » */
  --sage: #a4b07a;          /* vert olive doux (petites touches) */
  --line: #ead9bd;          /* traits, bordures */
  --white: #fffaf1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --hand: "Caveat", cursive;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; }
h1 em { color: var(--accent); font-weight: 500; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.handwritten {
  font-family: var(--hand);
  font-size: 1.7rem;
  color: var(--sage);
  margin: 0 0 0.3rem;
  transform: rotate(-2deg);
  display: inline-block;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-intro { color: var(--ink-soft); margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--white); }
.btn-small { padding: 0.55em 1.2em; font-size: 0.85rem; }
.btn-large { padding: 1em 2.4em; font-size: 1.05rem; }

/* ---------- Emplacements photo ---------- */
.placeholder {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(var(--accent-rgb), 0.05) 14px 28px),
    var(--paper-2);
  border: 2px dashed #c8c8c8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.placeholder::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 38px;
  transform: translate(-50%, -110%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9a48e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E");
}
.placeholder::after {
  content: attr(data-label);
  white-space: pre-line;
  text-align: center;
  padding: 3.2rem 1rem 0;
  font-size: 0.85rem;
  color: #8a8a8a;
  letter-spacing: 0.03em;
}
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-4-5 { aspect-ratio: 4 / 5; }

/* Les vraies photos reprennent les mêmes proportions */
img.photo { width: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.logo-sub {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s;
}
.main-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-visual { position: relative; min-height: 480px; }
.hero-card {
  position: absolute;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border: 10px solid var(--white);
}
.placeholder.hero-card { outline: 2px dashed #c8c8c8; outline-offset: -12px; }
.hero-visual .hero-card-1 { width: 52%; top: 0; left: 2%; transform: rotate(-4deg); }
.hero-visual .hero-card-2 { width: 56%; bottom: 0; right: 0; transform: rotate(5deg); }
.stamp {
  position: absolute;
  top: 6%; right: 8%;
  width: 70px; height: 70px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  color: var(--accent);
  border: 2px dashed var(--accent);
  border-radius: 50%;
  transform: rotate(12deg);
  background: var(--paper);
}

/* ---------- À propos ---------- */
.about { background: var(--white); }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: center; }
.about-text p { color: var(--ink-soft); }
.about-points {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.about-points li { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.about-points strong { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-weight: 600; }

/* ---------- Galerie ---------- */
.gallery-filters { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter {
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.45em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.gallery { columns: 4 240px; column-gap: 1.25rem; }
.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery-item.is-leaving { opacity: 0; transform: scale(0.96); }
.gallery-item figcaption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.7rem 0.2rem 0;
  transition: color 0.3s;
}
.gallery-item:hover figcaption { color: var(--ink); }
.gallery-item.is-hidden { display: none; }

/* ---------- Cartes produits ---------- */
.cards-section { background: var(--paper-2); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 820px; margin-inline: auto; }
.product-card {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: translate 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s;
}
.product-card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
.product-card .media { --media-r: 0px; }
.product-card .placeholder { border-radius: 0; border-width: 0 0 2px; }
.product-body { padding: 1.6rem 1.7rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.product-body p { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 1rem; }
.tag {
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--sage);
  background: rgba(143, 165, 140, 0.14);
  padding: 0.25em 0.8em;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.product-specs { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: 0.88rem; }
.product-specs li { padding: 0.3rem 0 0.3rem 1.4rem; position: relative; border-top: 1px dashed var(--line); }
.product-specs li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 0.75rem; top: 0.45rem; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }

.product-card-custom .custom-visual {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, #d99a7f 55%, var(--sage) 100%);
}
.custom-visual span { font-family: var(--serif); font-size: 6rem; color: var(--white); font-style: italic; opacity: 0.9; }

/* ---------- Étapes ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}
.steps li { text-align: center; padding: 0 0.5rem; position: relative; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px; left: calc(50% + 40px); right: calc(-50% + 40px);
  border-top: 2px dashed var(--line);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Commande ---------- */
.order-section { background: var(--white); }
.order-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
.order-intro { position: sticky; top: 110px; }
.order-intro > p { color: var(--ink-soft); }

.estimate {
  margin-top: 2rem;
  padding: 1.5rem 1.7rem;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px dashed #c8c8c8;
}
.estimate-label { margin: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-soft); }
.estimate-value { margin: 0.2rem 0; font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--accent); }
.estimate-note { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }

.order-form {
  background: var(--paper);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
}
fieldset { border: 0; padding: 0; margin: 0 0 2.2rem; }
legend {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  padding: 0;
}
.order-form label { display: block; font-size: 0.9rem; font-weight: 400; margin-bottom: 1.1rem; }
.field-title { font-size: 0.9rem; margin: 0 0 0.6rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.2rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75em 0.95em;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.is-invalid { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important; }
.hint { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.35rem; }

/* Choix de format */
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1.3rem; }
.choice { margin: 0 !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: all 0.2s;
  height: 100%;
}
.choice-box strong { font-weight: 500; font-size: 0.92rem; }
.choice-box small { font-size: 0.75rem; color: var(--ink-soft); }
.choice:hover .choice-box { border-color: var(--accent); }
.choice input:checked + .choice-box { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.07); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--accent); outline-offset: 2px; }

.format-shape {
  display: block;
  border: 1.5px solid var(--ink-soft);
  border-radius: 3px;
  margin: 0 auto 0.6rem;
  background: var(--paper-2);
}
.shape-a6 { width: 30px; height: 42px; }
.shape-square { width: 38px; height: 38px; }
.shape-a5 { width: 36px; height: 50px; margin-top: -8px; }
.shape-pano { width: 52px; height: 25px; margin-top: 9px; margin-bottom: 1.15rem; }
.choice input:checked + .choice-box .format-shape { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.15); }

/* Pastilles livraison */
.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.pill { margin: 0 !important; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.pill:hover span { border-color: var(--accent); }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.checkbox { display: flex !important; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem !important; color: var(--ink-soft); }
.checkbox input { margin-top: 0.3rem; accent-color: var(--accent); }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0.8rem 0 0; }

/* ---------- Modal ---------- */
.modal {
  border: 0;
  border-radius: 20px;
  padding: 2.2rem;
  width: min(560px, 92vw);
  max-height: 88vh;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(46, 42, 39, 0.45); backdrop-filter: blur(3px); }
.modal h3 { font-size: 2rem; }
.recap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.2rem;
  font-size: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.recap dt { color: var(--ink-soft); }
.recap dd { margin: 0; word-break: break-word; }
.modal-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: #1d1d1b; color: #e8e8e8; padding: 4rem 0 2rem; font-size: 0.92rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .logo { color: var(--white); margin-bottom: 0.6rem; }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer a { color: var(--honey); }
.footer-title { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; color: var(--white); margin-bottom: 0.8rem !important; }
.copyright { text-align: center; margin-top: 3rem !important; font-size: 0.8rem; opacity: 0.6; }

/* =========================================================
   EFFETS PHOTOS
   ========================================================= */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-curtain: cubic-bezier(.77, 0, .18, 1); }

/* Apparition simple (textes, blocs) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease var(--d, 0ms), transform 0.9s var(--ease-out) var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Cadre photo : sert de « fenêtre » aux effets */
.media {
  --media-r: var(--radius);
  position: relative;
  overflow: hidden;
  border-radius: var(--media-r);
  isolation: isolate;
}
.media > .placeholder,
.media > img {
  transition:
    transform 1.6s var(--ease-out) var(--d, 0ms),
    scale 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
}

/* Dévoilement « rideau » + léger dézoom à l'arrivée dans l'écran */
.unveil .media {
  clip-path: inset(100% 0 0 0 round var(--media-r));
  transition: clip-path 1.2s var(--ease-curtain) var(--d, 0ms);
}
.unveil .media > * { transform: scale(1.25); }
.unveil.is-visible .media { clip-path: inset(0 0 0 0 round var(--media-r)); }
.unveil.is-visible .media > * { transform: none; }
.unveil figcaption {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease calc(var(--d, 0ms) + 500ms), transform 0.8s var(--ease-out) calc(var(--d, 0ms) + 500ms), color 0.3s;
}
.unveil.is-visible figcaption { opacity: 1; transform: none; }
.instant .media, .instant .media > *, .instant figcaption { transition: none !important; }

/* Photos cliquables : zoom doux + voile + icône */
.zoomable { cursor: zoom-in; }
.zoomable::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(46, 42, 39, 0.45), rgba(46, 42, 39, 0) 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.zoomable::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%; top: 50%;
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background:
    no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2a27' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"),
    rgba(255, 253, 249, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
  pointer-events: none;
}
.zoomable:hover::after,
.zoomable:focus-visible::after { opacity: 1; }
.zoomable:hover::before,
.zoomable:focus-visible::before { opacity: 1; transform: none; }
.zoomable:hover > *,
.zoomable:focus-visible > * { scale: 1.07; }
.zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.is-ghost { visibility: hidden; }

/* Écrans tactiles : pas de survol, une petite pastille indique qu'on peut agrandir */
@media (hover: none) {
  .zoomable::before {
    left: auto; top: auto; right: 10px; bottom: 10px;
    width: 34px; height: 34px; margin: 0;
    background-size: 15px, auto;
    opacity: 0.9;
    transform: none;
  }
}

/* ---------- Visionneuse plein écran ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; pointer-events: none; touch-action: none; }
.lightbox.is-open { pointer-events: auto; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.55s ease;
}
.lightbox.is-open .lb-backdrop { opacity: 1; }
.lb-stage {
  position: fixed;
  z-index: 1;
  transform-origin: 0 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.lb-stage > * {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: 0 !important;
  object-fit: cover;
}
.lb-ui { opacity: 0; transition: opacity 0.4s ease; }
.lightbox.is-open .lb-ui { opacity: 1; transition-delay: 0.2s; }
.lb-btn {
  position: absolute;
  z-index: 2;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, scale 0.25s, opacity 0.4s ease;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); scale: 1.08; }
.lb-btn:focus-visible { outline: 2px solid #f0c9ba; outline-offset: 3px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 3vw; top: 50%; translate: 0 -50%; }
.lb-next { right: 3vw; top: 50%; translate: 0 -50%; }
.lb-caption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  bottom: 5vh;
  margin: 0;
  padding: 0 1.5rem;
  text-align: center;
  color: #f5ede4;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
}
.lb-counter {
  position: absolute;
  z-index: 2;
  top: 34px; left: 0; right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
}
.lb-hint { display: none; }
.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next { display: none; }

@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: 3vh; translate: none; width: 46px; height: 46px; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
  .lb-close { top: 14px; right: 14px; width: 46px; height: 46px; }
  .lb-counter { top: 30px; }
  .lb-caption { bottom: calc(3vh + 62px); font-size: 1.25rem; }
  .lb-hint {
    display: block;
    position: absolute;
    z-index: 2;
    left: 0; right: 0;
    bottom: calc(3vh + 14px);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
}

/* ---------- Entrée en scène du haut de page ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } }
@keyframes dealIn {
  from { opacity: 0; transform: translateY(90px) rotate(calc(var(--rot) * 3.5)) scale(0.9); }
  to   { opacity: 1; transform: rotate(var(--rot)); }
}
@keyframes stampIn {
  from { opacity: 0; transform: scale(1.9) rotate(-25deg); }
  to   { opacity: 1; transform: rotate(12deg); }
}
.hero-text > * { animation: fadeUp 1s var(--ease-out) both; }
.hero-text > :nth-child(1) { animation-delay: 0.1s; }
.hero-text > :nth-child(2) { animation-delay: 0.22s; }
.hero-text > :nth-child(3) { animation-delay: 0.34s; }
.hero-text > :nth-child(4) { animation-delay: 0.46s; }
.hero-card { transition: translate 0.9s var(--ease-out); }
.hero-card-1 { --rot: -4deg; animation: dealIn 1.4s var(--ease-out) 0.35s both; }
.hero-card-2 { --rot: 5deg; animation: dealIn 1.4s var(--ease-out) 0.6s both; }
.stamp { transition: translate 0.9s var(--ease-out); animation: stampIn 0.7s cubic-bezier(.3, 1.5, .5, 1) 1.4s both; }
.handwritten { animation-name: fadeUpTilt !important; }
@keyframes fadeUpTilt {
  from { opacity: 0; transform: translateY(26px) rotate(-2deg); }
  to   { opacity: 1; transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about-inner, .order-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { min-height: 420px; max-width: 520px; margin-inline: auto; width: 100%; }
  .about-photo { max-width: 420px; }
  .order-intro { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .steps li::after { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 0 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}

.lightbox { user-select: none; -webkit-user-select: none; }
.lb-stage img { -webkit-user-drag: none; pointer-events: none; }

/* Les vraies photos de la galerie et du haut de page gardent leurs proportions
   d'origine (pas de recadrage des œuvres). Le format « ratio-… » ne sert
   qu'aux emplacements vides. */
.gallery img.photo { aspect-ratio: auto; height: auto; }
img.photo.hero-card { height: auto; }

/* =========================================================
   CARTES QUI BOUGENT
   Les photos de la galerie flottent doucement, chacune à son
   rythme ; au survol (ordinateur), la carte s'incline vers la souris.
   ========================================================= */
@keyframes flotte {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 0 var(--flotte-y, -8px); rotate: var(--flotte-r, 0.8deg); }
}
.gallery-item {
  animation: flotte var(--flotte-duree, 6s) ease-in-out var(--flotte-delai, 0s) infinite;
}
.gallery-item:nth-child(2n)   { --flotte-r: -0.9deg; --flotte-duree: 7s;   --flotte-delai: -2s; }
.gallery-item:nth-child(3n)   { --flotte-y: -11px;   --flotte-duree: 8s;   --flotte-delai: -4s; }
.gallery-item:nth-child(4n+1) { --flotte-r: 1.1deg;  --flotte-duree: 6.5s; --flotte-delai: -1s; }
.gallery-item:hover { animation-play-state: paused; }

/* Inclinaison 3D au survol (les angles sont calculés dans js/main.js) */
.gallery .media {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s var(--ease-out), clip-path 1.2s var(--ease-curtain) var(--d, 0ms), box-shadow 0.6s;
}
.gallery .media.is-tilting { transition: transform 0.12s linear, box-shadow 0.6s; box-shadow: 0 22px 40px rgba(0, 0, 0, 0.18); }

/* Les deux cartes du haut de page se balancent légèrement */
@keyframes balance {
  0%, 100% { rotate: 0deg; }
  50%      { rotate: var(--balance, 1.5deg); }
}
.hero-visual .hero-card-1 { animation: dealIn 1.4s var(--ease-out) 0.35s both, balance 7s ease-in-out 1.8s infinite; }
.hero-visual .hero-card-2 { --balance: -1.8deg; animation: dealIn 1.4s var(--ease-out) 0.6s both, balance 8s ease-in-out 2s infinite; }

/* =========================================================
   AMBIANCE CHALEUREUSE : couleurs par section
   ========================================================= */
.eyebrow { color: var(--ember); }
.stamp { color: var(--ember); border-color: var(--ember); background: var(--white); }

/* Haut de page : lumière de lampe, miel doux */
.hero { background: #f6dfb6; }
.hero h1 em { color: var(--ember); }
.hero .lead { color: var(--ink); }
.hero .handwritten { color: var(--accent-dark); }
.hero .btn-ghost { background: var(--white); border-color: var(--white); color: var(--accent-dark); }
.hero .btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Présentation : crème clair, mots-clés aux teintes chaudes */
.about { background: var(--white); }
.about-points li:nth-child(1) { color: var(--accent); }
.about-points li:nth-child(2) { color: var(--ember); }
.about-points li:nth-child(3) { color: #c9961f; }
.about-points li:nth-child(4) { color: var(--wood); }

/* Galerie : crème, pour laisser les aquarelles briller */
.gallery-section { background: var(--paper); }
.filter { border-color: var(--line); background: var(--white); }
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Modèles : caramel doux, cartes blanches */
.cards-section { background: #ebc893; }
.cards-section .section-head h2 { color: var(--ink); }
.cards-section .section-intro { color: var(--ink-soft); }
.tag { color: #fff; background: var(--accent); }
.product-card .tag { background: var(--terracotta); }
.product-card:nth-child(2) .tag { background: var(--ember); }
.cards-grid-1 .product-card .tag { background: var(--accent-dark); }
.price { color: var(--accent-dark); }

/* Étapes : bois sombre, comme un soir au coin du feu */
.steps-section { background: var(--wood); color: #fbe9cf; }
.steps-section .section-head h2, .steps h3 { color: #fff6e8; }
.steps-section .eyebrow { color: var(--honey); }
.steps p { color: rgba(251, 233, 207, 0.9); }
.step-num { background: var(--white); border: 0; }
.steps li:nth-child(1) .step-num { color: var(--accent); }
.steps li:nth-child(2) .step-num { color: var(--ember); }
.steps li:nth-child(3) .step-num { color: #c9961f; }
.steps li:nth-child(4) .step-num { color: var(--terracotta); }
.steps li:not(:last-child)::after { border-color: rgba(242, 184, 75, 0.45); }

/* Commande */
.order-section { background: var(--paper); }
.wizard { background: var(--white); border-color: var(--line); }
.estimate { background: var(--honey); border: 0; }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); }

/* Pied de page */
.site-footer { background: #2b1a11; color: #e9d6bd; }
.site-footer a { color: var(--honey); }

/* ---------- Catégories (cartes / marque-pages) ---------- */
.category-title {
  text-align: center;
  font-size: 1.9rem;
  margin: 2.6rem 0 0.2rem;
}
.category-title:first-of-type { margin-top: 0; }
.category-intro { text-align: center; color: var(--ink-soft); margin: 0 0 1.6rem; font-size: 0.95rem; }
.cards-grid-1 { max-width: 400px; }
.dot-1 { background: var(--terracotta); }
.dot-2 { background: var(--ember); }
.dot-3 { background: var(--accent); border-radius: 8px; width: 22px; height: 56px; }
.wizard .field-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.choice-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
.shape-mp { width: 14px; height: 52px; }
.shape-mp-l { width: 20px; height: 54px; }
.model-choices + .field-title { margin-top: 1.4rem; }

/* Petit drapeau suisse à côté de « fait main en Suisse » */
.flag-ch {
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.25em;
  vertical-align: -0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  transform: rotate(4deg);
}

/* =========================================================
   COMMANDE EN 4 ÉTAPES
   ========================================================= */
.wizard {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  border: 2px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

/* Progression */
.wizard-progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.wizard-progress li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; color: var(--ink-soft); }
.wizard-progress span {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-weight: 500;
  background: #fff;
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.4s cubic-bezier(.3, 1.6, .5, 1);
}
.wizard-progress em { font-style: normal; transition: color 0.4s; }
.wizard-progress li.is-current span { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.12); }
.wizard-progress li.is-current em { color: var(--ink); font-weight: 500; }
.wizard-progress li.is-done span { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.wizard-bar { height: 4px; background: var(--line); border-radius: 4px; margin: 1rem 0 2rem; overflow: hidden; }
.wizard-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 0.6s cubic-bezier(.2, .8, .2, 1); }

/* Étapes */
.wizard-stage { position: relative; overflow: hidden; padding: 4px; margin: -4px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 1.4rem;
  padding: 0;
}
.wizard label { display: block; font-size: 0.92rem; margin-bottom: 1.1rem; }
.wizard small { color: var(--ink-soft); font-size: 0.8em; }
.wizard .field-title { margin: 1.2rem 0 0.6rem; }

/* Choix du modèle : grosses tuiles */
.model-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; border-radius: 16px; }
.model-choice { margin: 0 !important; cursor: pointer; }
.model-choice input { position: absolute; opacity: 0; pointer-events: none; }
.model-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.6rem 1rem;
  border: 2px solid var(--line);
  border-radius: 16px;
  text-align: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.model-box strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.model-box small { font-size: 1rem; color: var(--ink-soft); }
.model-dot { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 0.4rem; transition: transform 0.4s cubic-bezier(.3, 1.6, .5, 1); }
.dot-1 { background: var(--terracotta); }
.dot-2 { background: var(--ember); }
.model-choice:hover .model-box { border-color: var(--accent); transform: translateY(-3px); }
.model-choice input:checked + .model-box { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15); }
.model-choice input:checked + .model-box .model-dot { transform: scale(1.15); }
.model-choice input:focus-visible + .model-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.model-choices.is-invalid .model-box { border-color: #e03131; }
.step-error { display: none; color: #e03131; font-size: 0.88rem; margin: 0.6rem 0 0; }
.step-error.is-visible { display: block; }

/* « Plus d'options » repliable */
.more { margin: 0.4rem 0 1rem; border-top: 2px dashed var(--line); padding-top: 0.9rem; }
.more summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 500;
  font-size: 0.95rem;
  list-style: none;
  margin-bottom: 0.9rem;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; font-weight: 600; }
.more[open] summary::before { content: "− "; }

/* Quantité − 1 + */
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 1.2rem; }
.stepper input {
  width: 64px; margin: 0; border: 0; border-radius: 0; text-align: center;
  font-size: 1.1rem; font-weight: 500; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.stepper-btn {
  width: 46px; height: 46px; border: 0; background: var(--paper-2);
  font-size: 1.4rem; cursor: pointer; color: var(--ink); transition: background 0.2s, color 0.2s;
}
.stepper-btn:hover { background: var(--accent); color: #fff; }

/* Navigation */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--line);
}
.wizard-trust { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 0.9rem; font-size: 0.78rem; line-height: 1.4; color: var(--ink-soft); text-align: center; }
.wizard-trust span { white-space: nowrap; }
.wizard-privacy { font-size: 0.82rem; color: var(--ink-soft); margin: 0.4rem 0 0; }
.price { font-size: 1.2rem; }
.wizard .btn[hidden] { display: none; }
.wizard-nav .btn { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 640px) {
  .wizard-progress em { display: none; }
  .wizard-progress li.is-current em { display: inline; }
  .wizard-nav { flex-wrap: wrap; }
  .wizard-trust { order: -1; width: 100%; }
  .wizard-nav .btn { flex: 1; text-align: center; }
}
@media (max-width: 640px) {
  .wizard-nav .btn { white-space: nowrap; padding-inline: 1em; font-size: 0.9rem; }
}

/* =========================================================
   PERFORMANCE
   ========================================================= */
/* Les sections sous l'écran ne sont dessinées qu'à l'approche */
.gallery-section, .cards-section, .steps-section, .order-section, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
/* Les images gardent leur place avant d'être chargées (pas de saut de page) */
img.photo { height: auto; }
.gallery img.photo, .product-card img.photo, .about-photo img.photo { width: 100%; }
/* Les animations continues ne tournent que pour les cartes visibles */
.gallery-item { will-change: transform; }
@media (max-width: 760px) {
  /* Le flou du bandeau coûte cher sur téléphone : fond presque opaque à la place */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, 0.97); }
  .lb-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* =========================================================
   PRIX, NIVEAUX DE PERSONNALISATION, PAIEMENT TWINT
   ========================================================= */
.wizard-total { margin: 0; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.wizard-total strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.tile-price { display: block; margin-top: 0.3rem; font-size: 0.85rem; font-weight: 500; color: var(--accent-dark); font-style: normal; }

/* Niveaux de personnalisation */
.level-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.8rem; margin-bottom: 1.4rem; }
.level-choice { margin: 0 !important; cursor: pointer; }
.level-choice input { position: absolute; opacity: 0; pointer-events: none; }
.level-box {
  display: flex; flex-direction: column; gap: 0.35rem; height: 100%;
  padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: 14px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.level-box strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.level-box small { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.45; }
.level-box em { margin-top: auto; font-style: normal; font-weight: 500; font-size: 0.9rem; color: var(--accent-dark); }
.level-choice:hover .level-box { border-color: var(--accent); transform: translateY(-2px); }
.level-choice input:checked + .level-box { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15); }
.level-choice input:focus-visible + .level-box { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Grille des prix (section modèles) */
.price-grid { max-width: 820px; margin: 2.6rem auto 0; background: var(--white); border-radius: 20px; padding: 1.6rem clamp(1.2rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.price-grid h4 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 0.6rem; }
.price-grid ul + h4 { margin-top: 1.4rem; }
.price-grid ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.4rem 1.5rem; }
.price-grid li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.price-grid li span:last-child { font-weight: 500; white-space: nowrap; }
.price-grid li small { display: block; color: var(--ink-soft); font-size: 0.8rem; }
.price-grid .price-note { margin: 1.2rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }

/* Paiement */
.pay-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.6rem; align-items: start; }
.pay-recap { background: var(--paper); border-radius: 14px; padding: 1.1rem 1.3rem; }
.pay-recap dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0; font-size: 0.88rem; }
.pay-recap dt { color: var(--ink-soft); }
.pay-recap dd { margin: 0; }
.pay-total { margin: 1rem 0 0; padding-top: 0.8rem; border-top: 2px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.pay-total strong { font-family: var(--serif); font-size: 1.8rem; }
.pay-twint { border: 2px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; }
.twint-badge { display: inline-block; margin: 0 0 0.8rem; padding: 0.25em 0.8em; border-radius: 6px; background: #000; color: #fff; font-weight: 600; letter-spacing: 0.12em; font-size: 0.8rem; }
.twint-qr { width: 160px !important; height: 160px; margin: 0 auto 1rem; border-radius: 12px; }
.pay-twint .placeholder { width: 160px; margin: 0 auto 1rem; }
.pay-twint .placeholder::after { font-size: 0.72rem; padding-top: 2.6rem; }
.pay-steps { margin: 0; padding-left: 1.2rem; font-size: 0.9rem; line-height: 1.5; }
.pay-steps li { margin-bottom: 0.5rem; }
.copy-btn {
  font: inherit; font-size: 0.72rem; margin-left: 0.2rem; padding: 0.15em 0.6em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--accent-dark); cursor: pointer; vertical-align: middle;
}
.copy-btn:hover { border-color: var(--accent); }
.copy-btn.is-copied { background: var(--accent); border-color: var(--accent); color: #fff; }
.pay-promise { margin: 1.3rem 0 0.4rem; font-size: 0.88rem; color: var(--ink-soft); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.85rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--accent-dark); }
@media (max-width: 700px) { .pay-grid { grid-template-columns: 1fr; } }

.hint.is-error { color: #b3261e; }

/* ---------- QR-facture (TWINT / app bancaire) ---------- */
.qr-facture { text-align: center; margin: 0 auto 1rem; font-size: 0.85rem; color: var(--ink-soft); }
.qr-facture svg { display: block; width: 220px; height: 220px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.twint-badge span { font-weight: 400; letter-spacing: 0; opacity: 0.85; margin-left: 0.4em; }
.pay-unavailable { margin: 0.4rem 0 0; font-size: 0.92rem; color: var(--ink); background: var(--paper); border-radius: 10px; padding: 0.9rem 1rem; }

/* Explication du total */
.wizard-total small#nav-detail { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.15rem; }
.pay-detail { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--ink-soft); text-align: right; }
