/* ===========================================================
   CALYPSO — Manufacture d'urnes funéraires (B2B)
   Direction artistique : sobre, mémoriel, haut de gamme
   Inspiration : tons taupe minéral, accents champagne, sérif gravé
   =========================================================== */

:root {
  --ink:        #0c0b0a;
  --ink-soft:   #1a1815;
  --taupe:      #7c6e62;
  --taupe-deep: #6a5d52;
  --taupe-dark: #4f463d;
  --cream:      #f5f1ea;
  --cream-2:    #ece6dc;
  --paper:      #fbf9f5;
  --white:      #ffffff;
  --gold:       #c2a26a;
  --gold-soft:  #d8c19a;
  --line-gold:  rgba(194,162,106,0.55);
  --text:       #2b2722;
  --text-soft:  #6f675d;
  --text-faint: #a59c8f;
  --on-taupe:   #f3efe8;
  --on-taupe-soft: rgba(243,239,232,0.62);

  --serif: "Cormorant Garamond", Georgia, serif;
  --logo:  "Cinzel", "Cormorant Garamond", serif;
  --sans:  "Jost", -apple-system, system-ui, sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 300;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 400; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
}
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4vw, 46px); letter-spacing: 0.04em; line-height: 1.1;
  margin: 0; color: var(--text);
}
.flank { display: flex; align-items: center; justify-content: center; gap: 22px; }
.flank::before, .flank::after { content: ""; height: 1px; width: clamp(28px, 6vw, 80px); background: var(--line-gold); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ===========================================================  HEADER  === */
.topbar { position: sticky; top: 0; z-index: 60; background: var(--ink); color: var(--on-taupe); border-bottom: 1px solid rgba(255,255,255,0.06); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 40px; height: 84px; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 30px; }
.nav-right { justify-content: flex-end; }
.nav-link { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-taupe-soft); font-weight: 400; position: relative; padding: 6px 0; transition: color 0.3s var(--ease); background: none; border: none; white-space: nowrap; }
.nav-link:hover { color: var(--white); }
.nav-link.is-strong { color: var(--gold); }

.has-dropdown { position: relative; }
.dropdown { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 220px; background: var(--ink-soft); border: 1px solid rgba(194,162,106,0.22); padding: 10px; opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.has-dropdown:hover .dropdown, .has-dropdown.force-open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--ink-soft); border-left: 1px solid rgba(194,162,106,0.22); border-top: 1px solid rgba(194,162,106,0.22); }
.dropdown a, .dropdown button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-taupe-soft); transition: 0.25s var(--ease); background: none; border: none; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: rgba(194,162,106,0.1); color: var(--white); }
.dropdown a span { color: var(--gold); font-size: 11px; }

.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand .mark { font-family: var(--logo); font-weight: 600; font-size: 30px; letter-spacing: 0.22em; color: var(--white); padding-left: 0.22em; }
.brand .sub { font-family: var(--sans); font-size: 8.5px; font-weight: 400; letter-spacing: 0.42em; color: var(--on-taupe-soft); margin-top: 7px; text-transform: uppercase; }

/* ===========================================================  HERO  ===== */
.hero { background: var(--ink); display: block; overflow: hidden; }
.hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 86vh; object-fit: cover; }

.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; padding: 16px 34px; border: 1px solid transparent; transition: 0.32s var(--ease); }
.btn-solid { background: var(--white); color: var(--ink); }
.btn-solid:hover { background: var(--gold); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--cream-2); color: var(--ink); }
.btn-dark:hover { background: var(--gold); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); color: var(--white); }
.btn-outline { background: none; border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--paper); }
.btn[disabled] { opacity: 0.5; cursor: default; pointer-events: none; }

/* ===========================================================  COLLECTIONS  */
.collection { padding: 96px 0 30px; }
.collection.alt { background: var(--cream); }
.collection:last-of-type { padding-bottom: 96px; }
.coll-head { text-align: center; margin-bottom: 46px; }
.coll-head .eyebrow { margin-bottom: 16px; }
.coll-head p { color: var(--text-soft); max-width: 560px; margin: 16px auto 0; font-size: 15px; }

.rail-wrap { position: relative; }
.rail { display: flex; gap: 28px; overflow-x: auto; scroll-behavior: smooth; padding: 8px 40px 30px; scroll-snap-type: x mandatory; scrollbar-width: none; justify-content: center; }
.rail::-webkit-scrollbar { display: none; }
.rail-inner-max { max-width: var(--maxw); margin: 0 auto; }
.rail-arrow { display: none; }

.card { flex: 0 0 300px; scroll-snap-align: start; background: var(--white); border: 1px solid rgba(43,39,34,0.07); display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.collection.alt .card { background: var(--paper); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(43,39,34,0.12); }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-family: var(--logo); font-weight: 500; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #000;
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: 0.02em; margin: 0; color: var(--text); }
.card-desc { font-size: 13.5px; color: var(--text-soft); margin: 8px 0 16px; line-height: 1.55; }

.specs { display: flex; flex-direction: column; gap: 0; margin-top: auto; border-top: 1px solid rgba(43,39,34,0.08); }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(43,39,34,0.06); }
.spec-row .k { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.spec-row .v { font-size: 13px; color: var(--text); font-weight: 400; }

.detail-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; background: none; border: none; padding: 14px 0 0; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); border-top: 1px solid rgba(43,39,34,0.1); width: 100%; transition: color 0.25s var(--ease); }
.detail-link svg { transition: transform 0.3s var(--ease); color: var(--gold); }
.detail-link:hover { color: var(--gold); }
.detail-link:hover svg { transform: translateX(4px); }

.price-note { margin-top: 18px; display: flex; align-items: center; gap: 11px; background: var(--cream-2); padding: 13px 15px; font-size: 12px; color: var(--text-soft); line-height: 1.4; }
.collection.alt .price-note { background: var(--cream); }
.price-note svg { flex-shrink: 0; color: var(--gold); }
.price-note a { color: var(--gold); border-bottom: 1px solid var(--line-gold); }

.pro-only { display: none; }
body.is-pro .pro-only { display: block; }
body.is-pro .visitor-only { display: none; }
body.is-pro .pro-only.flexed { display: flex; }

.pro-price { margin-top: 18px; }
.pro-price .row { display: flex; align-items: baseline; justify-content: space-between; }
.pro-price .amount { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--text); }
.pro-price .amount small { font-size: 14px; color: var(--text-soft); font-family: var(--sans); letter-spacing: 0.04em; }
.pro-price .ht { font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.degress-toggle { margin-top: 8px; font-size: 11.5px; letter-spacing: 0.08em; color: var(--gold); background: none; border: none; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line-gold); text-transform: uppercase; }
.degress-grid { display: none; margin-top: 12px; border: 1px solid rgba(194,162,106,0.3); }
.degress-grid.open { display: block; }
.degress-grid .dg-row { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 12.5px; }
.degress-grid .dg-row:nth-child(odd) { background: rgba(194,162,106,0.07); }
.degress-grid .dg-row .qty { color: var(--text-soft); letter-spacing: 0.04em; }
.degress-grid .dg-row .pu { font-weight: 400; color: var(--text); }
.degress-grid .dg-row.best .pu { color: var(--gold); }

.chooser { margin-top: 16px; }
.chooser .clabel { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); cursor: pointer; position: relative; transition: 0.2s var(--ease); }
.swatch.sel { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--gold); }
.swatch:hover { transform: scale(1.1); }

.card-actions { margin-top: 18px; display: flex; gap: 10px; }
.card-actions .btn { flex: 1; padding: 13px 16px; justify-content: center; font-size: 11px; }
.btn-icon { width: 46px; flex: 0 0 46px !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; border: 1px solid var(--text); color: var(--text); background: none; }
.btn-icon:hover { background: var(--text); color: var(--paper); }

/* ===========================================================  SUR-MESURE  */
.surmesure { position: relative; overflow: hidden; background: var(--cream); color: var(--text); padding: 124px 0; }
.sm-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.sm-media { aspect-ratio: 1 / 1; position: relative; border: 1px solid rgba(43,39,34,0.12); box-shadow: 0 30px 70px rgba(43,39,34,0.14); overflow: hidden; }
.sm-media img { width: 100%; height: 100%; object-fit: cover; }
.sm-text .eyebrow { color: var(--gold); letter-spacing: 0.34em; }
.sm-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.1; margin: 18px 0 0; color: var(--text); }
.sm-text h2 em { font-style: italic; color: var(--gold); }
.sm-text p { color: var(--text-soft); font-size: 15.5px; line-height: 1.78; margin: 26px 0; max-width: 480px; }
.sm-steps { display: flex; flex-direction: column; gap: 18px; margin: 30px 0 38px; }
.sm-step { display: flex; gap: 18px; align-items: flex-start; }
.sm-step .n { font-family: var(--serif); font-size: 24px; color: var(--gold); line-height: 1; flex-shrink: 0; width: 36px; }
.sm-step .t { font-size: 14px; color: var(--text-soft); }
.sm-step .t b { font-weight: 400; color: var(--text); display: block; letter-spacing: 0.04em; margin-bottom: 2px; }
.surmesure .btn-sm { background: var(--cream-2); color: var(--ink); border: none; }
.surmesure .btn-sm:hover { background: var(--gold); color: var(--ink); }

/* ===========================================================  CONTACT  == */
.contact { background: var(--paper); padding: 110px 0; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
.contact-info .section-title { margin-top: 16px; }
.contact-info .lead { color: var(--text-soft); margin: 22px 0 32px; font-size: 15.5px; line-height: 1.7; max-width: 380px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(43,39,34,0.1); }
.contact-line svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-line .cl-k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.contact-line .cl-v { font-size: 16px; color: var(--text); font-weight: 400; }

.contact-form { background: var(--white); padding: 44px; border: 1px solid rgba(43,39,34,0.08); box-shadow: 0 30px 70px rgba(43,39,34,0.07); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 9px; }
.field input, .field textarea, .field select { width: 100%; border: none; border-bottom: 1px solid rgba(43,39,34,0.2); background: transparent; padding: 11px 2px; font-family: var(--sans); font-size: 15px; color: var(--text); font-weight: 300; transition: border-color 0.3s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-error { color: #b3261e; font-size: 12px; margin-top: -14px; margin-bottom: 16px; min-height: 1em; }
.field-hint { font-size: 11.5px; color: var(--text-faint); margin-top: -14px; margin-bottom: 16px; }

.password-field { position: relative; }
.password-field input { padding-right: 30px; }
/* masque le bouton "afficher le mot de passe" natif d'Edge/IE et Chrome,
   qui se superposait autrement à notre propre icône œil. */
.password-field input::-ms-reveal,
.password-field input::-ms-clear { display: none; }
.password-field input::-webkit-textfield-decoration-container { display: none; }
.password-toggle {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 4px; color: var(--text-faint);
  display: flex; align-items: center; justify-content: center;
}
.password-toggle:hover { color: var(--text); }

/* ===========================================================  FOOTER  === */
.footer { background: var(--ink); color: var(--on-taupe-soft); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer .brand { align-items: flex-start; }
.footer .brand .mark { font-size: 26px; }
.footer .brand .sub { color: var(--on-taupe-soft); }
.footer-blurb { margin-top: 20px; font-size: 13.5px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 20px; font-weight: 400; }
.footer-col a, .footer-col p, .footer-col button { display: block; width: 100%; text-align: left; background: none; border: none; font-size: 13.5px; color: var(--on-taupe-soft); margin-bottom: 13px; transition: color 0.25s var(--ease); font-family: inherit; padding: 0; }
.footer-col a:hover, .footer-col button:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 12px; flex-wrap: wrap; gap: 16px; }
.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom .legal a:hover { color: var(--white); }

/* ===========================================================  PLACEHOLDER */
.ph { position: relative; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, rgba(124,110,98,0.10) 0 2px, transparent 2px 13px), linear-gradient(160deg, #e7e0d5, #d8cfc1); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ph .ph-label { font-family: "Courier New", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(43,39,34,0.5); border: 1px dashed rgba(43,39,34,0.32); padding: 7px 13px; background: rgba(255,255,255,0.35); text-align: center; max-width: 80%; }

/* ===========================================================  MODALS  === */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(12,11,10,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 32px; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--paper); max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; transform: translateY(20px); transition: transform 0.4s var(--ease); box-shadow: 0 50px 100px rgba(0,0,0,0.4); color: var(--text); }
.modal-overlay.open .modal { transform: translateY(0); }
/* padding-right laisse toujours une zone dédiée à la croix, quelle que soit
   la longueur de l'eyebrow/titre — évite tout chevauchement texte/croix. */
.modal-head { padding: 28px 68px 24px 40px; border-bottom: 1px solid rgba(43,39,34,0.1); position: relative; }
.modal-head .eyebrow { margin-bottom: 10px; }
.modal-head h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0; }
.modal-head .close {
  position: absolute; top: 24px; right: 24px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-soft); font-size: 24px; line-height: 1;
}
.modal-head .close:hover { color: var(--text); }
.modal-body { padding: 32px 40px 40px; }
@media (max-width: 640px) {
  .modal-head { padding: 22px 56px 18px 24px; }
  .modal-head .eyebrow { letter-spacing: 0.2em; }
  .modal-head h3 { font-size: 24px; }
  .modal-head .close { top: 18px; right: 16px; }
  .modal-body { padding: 22px 24px 28px; }
}
.modal-foot { display: flex; gap: 14px; justify-content: flex-end; margin-top: 8px; }

.dropzone { border: 1.5px dashed rgba(43,39,34,0.28); padding: 30px; text-align: center; background: var(--white); transition: 0.3s var(--ease); cursor: pointer; }
.dropzone:hover { border-color: var(--gold); background: var(--cream); }
.dropzone .dz-icon { color: var(--gold); margin-bottom: 12px; }
.dropzone .dz-title { font-size: 14px; color: var(--text); letter-spacing: 0.04em; }
.dropzone .dz-sub { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.dz-files { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.dz-file { display: flex; align-items: center; gap: 10px; font-size: 13px; background: var(--cream); padding: 9px 13px; color: var(--text); }
.dz-file svg { color: var(--gold); }

.modal .sub-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(194,162,106,0.3); }
.modal .sub-label:first-child { margin-top: 0; }

.legal-text p { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; margin: 0 0 14px; }
.legal-text p b { color: var(--text); font-weight: 500; }
.legal-disclaimer { background: var(--cream-2); color: var(--text) !important; padding: 12px 16px; font-size: 12.5px !important; }

.social-float {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--gold-soft);
  border: 1px solid rgba(194,162,106,0.35);
  box-shadow: 0 10px 26px rgba(12,11,10,0.22);
  z-index: 50; transition: 0.3s var(--ease);
}
.social-float:hover { background: var(--gold); color: var(--ink); }
@media (max-width: 720px) {
  .social-float { width: 36px; height: 36px; right: 12px; }
  .social-float svg { width: 16px; height: 16px; }
}

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: var(--ink); color: var(--on-taupe);
  padding: 20px 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  transform: translateY(120%); transition: transform 0.45s var(--ease);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { flex: 1; min-width: 240px; font-size: 12.5px; line-height: 1.6; color: var(--on-taupe-soft); margin: 0; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner .btn { padding: 12px 22px; font-size: 11px; }
.cookie-banner .btn-outline { border-color: rgba(243,239,232,0.4); color: var(--on-taupe); }
.cookie-banner .btn-outline:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 640px) {
  .cookie-banner { padding: 18px 20px; flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: var(--white); padding: 16px 26px; z-index: 300; font-size: 13px; letter-spacing: 0.06em; display: flex; align-items: center; gap: 12px; transition: transform 0.45s var(--ease); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--gold); }
.toast.error { background: #4a1c18; }

.pro-ribbon { display: none; background: linear-gradient(90deg, var(--taupe-dark), var(--taupe-deep)); color: var(--on-taupe); text-align: center; padding: 11px 20px; font-size: 12.5px; letter-spacing: 0.1em; }
body.is-pro .pro-ribbon { display: block; }
.pro-ribbon b { color: var(--gold-soft); font-weight: 400; }
.pro-ribbon .logout { background: none; border: 1px solid rgba(243,239,232,0.35); color: var(--on-taupe); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; margin-left: 18px; border-radius: 999px; transition: 0.25s var(--ease); }
.pro-ribbon .logout:hover { background: rgba(255,255,255,0.12); border-color: var(--on-taupe); }

.palette { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.pal-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(43,39,34,0.16); box-shadow: 0 3px 10px rgba(43,39,34,0.09); }
.sel-name { font-size: 12px; color: var(--text); margin-top: 9px; letter-spacing: 0.06em; }

.qty-picker { display: inline-flex; align-items: center; border: 1px solid rgba(43,39,34,0.2); }
.qty-step { width: 38px; height: 40px; border: none; background: var(--cream); color: var(--text); font-size: 17px; line-height: 1; transition: 0.2s var(--ease); }
.qty-step:hover { background: var(--gold); color: var(--ink); }
.qty-input { width: 64px; height: 40px; border: none; border-left: 1px solid rgba(43,39,34,0.14); border-right: 1px solid rgba(43,39,34,0.14); text-align: center; font-family: var(--sans); font-size: 15px; color: var(--text); background: transparent; }
.qty-input:focus { outline: none; }
.qty-total { margin-top: 11px; font-size: 13px; color: var(--text-soft); letter-spacing: 0.04em; }
.qty-total b { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--text); }
.qty-total-pu { color: var(--gold); }
.qty-hint { font-size: 11px; color: var(--text-faint); margin-top: 6px; line-height: 1.4; }

.modal.modal-wide { max-width: 860px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.detail-media { aspect-ratio: 4 / 5; position: relative; border: 1px solid rgba(43,39,34,0.08); overflow: hidden; background: var(--cream); }
.detail-media img { width: 100%; height: 100%; object-fit: contain; }
.detail-info { display: flex; flex-direction: column; }
.detail-name { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 10px 0 0; color: var(--text); }
.detail-desc { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; margin: 12px 0 20px; }
.detail-info .specs { margin-top: 0; }
@media (max-width: 640px) { .detail-grid { grid-template-columns: 1fr; gap: 24px; } .detail-media { aspect-ratio: 16/10; } }

/* tarifs modal table */
.tariff-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.tariff-table th, .tariff-table td { text-align: left; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid rgba(43,39,34,0.08); }
.tariff-table th { color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10.5px; font-weight: 400; }
.tariff-table td.best { color: var(--gold); }

/* mon panier / mes commandes */
.cart-row { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(43,39,34,0.08); }
.cart-row img { width: 56px; height: 56px; object-fit: cover; border: 1px solid rgba(43,39,34,0.1); flex-shrink: 0; }
.cart-row .ci-name { font-family: var(--serif); font-size: 17px; color: var(--text); }
.cart-row .ci-meta { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.cart-row .ci-total { margin-left: auto; text-align: right; font-size: 14px; color: var(--text); white-space: nowrap; }
.ci-discount-badge { display: inline-block; background: rgba(63,107,70,0.12); color: #3f6b46; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; padding: 2px 6px; margin-bottom: 3px; }
.ci-base-price { color: var(--text-faint); margin-right: 4px; }
.cart-discount-note { background: rgba(63,107,70,0.1); color: #3f6b46; font-size: 12.5px; padding: 10px 14px; margin-bottom: 14px; }
.cart-discount-note.muted { background: var(--cream-2); color: var(--text-soft); }
.cart-row .ci-remove { background: none; border: none; color: var(--text-faint); font-size: 20px; line-height: 1; margin-left: 12px; }
.cart-row .ci-remove:hover { color: #b3261e; }
.cart-empty { color: var(--text-soft); font-size: 14px; padding: 20px 0; text-align: center; }
.cart-total-row { display: flex; justify-content: space-between; padding-top: 16px; margin-top: 6px; border-top: 1px solid rgba(43,39,34,0.16); font-size: 15px; }
.cart-total-row b { font-family: var(--serif); font-size: 22px; }

.order-card { border: 1px solid rgba(43,39,34,0.1); padding: 18px 20px; margin-bottom: 14px; }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.order-card .oc-num { font-family: var(--serif); font-size: 18px; color: var(--text); }
.order-card .oc-date { font-size: 12px; color: var(--text-faint); }
.order-card .oc-items { font-size: 13px; color: var(--text-soft); line-height: 1.8; }
.order-card .oc-total { margin-top: 10px; font-size: 14px; text-align: right; }
.oc-invoice { display: block; margin-top: 12px; text-align: right; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.oc-invoice span { border-bottom: 1px solid var(--line-gold); padding-bottom: 2px; }
.oc-status { display: inline-block; margin-top: 6px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); background: rgba(194,162,106,0.12); padding: 4px 10px; }
.oc-status.paid { color: #3f6b46; background: rgba(63,107,70,0.12); }
.oc-status.cancelled { color: #b3261e; background: rgba(179,38,30,0.1); }

.order-pending-note { display: flex; gap: 14px; align-items: flex-start; background: var(--cream-2); padding: 18px 20px; font-size: 13.5px; color: var(--text); line-height: 1.6; }
.order-pending-note svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.order-pending-note p { margin: 0 0 8px; }
.order-pending-note p:last-child { margin-bottom: 0; color: var(--text-soft); }

/* ===========================================================  RESPONSIVE */
@media (max-width: 1080px) {
  .topbar-inner { grid-template-columns: auto 1fr auto; padding: 0 26px; }
  .nav-left { display: none; }
}
@media (max-width: 1000px) {
  .sm-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .topbar-inner { height: 68px; padding: 0 20px; }
  .brand .mark { font-size: 22px; }
  .brand .sub { font-size: 7px; letter-spacing: 0.3em; }
  .nav-link { font-size: 10.5px; letter-spacing: 0.06em; }
  .wrap { padding: 0 22px; }
  .rail { padding: 8px 22px 30px; flex-direction: column; align-items: center; }
  .card { flex-basis: 100%; width: 100%; max-width: 340px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; }
}
