/* ============================================================
   PuzzleMoi — Feuille de style principale
   Design boutique puzzles photo — optimisé mobile/desktop
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "OpenSans";
  src: url("../fonts/OpenSans.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "OpenSans-SemiBold";
  src: url("../fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "MarketPro";
  src: url("../fonts/MarketPro-Regular.otf") format("opentype");
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --blue: #1781a5;
  --blue-dark: #0d6a8a;
  --blue-light: #eaf6fe;
  --blue-lighter: #d2eaff;
  --blue-pale: #bee1ff;
  --text: #5f5f5f;
  --text-dark: #2d2d2d;
  --border: #eee;
  --border-dark: #dedede;
  --promo-red: #5A1D22;
  --green: #2ecc71;
  --orange: #f59f4a;
  --bg: #fff;
  --bg-light: #f7f7f7;
  --font-body: "OpenSans", "Open Sans", Arial, sans-serif;
  --font-head: "MarketPro", "OpenSans-SemiBold", Arial, sans-serif;
  --radius: 8px;
  --max-width: 1312px;
  --header-height: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-dark); font-weight: normal; line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Lazy-loading images */
img[data-src] { opacity: 0; transition: opacity .3s; }
img[data-src].loaded, img[data-src].error { opacity: 1; }

/* ---------- Bandeau promo haut de page (42px desktop / 2 lignes mobile) ---------- */
.promo-banner {
  background: var(--promo-red);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 16px;
  line-height: 24px;
}
.promo-banner a { color: #fff; text-decoration: underline; }
.promo-banner strong { color: #fff; }
.promo-banner .mobile-only { display: none; }
@media (max-width: 949px) {
  .promo-banner { font-size: 14px; padding: 12px 8px; }
  .promo-banner .desktop-only { display: none; }
  .promo-banner .mobile-only { display: inline; }
}

/* ---------- Header : mêmes cotes que l'original (container 1280, logo 265 px, recherche 423 × 46) ---------- */
.header-main { background: #fff; position: relative; z-index: 100; }
.header-main-inner {
  position: relative; max-width: 1280px; margin: 0 auto; height: 109px;
}
.header-top-links { position: absolute; top: 17px; right: 71px; font-size: 12.8px; line-height: 18px; color: var(--text); }
.header-top-links a { color: var(--text); text-decoration: underline; }
.header-top-links a:hover { color: var(--blue); }
.header-top-links .sep { margin: 0 8px; }
.logo-link { position: absolute; left: 0; top: 43px; display: block; width: 265px; height: 49px; }
.logo-link img { display: block; width: 265px; height: 49px; object-fit: contain; object-position: left center; }
.header-search { position: absolute; left: 427px; top: 45px; width: min(423px, calc(100% - 560px)); height: 46px; }
.search-form { display: flex; width: 100%; height: 46px; }
.search-form input {
  flex: 1; min-width: 0; height: 46px; border: 1px solid #a9a9a9; border-right: 0;
  border-radius: 5px 0 0 5px; padding: 0 9px; font-size: 16px; color: var(--text-dark); outline: none; background: #fff;
}
.search-form input::placeholder { color: #a9a9a9; }
.search-form input:focus { border-color: var(--blue); }
.search-form button {
  width: 40px; height: 46px; border: 1px solid #a9a9a9; background: #f0f0f0; border-radius: 0 5px 5px 0;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.search-form button svg { fill: #8a8a8a; width: 24px; height: 24px; }
.header-cart { position: absolute; top: 8px; right: 15px; display: flex; align-items: center; }
.cart-icon-link { position: relative; display: block; width: 35px; height: 35px; }
.cart-icon-link svg { display: block; width: 35px; height: 35px; fill: #8c8c8c; }
.cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--blue); color: #fff;
  min-width: 19px; height: 19px; border-radius: 50%;
  font-size: 12px; font-weight: bold; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-count.hidden { display: none; }
.nav-toggle, .search-toggle { display: none; }

/* ---------- Navigation (6 entrées, flèche ▾ comme l'original) ---------- */
.main-nav { background: #fff; box-shadow: 0 2px 5px rgba(10,10,10,.16); position: relative; z-index: 99; }
.main-nav > ul { max-width: 1280px; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; height: 42px; line-height: 42px; padding: 0 14px;
  color: var(--text); font-size: 16px; white-space: nowrap;
}
.main-nav > ul > li > a::after {
  content: ""; display: inline-block; margin-left: 6px; vertical-align: middle;
  border: 3px solid transparent; border-top: 4px solid #5f5f5f; border-bottom: 0;
}
.main-nav > ul > li > a:hover { color: var(--blue); }
.main-nav > ul > li > a.promoted::before { content: "★"; color: #FFC900; margin-right: 6px; }

.mega-menu {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  border: 1px solid var(--border); border-top: 3px solid var(--blue);
  box-shadow: 0 12px 30px rgba(10,10,10,.15);
  min-width: 620px; max-width: 90vw; z-index: 90; padding: 18px;
}
.main-nav li:hover > .mega-menu,
.main-nav li:focus-within > .mega-menu { display: block; }
.mega-menu-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.mega-menu a.mega-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius); color: var(--text-dark); }
.mega-menu a.mega-item:hover { background: var(--blue-light); color: var(--blue); }
.mega-menu a.mega-item img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.mega-menu a.mega-item span { font-size: 14px; }
.main-nav li:last-child > .mega-menu, .main-nav li:nth-last-child(2) > .mega-menu { left: auto; right: 0; }

/* Écrans intermédiaires (950–1309 px) : marge de 15 px comme l'original */
@media (min-width: 950px) and (max-width: 1309px) {
  .logo-link { left: 15px; }
  .header-search { left: 442px; width: min(423px, calc(100% - 575px)); }
}

/* ---------- Mobile (< 950 px) : burger | loupe | logo centré | panier ---------- */
@media (max-width: 949px) {
  .header-main-inner { height: 48px; display: flex; align-items: center; padding: 0 10px; max-width: none; }
  .header-top-links { display: none; }
  .nav-toggle, .search-toggle {
    display: flex; align-items: center; justify-content: center; background: none; border: 0;
    width: 44px; height: 44px; padding: 0; flex-shrink: 0;
  }
  .nav-toggle span { display: block; width: 28px; height: 3px; background: #8c8c8c; margin: 3px 0; border-radius: 2px; }
  .nav-toggle { flex-direction: column; }
  .search-toggle svg { width: 30px; height: 30px; fill: #8c8c8c; }
  .logo-link { left: 50%; top: 6px; width: 190px; height: 36px; transform: translateX(-50%); }
  .logo-link img { width: 190px; height: 36px; object-position: center; }
  .header-cart { position: static; margin-left: auto; }
  .header-search { position: static; width: auto; height: auto; }
  .header-main { position: relative; box-shadow: 0 2px 5px rgba(10,10,10,.18); }
  .header-main-inner.search-open { height: auto; flex-wrap: wrap; padding-bottom: 8px; }
  .header-main-inner.search-open .header-search { display: block; order: 10; flex-basis: 100%; padding: 8px 4px 0; }
  .header-main-inner:not(.search-open) .header-search { display: none; }
  .header-main-inner.search-open .logo-link { top: 6px; }
  .designer-header .logo-link { left: 50%; top: 14px; }
  .designer-header .header-main-inner { padding: 0 10px; }

  .main-nav { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45); box-shadow: none; }
  .main-nav.open { display: block; }
  .main-nav > ul {
    display: block; height: 100%; overflow-y: auto; background: #fff; width: min(88vw, 380px);
    padding: 12px; max-width: none; margin: 0; animation: slideIn .25s ease;
  }
  @keyframes slideIn { from { transform: translateX(-40px); opacity: .4; } to { transform: none; opacity: 1; } }
  .main-nav > ul > li > a { height: auto; line-height: 1.3; padding: 15px 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .main-nav > ul > li > a.promoted::before { margin-right: 8px; }
  .main-nav > ul > li > a.promoted { justify-content: flex-start; }
  .main-nav > ul > li > a.promoted::after { margin-left: auto; }
  .mega-menu { display: none; position: static; min-width: 0; max-width: none; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .mega-menu.open { display: block; }
  .main-nav li:hover > .mega-menu, .main-nav li:focus-within > .mega-menu { display: none; }
  .main-nav li:hover > .mega-menu.open, .main-nav li:focus-within > .mega-menu.open { display: block; }
  .mega-menu-cols { grid-template-columns: 1fr; }
  .nav-backdrop-close { position: absolute; top: 12px; right: 12px; font-size: 30px; color: #fff; background: none; border: 0; width: 44px; height: 44px; }
}

/* ---------- USP : ligne de 3 icônes sous le hero (accueil) ---------- */
.usp-row { max-width: 1280px; margin: 0 auto; padding: 42px 0 33px; display: grid; grid-template-columns: repeat(3, 1fr); }
.usp-row .usp-item { min-height: 51px; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 13px; color: var(--text-dark); }
.usp-row .usp-item img { width: 26px; height: 26px; flex-shrink: 0; }
@media (max-width: 799px) {
  .usp-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 16px 6px; }
  .usp-row .usp-item { justify-content: flex-start; padding-left: 34px; font-size: 16px; gap: 32px; }
  .usp-row .usp-item img { width: 26px; height: 26px; }
}

.usp-row + .container > .section:first-child { padding-top: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 32px;
  font-size: 18px;
  text-align: center;
  transition: background .15s, transform .05s;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: #fff; color: var(--blue) !important; }
.btn-block { display: block; width: 100%; }

/* ---------- Sections génériques ---------- */
.section { padding: 34px 0; }
.section-gray { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head p { color: var(--text); }

/* Grille de cartes produits */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 949px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 799px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 529px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(10,10,10,.12); transform: translateY(-2px); }
.product-card-img { position: relative; display: block; aspect-ratio: 4/3; background: var(--bg-light); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 14px 16px 18px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.product-card-title { font-size: 16px; color: var(--text-dark); margin-bottom: 8px; }
.product-card-price { margin-top: auto; }
.price-old { text-decoration: line-through; color: #a9a9a9; font-size: 14px; margin-right: 6px; }
.price-new { color: var(--text-dark); font-weight: bold; font-size: 18px; }
.price-from { color: var(--text); font-size: 15px; }
.product-card .btn { margin-top: 12px; padding: 10px 20px; font-size: 15px; }

/* Badges */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 12px; font-weight: bold; color: #fff; background: var(--orange);
  position: absolute; top: 10px; left: 10px;
}
.badge.new { background: var(--blue); }

/* ---------- Hero (540 px desktop, 562 px mobile ; texte à gauche en desktop, centré en mobile) ----------
   Dépose les visuels de l'original dans img/hero/ pour un rendu strictement identique :
   advent-hero-desktop.jpg (≈ 1886 × 540) et advent-hero-mobile.jpg (≈ 790 × 1124).
   Tant qu'ils sont absents, le visuel produit existant sert de repli. */
.hero {
  position: relative; margin-top: 32px; height: 540px; color: #fff; overflow: hidden; background: #c9b6a6;
  background-image: url("../img/hero/advent-hero-desktop.jpg"), url("../img/products/smartsortedpuzzle1000adventcalendar-1.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-media, .hero-overlay { display: none; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.hero-content { position: relative; z-index: 2; max-width: 1310px; margin: 0 auto; padding: 154px 0 0; text-align: left; }
.hero h1 { font-size: 40px; line-height: 48px; color: #fff; max-width: 445px; margin: 0 0 22px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero h2 { font-family: var(--font-body); font-size: 16px; line-height: 22px; color: #fff; max-width: 445px; margin: 0 0 30px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hero .btn {
  background: #5f5f5f; border: 0; border-radius: 3px; height: 46px; line-height: 46px; padding: 0 38px;
  font-size: 18px; color: #fff !important; box-shadow: none;
}
.hero .btn:hover { background: #4a4a4a; }
@media (max-width: 949px) {
  .hero {
    height: 562px; margin-top: 33px;
    background-image: url("../img/hero/advent-hero-mobile.jpg"), url("../img/products/smartsortedpuzzle1000adventcalendar-1.jpg");
  }
  .hero-content { position: absolute; left: 0; right: 0; bottom: 25px; padding: 0 32px; text-align: center; }
  .hero h1 { font-size: 32px; line-height: 38px; max-width: none; margin-bottom: 20px; }
  .hero h2 { max-width: none; margin-bottom: 30px; }
  .hero .btn { display: block; width: 100%; font-size: 18px; font-weight: bold; height: auto; min-height: 46px; line-height: 22px; padding: 12px 20px; }
}

/* ---------- Page produit ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 36px; padding: 28px 0 10px; }
@media (max-width: 949px) { .product-detail { grid-template-columns: 1fr; gap: 20px; } }

.product-gallery { position: relative; }
.gallery-main {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-light); aspect-ratio: 4/3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery-thumbs button {
  border: 2px solid var(--border); background: #fff; border-radius: 6px;
  padding: 0; flex-shrink: 0; width: 84px; height: 64px; overflow: hidden;
}
.gallery-thumbs button.active { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); border: 0; width: 40px; height: 40px;
  border-radius: 50%; font-size: 22px; color: var(--text-dark); z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
@media (max-width: 639px) { .gallery-nav { display: none; } }

.product-info h1 { font-size: 26px; margin-bottom: 6px; }
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; }
.stars { color: var(--orange); letter-spacing: 2px; font-size: 16px; }
.feature-list li { padding: 5px 0 5px 26px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: bold; }

/* Sélecteur de taille/format */
.size-selector { border: 1px solid var(--border); border-radius: var(--radius); margin: 16px 0; overflow: hidden; }
.size-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
  background: #fff; width: 100%; border-left: 4px solid transparent; text-align: left; font-size: 15px;
}
.size-option:last-child { border-bottom: 0; }
.size-option:hover { background: var(--blue-light); }
.size-option.active { border-left-color: var(--blue); background: var(--blue-light); font-weight: bold; }
.size-option .tag { font-size: 12px; color: var(--blue); margin-left: 8px; }
.size-option .opt-price { white-space: nowrap; }
.size-option .opt-price .price-old { margin-right: 8px; }

.price-box { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 16px; }
.price-box .price-new { font-size: 30px; }
.delivery-estimate {
  display: flex; gap: 10px; align-items: center; background: var(--blue-light);
  border: 1px solid var(--blue-pale); padding: 10px 14px; border-radius: var(--radius);
  font-size: 14px; margin: 14px 0;
}
.delivery-estimate img { width: 30px; height: 22px; }
.tax-note { font-size: 12px; color: #a9a9a9; margin-top: 12px; }

/* Accordéon */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-head {
  width: 100%; background: #fff; border: 0; text-align: left;
  padding: 15px 18px; font-size: 16px; color: var(--text-dark);
  display: flex; justify-content: space-between; align-items: center;
}
.accordion-head::after { content: "+"; font-size: 22px; color: var(--blue); font-weight: bold; }
.accordion-item.open .accordion-head::after { content: "−"; }
.accordion-body { display: none; padding: 0 18px 16px; font-size: 15px; }
.accordion-item.open .accordion-body { display: block; }

/* Grille de modèles (templates) */
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.template-card {
  position: relative; border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: block; background: var(--bg-light);
}
.template-card:hover { border-color: var(--blue); }
.template-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.template-card .template-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(23,129,165,.92); color: #fff; font-size: 12px;
  text-align: center; padding: 5px 4px;
}

/* Reviews */
.reviews-summary { display: flex; gap: 18px; align-items: center; }

/* ---------- Footer ---------- */
footer { background: #2d2d2d; color: #cfcdcd; margin-top: 40px; font-size: 14px; }
.footer-cols {
  max-width: var(--max-width); margin: 0 auto; padding: 36px 16px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.footer-cols h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-cols a { color: #cfcdcd; display: block; padding: 3px 0; }
.footer-cols a:hover { color: #fff; }
.footer-pay { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-pay img { height: 32px; }
.footer-bottom {
  border-top: 1px solid #4a4a4a; text-align: center; padding: 16px;
  font-size: 13px; color: #a3a3a3;
}
.footer-bottom .heart { color: var(--blue); }
@media (max-width: 799px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Panier ---------- */
.cart-page { padding: 30px 0; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--border); font-size: 14px; color: var(--text); }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-img { width: 90px; height: 68px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-dark); border-radius: var(--radius); overflow: hidden; }
.cart-qty button { background: #fff; border: 0; width: 44px; height: 44px; font-size: 20px; color: var(--blue); }
.cart-qty input { width: 48px; height: 44px; border: 0; text-align: center; -moz-appearance: textfield; }
.cart-qty input::-webkit-outer-spin-button, .cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-remove { color: #c0392b; background: none; border: 0; font-size: 13px; text-decoration: underline; padding: 12px 8px; min-height: 44px; }
.cart-summary {
  background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 90px;
}
.cart-summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
.cart-summary-row.total { border-top: 2px solid var(--text-dark); margin-top: 8px; padding-top: 14px; font-size: 19px; font-weight: bold; color: var(--text-dark); }
.cart-empty { text-align: center; padding: 70px 16px; }
.cart-empty img { width: 90px; opacity: .5; margin-bottom: 18px; }
@media (max-width: 799px) {
  .cart-table th:nth-child(2), .cart-table td.cart-col-sum { display: none; }
}

/* ---------- Configurateur (product-designer) ---------- */
.designer-header { box-shadow: 0 2px 5px rgba(10,10,10,.16); }
.designer-header .header-main-inner { height: 64px; padding: 0 15px; }
.designer-header .logo-link { top: 7px; left: 15px; transform: none; }
.designer-header .header-cart { top: 14px; right: 20px; }
.designer-page { padding-bottom: 10px; }

/* Stepper 3 étapes (chevrons, comme l'original) */
.stepper { display: flex; gap: 2px; margin: 14px 0 22px; }
.stepper-step {
  flex: 1; background: #ececec; color: #5f5f5f; padding: 12px 22px; font-size: 15px; text-align: center;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  cursor: default; user-select: none;
}
.stepper-step:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.stepper-step.active { background: #e6f2fb; color: var(--text-dark); }
.stepper-step.done { background: #e6f2fb; color: var(--blue); cursor: pointer; }
@media (max-width: 639px) {
  .stepper-step { font-size: 11.5px; padding: 9px 12px 9px 16px; line-height: 1.25; display: flex; align-items: center; justify-content: center; }
}

.designer-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 34px; padding: 4px 0 30px; align-items: start; }
@media (max-width: 949px) { .designer-layout { grid-template-columns: 1fr; gap: 18px; } }
.designer-stage { min-width: 0; }

.designer-canvas {
  position: relative; background: #fff; margin: 0 auto; overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  box-shadow: 0 1px 6px rgba(10,10,10,.12);
}
.designer-canvas.draggable { cursor: grab; touch-action: none; }
.designer-canvas.is-empty { background: #8fc8dd; cursor: pointer; }
.designer-canvas #canvas-content { position: absolute; inset: 0; }
.designer-canvas img.photo-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transform-origin: center; }
.canvas-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: rgba(255,255,255,.75); z-index: 6; pointer-events: none; padding: 20px; }
.canvas-placeholder p { margin: 8px 0 0; font-size: 15px; color: #6b7f88; }
.designer-canvas.is-advent .canvas-placeholder svg { opacity: .55; }
.canvas-text { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; z-index: 7; color: #fff; font-family: var(--font-head); font-size: clamp(16px, 3.2vw, 28px); text-shadow: 0 2px 6px rgba(0,0,0,.65); padding: 0 10px; pointer-events: none; }

.slots-grid { display: grid; gap: 2px; width: 100%; height: 100%; background: #fff; }
.slot {
  position: relative; background: #a9d6e6; overflow: hidden; cursor: pointer; min-height: 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
.slot.empty:hover { background: #8fc8dd; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .slot-empty-icon { color: #fff; font-size: 22px; opacity: .85; }
.slot .slot-num { position: absolute; top: 3px; left: 4px; z-index: 2; background: rgba(23,129,165,.85); color: #fff; font-size: 11px; font-weight: bold; padding: 0 5px; border-radius: 3px; line-height: 17px; }
.slot .slot-date, .advent-door .slot-date { position: absolute; bottom: 3px; left: 3px; z-index: 2; background: rgba(45,45,45,.75); color: #fff; font-size: 10px; padding: 0 4px; border-radius: 3px; display: none; line-height: 15px; font-weight: normal; text-shadow: none; }
.designer-canvas.show-dates .slot-date { display: block; }
.designer-canvas.windows-hidden .slot-num, .designer-canvas.windows-hidden .slot-date { display: none; }

/* Aperçu des 24 petites fenêtres (mosaïque 8 × 5) */
.advent-overlay { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr); pointer-events: auto; }
.advent-overlay .advent-door { position: relative; border-radius: 0; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.08); font-size: clamp(11px, 2.2vw, 17px); padding: 0; }
.advent-overlay .advent-door:hover { background: rgba(23,129,165,.45); }
.advent-overlay .advent-door.opened { transform: none; background: rgba(255,255,255,.55); }
.advent-overlay .advent-door.opened .slot-num-big { visibility: hidden; }
.designer-canvas.is-empty .advent-overlay .advent-door { background: transparent; }
.designer-canvas.is-empty .advent-overlay .advent-door:hover { background: rgba(255,255,255,.2); }
.designer-canvas.show-dates .advent-overlay .slot-date { display: block; }

.advent-controls { text-align: center; margin: 12px 0 4px; }
.advent-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 6px; min-height: 44px; font-size: 14px; color: var(--text); text-align: left; }
.advent-toggle svg { color: var(--blue); flex-shrink: 0; }
.advent-toggle[aria-pressed="false"] svg { opacity: .5; }
.advent-note { font-size: 11px; color: #a9a9a9; margin: -6px 0 2px; }

.designer-toolbox { display: grid; gap: 10px; margin: 14px auto 0; max-width: 520px; }
.tool-row { display: flex; align-items: center; gap: 10px; }
.tool-row label { min-width: 90px; font-size: 14px; color: var(--text-dark); }
input[type=range] { flex: 1; accent-color: var(--blue); min-height: 28px; }
.image-quality { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.quality-stars { color: var(--orange); }
.tool-hint { font-size: 12px; color: #888; margin: 0; }

/* Panneau */
.designer-panel h2 { font-family: var(--font-body); font-size: 16px; color: var(--text); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.panel-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: #fff; border: 1px solid var(--border-dark); border-radius: 3px; min-height: 44px; padding: 10px 14px;
  font-size: 15px; color: var(--text-dark); margin-bottom: 8px; transition: border-color .15s, box-shadow .15s;
}
.panel-btn svg { color: var(--text); flex-shrink: 0; }
.panel-btn:hover, .panel-btn.dragover { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-pale); }
.panel-sub { font-size: 12px; color: #888; margin: -2px 0 10px; text-align: center; }
.panel-progress { text-align: center; font-size: 14px; padding: 8px; }
.panel-text { width: 100%; padding: 10px; border: 1px solid var(--border-dark); border-radius: 6px; min-width: 0; margin-bottom: 8px; min-height: 44px; }
.panel-intro { font-size: 14px; }
.panel-h3 { font-size: 16px; }

.tabbed-toolbox { border: 1px solid var(--border); margin-top: 6px; background: #fff; }
.ttabs { display: flex; border-bottom: 1px solid var(--border); }
.ttab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: left;
  background: #fafafa; border: 0; border-bottom: 3px solid transparent; padding: 12px 8px; min-height: 56px;
  font-size: 14px; color: var(--text); line-height: 1.3;
}
.ttab svg { color: var(--blue); flex-shrink: 0; }
.ttab.active { background: #fff; color: var(--blue); border-bottom-color: var(--blue); }
.tab-count { background: var(--blue); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; margin-left: 4px; font-weight: bold; }
.tab-body { padding: 12px; max-height: 360px; overflow-y: auto; min-height: 120px; }

.tpl-families { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 8px 4px; }
.tpl-family { background: none; border: 0; text-align: center; font-size: 14px; color: var(--text-dark); padding: 6px; }
.tpl-family img { width: 100%; max-width: 120px; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--border-dark); display: block; margin: 0 auto 8px; }
.tpl-family:hover img { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-pale); }
.tpl-back { background: none; border: 0; color: var(--blue); font-size: 14px; padding: 4px 2px 10px; min-height: 36px; }
.tpl-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl-item { border: 2px solid var(--border); border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff; text-align: center; }
.tpl-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tpl-item .tpl-name { font-size: 11px; padding: 5px 3px; color: var(--text-dark); line-height: 1.25; }
.tpl-item .tpl-slots { font-size: 10px; color: var(--blue); font-weight: bold; }
.tpl-item.active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-pale); }
.tpl-item:hover { border-color: var(--blue); }

.gallery-thumbs-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gthumb { position: relative; border: 2px solid var(--border); border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--bg-light); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gthumb.used { border-color: var(--green); }
.gthumb.selected { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-pale); }
.gthumb .used-check { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; z-index: 2; }
.gthumb .gremove { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; background: rgba(45,45,45,.75); color: #fff; border: 0; border-radius: 50%; font-size: 16px; line-height: 1; }
.gallery-empty { color: #5f5f5f; text-align: left; padding: 6px 4px; font-size: 14px; }
.gallery-hint { font-size: 12px; color: #888; margin: 8px 0 0; }

.price-line { text-align: right; font-size: 16px; color: var(--text); margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.price-line .price-old { font-size: 16px; }
.price-red { color: #b3001b; font-size: 17px; }
.btn-continue { display: block; width: 100%; margin-top: 14px; padding: 12px 20px; font-size: 18px; min-height: 48px; }
.btn-back { display: block; width: 100%; margin-top: 8px; padding: 10px 20px; font-size: 14px; min-height: 44px; }

.designer-price-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.designer-price-row { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0; }
.designer-price-row.total { font-size: 19px; font-weight: bold; color: var(--text-dark); border-top: 1px solid var(--border-dark); margin-top: 8px; padding-top: 10px; }

/* Étape boîte */
.box-preview { position: relative; overflow: hidden; border-radius: 10px; padding: 34px 20px; text-align: center; margin: 12px 0; background: #d3e7f2; min-height: 150px; }
.box-preview .box-photo { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(2px) brightness(.8); transform: scale(1.05); }
.box-preview .box-title, .box-preview .box-sub { position: relative; }
.box-preview .box-title { font-family: var(--font-head); font-size: 26px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); min-height: 34px; word-break: break-word; }
.box-preview .box-sub { font-size: 12px; color: #fff; margin-top: 6px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.box-title-row { margin: 12px 0; }
.box-title-row .panel-text { margin: 0; flex: 1; }

/* Accessoires */
.acc-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; cursor: pointer; min-height: 56px; }
.acc-row input { width: 22px; height: 22px; accent-color: var(--blue); flex-shrink: 0; }
.acc-row img { border-radius: 6px; object-fit: cover; }
.acc-row .acc-name { flex: 1; font-size: 14px; }

/* Modale sélecteur de photo */
.picker-overlay { position: fixed; inset: 0; background: rgba(45,45,45,.6); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.picker-box { background: #fff; border-radius: 12px; max-width: 520px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 18px; }
.picker-box h3 { margin-bottom: 6px; }
.picker-sub { font-size: 13px; color: var(--text); }
.picker-box .gallery-thumbs-wrap { margin-top: 10px; }
.picker-box .btn { padding: 11px; font-size: 15px; min-height: 44px; }
@media (max-width: 639px) {
  .picker-overlay { align-items: flex-end; padding: 0; }
  .picker-box { border-radius: 16px 16px 0 0; max-height: 80vh; animation: sheetUp .22s ease; }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
}

/* Barre sticky mobile (prix + CTA) */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(10,10,10,.1); padding: 10px 14px; display: none; align-items: center; gap: 12px;
}
.mobile-cta-bar .m-total { font-size: 19px; font-weight: bold; color: var(--text-dark); white-space: nowrap; }
.mobile-cta-bar .btn { flex: 1; padding: 12px 16px; font-size: 16px; min-height: 48px; }
@media (max-width: 949px) {
  .mobile-cta-bar.show { display: flex; }
  body.has-mobile-bar { padding-bottom: 74px; }
}

/* USP en bas de page (configurateur) */
.designer-usp-inner { max-width: var(--max-width); margin: 10px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.designer-usp .usp-item { background: var(--blue-light); padding: 14px 16px; justify-content: flex-start; text-align: left; }
@media (max-width: 799px) { .designer-usp-inner { grid-template-columns: 1fr; gap: 8px; } }
.designer-footer { background: transparent; margin-top: 10px; color: var(--text); }
.designer-footer .footer-bottom { border-top: 0; color: var(--text); }
.designer-footer .footer-bottom a { color: var(--text) !important; text-decoration: underline; }

/* Aperçu calendrier de l'Avent interactif */
.advent-preview { position: relative; border-radius: var(--radius); overflow: hidden; user-select: none; }
.advent-preview img { width: 100%; display: block; }
.advent-door {
  position: absolute; border: 2px solid rgba(255,255,255,.85);
  background: rgba(23,129,165,.35); color: #fff; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .3s, background .3s;
  border-radius: 4px; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.advent-door:hover { background: rgba(23,129,165,.75); }
.advent-door.opened { transform: rotateY(180deg); background: rgba(255,255,255,.12); font-size: 0; }
.advent-door.opened::after { content: "✔"; font-size: 15px; }
.advent-doors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.advent-doors-grid .door-mini {
  aspect-ratio: 1; border: 1px solid var(--blue-pale); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; color: var(--blue); cursor: pointer; background: #fff; font-size: 15px;
}
.advent-doors-grid .door-mini:hover { background: var(--blue-light); }
.advent-doors-grid .door-mini.opened { background: var(--blue); color: #fff; }

/* ---------- Accueil : blocs texte + image ---------- */
.home-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.home-block.reverse > :first-child { order: 2; }
.home-block img { width: 100%; border-radius: var(--radius); display: block; }
.home-price { font-size: 20px; color: var(--text-dark); margin: 6px 0 16px; }
.home-price .price-old { font-size: 16px; }
.quality-list { max-width: 640px; margin: 0 auto 18px; }
.quality-list li { padding: 6px 0 6px 28px; position: relative; }
.quality-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: bold; }
@media (max-width: 799px) {
  .home-block { grid-template-columns: 1fr; gap: 20px; }
  .home-block.reverse > :first-child { order: 0; }
}

/* ---------- Divers ---------- */
.breadcrumb { font-size: 13px; padding: 12px 0 0; color: #a9a9a9; }
.breadcrumb a { color: var(--text); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* Skeleton loading pour LCP */
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toast notification */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--text-dark); color: #fff; padding: 12px 24px; border-radius: 40px;
  font-size: 15px; z-index: 500; opacity: 0; transition: .3s; pointer-events: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.3); max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================================
   Configurateur v3 — comportement et rendu calqués sur puzzleYOU
   ===================================================================== */
/* Effet « puzzle » sur la photo (les pièces découpées) */
.puzzle-texture { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; background: url("../img/puzzle-texture.svg") 0 0 / 11.5% auto repeat; }
.designer-canvas.has-texture .puzzle-texture { opacity: 1; }
.frame-photo .puzzle-texture, .roll-photo .puzzle-texture { opacity: 1; background-size: 14% auto; }
.designer-canvas.selected #canvas-content { opacity: .45; transition: opacity .2s; }
.photo-tools { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; gap: 4px; pointer-events: none; }
.photo-tools button { pointer-events: auto; width: 44px; height: 44px; background: #1781a5; color: #fff; border: 0; display: flex; align-items: center; justify-content: center; border-radius: 3px; }
.photo-tools button:hover { background: #0d6a8a; }
.designer-canvas.draggable { cursor: pointer; }
.advent-toggle.on { color: var(--blue); }
.advent-overlay .advent-door { background: rgba(32,128,148,.38); border-color: rgba(255,255,255,.7); }
.designer-canvas.is-empty .advent-overlay .advent-door { background: transparent; }
.image-quality { justify-content: center; }
.image-quality.centered { margin: 6px 0 14px; }
.quality-stars { color: #f5a24b; letter-spacing: 1px; }
.quality-stars .off { color: #f3d3ad; }

/* galerie : coche bleue (photo utilisée) */
.gthumb.used { border-color: var(--border); }
.gthumb.selected { border-color: var(--blue); }
.gthumb .used-check { background: none; width: 22px; height: 22px; top: auto; left: auto; right: 4px; bottom: 4px; border-radius: 0; }
.gthumb .gremove { display: none; }
.gthumb:hover .gremove { display: block; }

/* éditeur de photo */
#panel-editor { background: #fff; box-shadow: 0 2px 10px rgba(10,10,10,.18); padding: 14px 14px 18px; border-radius: 3px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.editor-head h3 { font-family: var(--font-body); font-size: 17px; margin: 0 0 8px; color: var(--text-dark); }
.editor-x { background: none; border: 0; color: var(--text); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.crop-frame { position: relative; width: 100%; overflow: hidden; border: 2px solid var(--blue); background: #999; cursor: grab; touch-action: none; user-select: none; }
.crop-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform-origin: center; }
.zoom-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 6px; font-size: 14px; color: var(--text); }
.zoom-row button { background: none; border: 0; color: var(--blue); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.zoom-row input[type=range] { flex: 0 1 190px; }
.editor-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; }
.editor-actions .btn { flex: 1; max-width: 170px; padding: 11px 16px; font-size: 15px; min-height: 44px; border-radius: 3px; }
.editor-actions .btn-secondary { border-color: var(--border-dark); color: var(--text) !important; }

/* boutons d'étape : Retour | Continuer */
.step-actions { display: flex; gap: 16px; align-items: stretch; margin-top: 14px; }
.step-actions .btn { flex: 1; padding: 12px 16px; font-size: 18px; min-height: 48px; border-radius: 3px; }
.step-actions .btn-secondary { flex: 0 0 auto; min-width: 110px; font-size: 16px; border-color: var(--border-dark); color: var(--text) !important; }
.step3-actions { max-width: 780px; margin: 0 auto 10px; }
.step3-actions .btn:not(.btn-secondary) { flex: 0 1 300px; margin-left: auto; }

/* étape 2 : boîte */
.box-face-wrap { max-width: 520px; margin: 0 auto; }
.box-face { position: relative; container-type: inline-size; aspect-ratio: 4/3; width: 100%; box-shadow: 0 1px 8px rgba(10,10,10,.2); overflow: hidden; background: #fff; border: 6px solid #6f7d73; }
.bx { position: absolute; inset: 0; overflow: hidden; }
.bx-pattern { position: absolute; inset: 0; opacity: .14; background: radial-gradient(circle at 20% 25%, currentColor 0 5px, transparent 6px) 0 0 / 34px 34px, radial-gradient(circle at 70% 70%, currentColor 0 3px, transparent 4px) 0 0 / 26px 26px; }
.bx-photo { position: absolute; left: 20%; right: 20%; top: 9%; bottom: 31%; background-size: cover; background-position: center; border: 1.6cqw solid #fff; box-shadow: 0 .6cqw 1.6cqw rgba(0,0,0,.25); }
.bx-photo i { position: absolute; inset: 0; background: url("../img/puzzle-texture.svg") 0 0 / 14% auto; }
.bx-title { position: absolute; left: 6%; right: 6%; bottom: 13%; text-align: center; font-family: var(--font-head); font-size: 7.2cqw; line-height: 1.1; word-break: break-word; }
.bx-brand { position: absolute; right: 5%; bottom: 4%; font-size: 3cqw; font-weight: bold; opacity: .75; letter-spacing: .5px; }
.box-title-input { position: absolute; left: 6%; right: 6%; bottom: 8%; height: 14%; text-align: center; font-family: var(--font-head); font-size: 6cqw; color: var(--text-dark); background: rgba(255,255,255,.78); border: 1px dashed #8a9aa3; border-radius: 3px; outline: none; }
.box-title-input:focus { border-color: var(--blue); background: rgba(255,255,255,.92); }
.box-title-input::placeholder { color: #6b6b6b; font-size: 4.4cqw; font-family: var(--font-body); }
.side-card { background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(10,10,10,.08); margin-bottom: 16px; padding: 14px 16px 16px; }
.side-card-head { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text-dark); border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 12px; }
.side-card-head svg { color: #9aa7ae; }
.box-families { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box-family { background: none; border: 0; text-align: center; font-size: 13px; color: var(--text); padding: 6px; min-height: 44px; }
.box-family:hover .mini-box { transform: translateY(-2px); }
.mini-box { display: block; width: 86px; height: 62px; margin: 0 auto 8px; position: relative; transition: transform .15s; background: linear-gradient(135deg, #f5f5f5, #dcdcdc); border: 1px solid #b9b9b9; box-shadow: 4px 5px 0 rgba(0,0,0,.08); }
.mini-box[data-kind="photo"]::after { content: ""; position: absolute; inset: 12% 12% 30% 12%; background: #bcd7e6 url("../img/puzzle-texture.svg") 0 0 / 30% auto; }
.mini-box[style*="--bg"] { background: var(--bg); border-color: rgba(0,0,0,.2); }
.scene3d { perspective: 900px; height: 250px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cube { position: relative; width: 150px; height: 112px; transform-style: preserve-3d; animation: boxspin 14s linear infinite; }
@keyframes boxspin { from { transform: rotateX(-14deg) rotateY(-30deg); } to { transform: rotateX(-14deg) rotateY(330deg); } }
.cf { position: absolute; background: #e9e9e6; border: 1px solid rgba(0,0,0,.18); backface-visibility: hidden; overflow: hidden; }
.cf.front { width: 150px; height: 112px; transform: translateZ(13px); container-type: inline-size; }
.cf.back { width: 150px; height: 112px; transform: rotateY(180deg) translateZ(13px); background: #d9d9d4; }
.cf.right, .cf.left { width: 26px; height: 112px; left: 62px; background: #6f7d73; color: #fff; }
.cf.right { transform: rotateY(90deg) translateZ(75px); display: flex; flex-direction: column; align-items: center; justify-content: space-around; font-size: 9px; }
.cf.right span { writing-mode: vertical-rl; font-weight: bold; letter-spacing: 1px; }
.cf.right b { writing-mode: vertical-rl; font-size: 8px; opacity: .85; }
.cf.left { transform: rotateY(-90deg) translateZ(75px); }
.cf.top, .cf.bottom { width: 150px; height: 26px; top: 43px; background: #8a968c; }
.cf.top { transform: rotateX(90deg) translateZ(56px); }
.cf.bottom { transform: rotateX(-90deg) translateZ(56px); }
@media (prefers-reduced-motion: reduce) { .cube { animation: none; transform: rotateX(-14deg) rotateY(-30deg); } }

/* modales boîte / titre */
.box-modal-box { max-width: 860px; padding: 22px; }
.modal-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.modal-tabs button { flex: 1; background: #f7f7f7; border: 0; border-bottom: 2px solid transparent; padding: 14px 8px; font-size: 14px; color: var(--text); min-height: 48px; }
.modal-tabs button.active { background: #fff; color: var(--blue); border-bottom-color: var(--blue); }
.box-model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.box-model { background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(10,10,10,.08); padding: 14px 6px 10px; font-size: 13px; color: var(--text); min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; }
.box-model.active, .box-model:hover { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-pale); }
.box-model .mini-box { margin: 0; width: 100px; height: 72px; }
@media (max-width: 639px) { .box-model-grid { grid-template-columns: repeat(2, 1fr); } .box-modal-box { padding: 14px; } }
.title-modal-box { max-width: 420px; text-align: center; padding: 28px 24px; }
.title-modal-box h3 { font-family: var(--font-body); font-size: 16px; font-weight: bold; margin: 16px 0 10px; }
.title-modal-box p { font-size: 13px; color: var(--text); }
.title-modal-box .btn { display: block; width: 220px; max-width: 100%; margin: 10px auto 0; padding: 10px 14px; font-size: 14px; min-height: 44px; border-radius: 3px; }
.title-modal-box .btn-secondary { border-color: var(--border-dark); color: var(--text) !important; }

/* étape 3 : accessoires / upsell */
.upsell { max-width: 780px; margin: 0 auto; padding-bottom: 20px; }
.upsell-frame { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding: 10px 0 28px; border-bottom: 1px solid var(--border); }
.upsell-frame-img .room { position: relative; background: linear-gradient(#f4f2ef, #ecebe7); aspect-ratio: 1.38/1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.upsell-frame-img .shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(#b98652, #8a5d33); }
.frame-mock { position: relative; z-index: 2; width: 66%; aspect-ratio: 4/3; border: 12px solid var(--fc, #1c1c1c); background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.28); margin-bottom: 8%; }
.frame-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.upsell-frame-txt { text-align: center; font-size: 15px; color: var(--text-dark); }
.bon-a-savoir { font-family: var(--font-head); font-size: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #555; }
.bon-a-savoir .heart { color: #e5367a; font-size: 34px; font-family: var(--font-body); }
.small { font-size: 13px; color: var(--text); }
.up-price { margin: 14px 0 10px; font-size: 16px; color: var(--text-dark); }
.frame-colors { display: flex; justify-content: center; gap: 8px; margin: 12px 0 16px; }
.fc { background: #f4f4f4; border: 1px solid transparent; border-radius: 3px; padding: 8px 8px 6px; font-size: 13px; color: var(--text); min-height: 56px; min-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.fc-sw { width: 40px; height: 28px; border: 1px solid rgba(0,0,0,.15); }
.fc.active { background: #fff; border-color: #ddd; box-shadow: 0 2px 6px rgba(0,0,0,.14); color: var(--text-dark); font-weight: bold; }
.fc.active::after { content: "✓"; position: absolute; right: 4px; top: -2px; font-size: 11px; font-weight: normal; }
.up-add { display: flex; align-items: center; justify-content: center; gap: 14px; }
.up-add .btn { padding: 9px 16px; font-size: 14px; min-height: 40px; border-radius: 3px; }
.up-check { width: 26px; height: 26px; border: 1px solid #6e6e6e; border-radius: 2px; display: inline-block; cursor: pointer; background: #fff; position: relative; }
.up-check.on { background: #7ab6cb; border-color: #5d9db4; }
.up-check.on::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.upsell-grid { display: grid; grid-template-columns: 1fr 1fr; padding: 24px 0 10px; }
.upsell-card { text-align: center; padding: 0 26px; display: flex; flex-direction: column; align-items: center; font-size: 14px; color: var(--text-dark); }
.upsell-card + .upsell-card { border-left: 1px solid var(--border); }
.upsell-card .up-img { width: 100%; max-width: 260px; height: 190px; object-fit: contain; margin-bottom: 18px; }
.roll-img { position: relative; width: 100%; max-width: 260px; height: 190px; margin-bottom: 18px; }
.roll-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.roll-photo { display: none; }
.up-desc { min-height: 88px; }
.upsell-card .up-price { margin-top: auto; }
.upsell-total { text-align: right; max-width: 780px; margin: 10px auto 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 16px; color: var(--text); }
.upsell-total .saving { color: #b3001b; font-size: 14px; margin-top: 2px; }
@media (max-width: 799px) {
  .upsell-frame { grid-template-columns: 1fr; gap: 18px; }
  .upsell-grid { grid-template-columns: 1fr; gap: 26px; }
  .upsell-card + .upsell-card { border-left: 0; border-top: 1px solid var(--border); padding-top: 26px; }
  .bon-a-savoir { font-size: 24px; }
}

/* =====================================================================
   Panier — mise en page calquée sur puzzleYOU
   ===================================================================== */
.cart-page { padding: 18px 15px 40px; }
.cart2-head, .cart2-item { display: grid; grid-template-columns: minmax(0, 1fr) 150px 160px; gap: 16px; align-items: center; }
.cart2-head { padding: 8px 0; border-bottom: 1px solid var(--border-dark); font-size: 15px; color: var(--text); }
.cart2-head .c-qty { text-align: center; }
.cart2-head .c-prc, .cart2-item .c-prc { text-align: right; }
.cart2-item { padding: 18px 0; border-bottom: 1px solid var(--border-dark); }
.cart2-item .c-art { display: flex; gap: 18px; align-items: flex-start; }
.cart2-thumb { position: relative; flex: 0 0 auto; width: 96px; height: 76px; padding: 0; background: #fff; border: 0; }
.cart2-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cart2-thumb .mag { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid #b9b9b9; color: #8a8a8a; display: flex; align-items: center; justify-content: center; }
.cart2-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 15px; color: var(--text-dark); }
.cart2-info .sub { font-size: 13px; color: var(--text); }
.cart2-link { background: none; border: 0; padding: 4px 0; font-size: 14px; color: var(--text-dark); display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; }
.cart2-link:hover { color: var(--blue); }
.cart2-item .c-qty { display: flex; justify-content: center; }
.cart-qty { border: 1px solid #1a7ea0; border-radius: 22px; background: #fff; }
.cart-qty button { width: 40px; height: 40px; font-size: 20px; color: #1a7ea0; }
.cart-qty button:first-child { opacity: .6; }
.cart-qty input { width: 36px; height: 40px; font-weight: bold; color: #1a7ea0; font-size: 15px; }
.cart2-item .price-old { font-size: 14px; }
.cart2-item .price-red { color: #b3001b; font-weight: bold; font-size: 17px; }
.cart2-item .c-prc strong { font-size: 17px; color: var(--text-dark); }

.cart2-ship { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0 8px 10px; font-size: 14px; color: var(--text-dark); }
.cart2-ship svg { flex: 0 0 auto; margin-top: 2px; }
.cart2-ship-title { font-weight: bold; margin-bottom: 6px; }
.cart2-ship-opt { display: block; line-height: 1.7; cursor: default; }
.cart2-ship-opt .dates { color: #1a7ea0; font-weight: bold; }
.cart2-bottom { display: flex; justify-content: flex-end; }
.cart2-sum { width: 100%; max-width: 420px; font-size: 15px; color: var(--text-dark); }
.cart2-row { display: flex; justify-content: space-between; padding: 10px 0; }
.cart2-promo { display: flex; gap: 14px; margin: 4px 0 6px; }
.cart2-promo input { flex: 1; min-width: 0; height: 36px; border: 1px solid #a9a9a9; padding: 0 8px; font-size: 14px; }
.cart2-promo .btn { padding: 0 22px; height: 36px; min-height: 36px; font-size: 14px; border-radius: 3px; border-color: #1a7ea0; color: #1a7ea0 !important; font-weight: bold; }
.cart2-total { display: flex; justify-content: space-between; align-items: flex-start; border-top: 1px solid var(--text-dark); margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: bold; }
.cart2-total small { display: block; font-weight: normal; font-size: 12px; color: var(--text); }
.cart2-total strong { font-size: 19px; }
.cart2-saving { margin-top: 14px; border-top: 1px solid #b3001b; border-bottom: 1px solid #b3001b; color: #b3001b; text-align: center; padding: 7px 0; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cart2-saving.hidden { display: none; }
.cart2-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.cart2-actions .btn { min-height: 48px; padding: 12px 30px; font-size: 17px; border-radius: 3px; }
.cart2-actions .btn-secondary { border-color: var(--border-dark); color: var(--text) !important; }
.btn-dark { background: #14586e; border-color: #14586e; min-width: 240px; font-weight: bold; }
.btn-dark:hover { background: #0e4558; border-color: #0e4558; }
.cart2-sec { text-align: right; font-size: 12px; color: var(--text); margin: 10px 0 0; }
.cart2-pay { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; padding: 22px 0; background: var(--blue-light); }
.cart2-pay img { height: 32px; width: auto; background: #fff; padding: 4px 10px; }
.zoom-box { max-width: 560px; text-align: center; }
.zoom-box img { max-width: 100%; max-height: 62vh; margin-bottom: 8px; }
@media (max-width: 799px) {
  .cart2-head { display: none; }
  .cart2-item { grid-template-columns: 1fr auto; grid-template-areas: "art art" "qty prc"; row-gap: 12px; }
  .cart2-item .c-art { grid-area: art; }
  .cart2-item .c-qty { grid-area: qty; justify-content: flex-start; }
  .cart2-item .c-prc { grid-area: prc; }
  .cart2-bottom { justify-content: stretch; }
  .cart2-sum { max-width: none; }
  .cart2-actions { flex-direction: column-reverse; }
  .cart2-actions .btn { width: 100%; text-align: center; }
  .cart2-sec { text-align: center; }
}

/* ---- Sélecteur de format (produits hors calendrier), cadre aluminium, densité des pièces ---- */
.puzzle-texture { background-size: var(--tex, 11.5%) auto; }
.not-advent .price-line.advent-only { display: none; }
.size-select { position: relative; margin: 0 0 12px; }
.size-select-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(10,10,10,.08); padding: 0 14px; min-height: 44px; font-size: 14px; color: var(--text); text-align: left; }
.size-select-btn > span:first-child { flex: 1; }
.size-select-btn .ss-prices { display: inline-flex; gap: 6px; align-items: baseline; }
.size-select-btn .price-red { font-size: 15px; }
.size-select-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff; border: 1px solid var(--border-dark); box-shadow: 0 8px 20px rgba(10,10,10,.18); max-height: 330px; overflow-y: auto; padding: 4px 0; margin: 0; list-style: none; }
.size-select-list li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; font-size: 14px; color: var(--text-dark); cursor: pointer; min-height: 44px; align-items: center; }
.size-select-list li:hover, .size-select-list li.on { background: var(--blue-light); }
.frame-mock.alu { border-width: 7px; border-color: var(--fc, #c8cbd0); background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.28), inset 0 0 0 5px #f6f6f4; }
.frame-colors-gap { height: 14px; }

.tpl-families:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpl-families:has(> :nth-child(3)) .tpl-family img { max-width: 100px; }

/* ---- Catalogue de modèles : pagination, vignettes, onglets défilables ---- */
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 12px; }
.pager button { min-width: 36px; height: 36px; background: none; border: 0; color: var(--text-dark); font-size: 15px; }
.pager button.on { background: var(--blue-light); color: var(--text-dark); }
.pager button:disabled { color: #bbb; cursor: default; }
.tpl-families .fam-thumb { display: block; margin: 0 auto 8px; width: 100%; max-width: 100px; }
.tpl-families .fam-thumb img, .tpl-families .fam-thumb .schem { width: 100%; display: block; border: 1px solid var(--border-dark); background: #fff; object-fit: cover; aspect-ratio: 4/3; }
.schem { display: grid; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--border-dark); width: 100%; box-sizing: border-box; }
.schem i { background: #cfd9de; display: block; min-height: 3px; }
.cat-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 96px; }
.cat-thumb img, .cat-thumb .schem { max-width: 100%; max-height: 96px; width: auto; height: auto; object-fit: contain; }
.cat-thumb .schem { width: 118px; }
.cat-thumb.portrait .schem { width: 74px; }
.cat-thumb.portrait img { max-height: 96px; }
.box-model .tpl-slots { font-size: 12px; color: var(--text); font-weight: normal; }
.modal-tabs { overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.modal-tabs button { flex: 0 0 auto; padding: 14px 18px; }
.editor-head .editor-x { margin-top: -6px; }
.box-modal-box .editor-head { margin-bottom: 4px; }
.box-families.three { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.box-families.three .mini-box { width: 74px; height: 54px; }
.box-families.three .box-family { font-size: 12px; }
.mini-box[data-kind="plain"] { background: var(--bg, #e8e8e4); border-color: rgba(0,0,0,.22); }
.mini-box[data-kind="photo"] { background: var(--bg, #e8e8e4); border-color: rgba(0,0,0,.22); }
.mini-box[data-kind="photo"]::after { background: #fff; border: 2px solid rgba(255,255,255,.85); box-shadow: inset 0 0 0 3px #d98b2b; inset: 14% 14% 26% 14%; }
.mini-box[data-kind="full"] { background: linear-gradient(135deg, #7fb2d9, #e8962b); border-color: rgba(0,0,0,.22); }
.bx-photo.full { inset: 0; border: 0; box-shadow: none; }
.bx-title.on-photo { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); z-index: 2; }

/* état vide hors calendrier : fond gris + pièces, comme puzzleYOU */
body.not-advent .designer-canvas.is-empty { background: #c3c3c3; }
body.not-advent .designer-canvas.is-empty .puzzle-texture { opacity: 1; }
body.not-advent .designer-canvas.is-empty .canvas-placeholder svg { opacity: .55; color: #8f8f8f; }

/* =====================================================================
   Pages d'atterrissage (puzzle-photo, calendrier, cadeaux de Noël) — mise en page puzzleYOU
   ===================================================================== */
.btn-teal { background: #0e4d62; border-color: #0e4d62; border-radius: 3px; min-height: 46px; padding: 11px 32px; font-size: 18px; line-height: 24px; }
.btn-teal:hover { background: #0a3b4b; border-color: #0a3b4b; }
body.landing .btn-secondary { border-color: var(--border-dark); color: var(--text) !important; border-radius: 3px; }

/* Bloc produit */
.pd { max-width: 1240px; margin: 32px auto 0; padding: 0 15px; display: grid; grid-template-columns: minmax(0, 800px) minmax(0, 1fr); gap: 42px; align-items: center; }
.pd-gallery { min-width: 0; }
.pd-slider { overflow: hidden; aspect-ratio: 4/3; width: 100%; cursor: grab; }
.pd-track { display: flex; height: 100%; transition: transform .45s ease; }
.pd-slide { flex: 0 0 100%; height: 100%; }
.pd-slide img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; }
.pd-thumbs { display: flex; justify-content: center; gap: 23px; margin-top: 14px; }
.pd-thumbs button { width: 107px; height: 80px; padding: 0; border: 0; background: none; opacity: .55; transition: opacity .2s; }
.pd-thumbs button.active, .pd-thumbs button:hover { opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-dots { display: none; justify-content: center; gap: 14px; margin: 12px 0 4px; }
.pd-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: #c9c9c9; padding: 0; position: relative; }
.pd-dots button::after { content: ""; position: absolute; inset: -17px -6px; }
.pd-dots button.on { background: #444; }
.pd-info h1 { font-size: 32px; line-height: 1.1; margin: 0 0 18px; color: var(--text); }
.pd-info .rating-row { margin-bottom: 10px; }
.pd-info .feature-list { margin-bottom: 16px; }
.pd-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.pd-size { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: #fff; border: 2px solid #dedede; border-radius: 3px; font-size: 14px; color: var(--text-dark); line-height: 1; }
.pd-size:hover { border-color: #a9a9a9; }
.pd-size.active { border-color: #1a1a1a; font-weight: 600; }
.pill-smart { display: inline-block; background: #e6007e; color: #fff; font-size: 7px; font-weight: bold; line-height: 1; padding: 2px 3px; text-align: center; letter-spacing: 0; }
.pill-star { color: #f2b705; font-size: 22px; line-height: 1; }
.pd-sel { margin-bottom: 16px; }
.pd-sel-name { font-size: 16px; font-weight: 600; color: var(--text-dark); }
.pd-sel-dims { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 4px; }
.pd-i { display: inline-flex; width: 14px; height: 14px; border-radius: 50%; background: #8a8a8a; color: #fff; font-size: 10px; align-items: center; justify-content: center; font-weight: bold; cursor: help; }
.pd-price { margin: 12px 0 14px; font-size: 16px; }
.pd-price .price-old { font-size: 16px; }
.price-red { color: #b3001b; font-weight: bold; }
.pd-cta { display: inline-block; min-width: 260px; }
.pd-info .delivery-estimate { background: none; border: 0; padding: 0; margin: 8px 0 8px; font-size: 13px; }
.pd-info .delivery-estimate strong { color: #0e4d62; }
.pd-info .tax-note { font-size: 10px; line-height: 1.4; color: var(--text); margin-top: 6px; }
.legal-link { color: #0e4d62; font-weight: bold; text-decoration: underline; }

/* Sections */
.lp-section { padding: 44px 0; }
.lp-center { text-align: center; }
.lp-h2 { font-size: 40px; line-height: 1.15; margin: 0 0 18px; color: var(--text); text-align: center; }
.lp-h2.left { text-align: left; }
.lp-lead { max-width: 860px; margin: 0 auto; font-size: 15px; }
.lp-sub { font-family: var(--font-body); font-size: 20px; font-weight: 600; color: var(--text-dark); margin: 10px 0 10px; }
.lp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px; align-items: center; }
.lp-two.reverse > .lp-text { order: 2; }
.lp-two .lp-img img { width: 100%; display: block; border-radius: 3px; }
.lp-text .feature-list li { padding: 4px 0 4px 26px; }
.lp-price { font-size: 18px; margin: 14px 0; }
.lp-collapse { border-top: 1px solid #cfcfcf; margin: 18px 0; }
.lp-collapse-head { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 14px 8px; color: #0e6a8a; font-size: 14px; font-weight: bold; text-align: left; min-height: 48px; }
.lp-toggle { width: 14px; height: 2px; background: #0e6a8a; position: relative; }
.lp-collapse:not(.open) .lp-toggle::after { content: ""; position: absolute; left: 6px; top: -6px; width: 2px; height: 14px; background: #0e6a8a; }
.lp-collapse:not(.open) .lp-collapse-body { display: none; }
.lp-cards3 { grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 10px 0 18px; }
.lp-model { background: #fff; border: 1px solid #ececec; box-shadow: 0 1px 4px rgba(10,10,10,.07); padding: 22px 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lp-model:hover { border-color: var(--blue); }
.lp-model-img { display: block; width: 100%; }
.lp-model-img img { width: 100%; aspect-ratio: 4/3; object-fit: contain; display: block; }
.lp-model-cta { font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.lp-model.hidden { display: none; }
.lp-more { min-height: 44px; padding: 8px 26px; font-size: 14px; }
.lp-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 18px; }
.lp-products.three { max-width: 1240px; }
.lp-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text-dark); }
.lp-card-img { display: block; width: 100%; aspect-ratio: 4/3; background: #fff; overflow: hidden; }
.lp-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.lp-card:hover .lp-card-img img { transform: scale(1.03); }
.lp-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: normal; margin: 4px 0 0; color: var(--text-dark); }
.lp-card-price { font-size: 16px; color: var(--text-dark); }
.lp-card-price .price-old { font-size: 15px; }
.lp-acc { max-width: 980px; margin: 0 auto; }
.lp-details { border-bottom: 1px solid #e4e4e4; padding: 4px 0; }
.lp-details summary { list-style: none; cursor: pointer; padding: 14px 4px; font-size: 18px; color: var(--text-dark); font-weight: 600; display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.lp-details summary::-webkit-details-marker { display: none; }
.lp-details summary::after { content: "+"; font-size: 24px; color: #0e6a8a; font-weight: normal; }
.lp-details[open] summary::after { content: "−"; }
.lp-details h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; margin: 4px 0 8px; }
.lp-details p { font-size: 15px; margin-bottom: 16px; }
.lp-acc.how .lp-h2 { margin-bottom: 8px; }
.lp-acc.how .btn { margin: 26px 0 8px; }

@media (max-width: 949px) {
  .pd { grid-template-columns: 1fr; gap: 0; margin-top: 33px; padding: 0 0 70px; }
  .pd-slider { aspect-ratio: 4/3; }
  .pd-thumbs { display: none; }
  .pd-dots { display: flex; }
  .pd-info { padding: 0 12px; text-align: center; }
  .pd-info h1 { font-size: 26px; margin: 14px 0 14px; }
  .pd-info .rating-row { justify-content: center; }
  .pd-info .feature-list { text-align: left; max-width: 340px; margin: 0 auto 14px; }
  .pd-sizes { justify-content: center; }
  .pd-sel-dims { justify-content: center; }
  .pd-cta { display: none; }
  .pd-info .delivery-estimate { justify-content: center; text-align: center; }
  .pd-info .tax-note { text-align: center; }
  body.landing .mobile-cta-bar { display: flex; padding: 8px 8px; }
  body.landing .mobile-cta-bar .btn { width: 100%; }
  body.landing { padding-bottom: 66px; }
  .lp-h2 { font-size: 28px; }
  .lp-two { grid-template-columns: 1fr; gap: 20px; }
  .lp-two.reverse > .lp-text { order: 0; }
  .lp-cards3 { grid-template-columns: 1fr; gap: 14px; }
  .lp-products { grid-template-columns: 1fr; gap: 20px; }
  .lp-section { padding: 30px 0; }
}

/* ajustements fins fiche produit (cotes mesurées sur puzzleYOU à 1440 px) */
.btn-teal { padding: 10px 32px; }
.pd-size { padding: 0 8px; }
@media (min-width: 1270px) { .pd { padding: 0; } }

/* ---- Page calendrier de l'Avent ---- */
.hero.page { background-image: url("../img/hero/advent-page-desktop.jpg"); background-color: #3a2a22; }
.hero.page::before { background: rgba(0,0,0,.08); }
.hero.page .hero-content { max-width: 1322px; padding-top: 105px; }
.hero-title { font-size: 40px; line-height: 48px; max-width: 520px; margin: 0 0 18px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero-title span { display: block; }
.hero-sub { font-size: 16px; line-height: 25px; max-width: 480px; margin: 0 0 22px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero.page .btn-teal { height: 46px; line-height: 26px; padding: 10px 38px; color: #fff !important; }
.lp-intro { font-family: var(--font-body); font-size: 20px; font-weight: 600; color: var(--text); margin: 0 0 26px; }
.adv-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1140px; margin: 0 auto; }
.adv-tiles p { font-size: 14px; color: var(--text); margin: 8px 0 0; }
.adv-ico { display: inline-flex; width: 76px; height: 76px; border-radius: 50%; background: var(--blue-light); color: #0e6a8a; font-size: 30px; font-weight: bold; align-items: center; justify-content: center; font-family: var(--font-head); }
.adv-ico.big { width: 96px; height: 96px; font-size: 40px; }
.adv-usps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 26px; }
.adv-usps h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; margin: 14px 0 6px; }
.lp-sub.center { text-align: center; margin: 34px 0 14px; }
@media (max-width: 949px) {
  .hero.page { background-image: url("../img/hero/advent-page-mobile.jpg"); height: 560px; }
  .hero.page .hero-content { position: absolute; left: 0; right: 0; bottom: 24px; padding: 0 22px; text-align: center; max-width: none; }
  .hero-title { font-size: 30px; line-height: 36px; max-width: none; }
  .hero-sub { max-width: none; font-size: 15px; }
  .hero.page .btn-teal { width: 100%; display: block; }
  .adv-tiles { grid-template-columns: repeat(2, 1fr); }
  .adv-usps { grid-template-columns: 1fr; }
  body.advent-page .pd-info .pd-cta { display: none; }
}
@media (min-width: 950px) { .hero-title { max-width: none; } .hero-title span { white-space: nowrap; } }
.hero.page .btn-teal { min-width: 260px; }

/* ---- Page cadeaux de Noël ---- */
.cd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; text-align: left; }
.cd-tile { position: relative; display: block; overflow: hidden; background: #eee; }
.cd-tile.wide { grid-column: span 2; }
.cd-tile img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; display: block; aspect-ratio: 4/3; transition: transform .35s; }
.cd-tile.wide img { aspect-ratio: auto; }
.cd-tile:hover img { transform: scale(1.03); }
.cd-tile h2 { position: absolute; left: 14px; bottom: 10px; margin: 0; background: rgba(255,255,255,.92); color: #5f5f5f; font-family: var(--font-body); font-weight: 700; font-size: 13px; padding: 3px 18px 3px 10px; line-height: 1.3; }
.cd-pair { align-items: start; }
.lp-text.center { text-align: center; }
.lp-text.center .lp-img { margin-bottom: 16px; }
.lp-text .rating-row { margin: 6px 0 12px; }
@media (max-width: 949px) {
  .cd-tiles { grid-template-columns: 1fr; }
  .cd-tile.wide { grid-column: auto; }
  .cd-tile.wide img { aspect-ratio: 4/3; }
}

/* écrans intermédiaires : colonnes proportionnelles (pas de débordement) */
.pd-info { min-width: 0; }
@media (min-width: 950px) and (max-width: 1269px) {
  .pd { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 28px; padding: 0 15px; }
  .pd-cta { min-width: 0; width: 100%; }
}

/* Jeu de mémoire : zone de création */
.memo-maker { max-width: 980px; padding: 30px 15px 10px; }
.memo-drop { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0; flex-wrap: wrap; }
.memo-count { font-size: 14px; color: var(--text); }
.memo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 18px; }
.memo-thumb { position: relative; aspect-ratio: 1; background: #f3f3f3; border-radius: 3px; overflow: hidden; }
.memo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memo-thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.memo-title-field { display: block; max-width: 420px; margin: 0 auto 22px; font-size: 14px; color: var(--text-dark); }
.memo-title-field input { display: block; width: 100%; margin-top: 6px; height: 44px; padding: 0 12px; border: 1px solid #cfcfcf; border-radius: 3px; font: inherit; }

/* Cadeaux de Noël : hero 3 tuiles */
.cd-hero { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 18px; }
.cd-hero .cd-tile img { aspect-ratio: auto; min-height: 0; height: 100%; }
.cd-hero-main { grid-row: span 2; }
.cd-hero-main h2 { font-size: 16px; padding: 6px 22px 6px 14px; left: 0; bottom: 14px; }
.cd-hero .cd-tile h2.mid { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); font-size: 18px; text-align: center; width: 70%; padding: 6px 10px; }
@media (max-width: 949px) {
  .cd-hero { grid-template-columns: 1fr; grid-template-rows: auto; gap: 10px; }
  .cd-hero-main { grid-row: auto; }
  .cd-hero .cd-tile img { height: auto; aspect-ratio: 843/456; }
}

/* Calendrier de l'Avent : pictos illustrés */
.adv-img { width: 120px; height: auto; display: inline-block; }
.adv-img.big { width: 140px; }

/* Newsletter (pied de page) */
.newsletter { background: #fff; border-top: 1px solid #ececec; padding: 34px 15px 30px; }
.newsletter-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 36px; }
.newsletter-inner > img { flex: 0 0 auto; height: auto; }
.newsletter-form { flex: 1; min-width: 0; }
.newsletter-form h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; color: var(--text-dark); margin: 0 0 14px; }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input[type=email] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #cfcfcf; border-radius: 3px; font: inherit; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-msg { min-height: 20px; margin: 8px 0 0; font-size: 14px; }
.newsletter-msg.ok { color: #1c7c3b; } .newsletter-msg.err { color: #b3001b; }
.newsletter-legal { font-size: 11px; line-height: 1.45; color: #7a7a7a; margin: 6px 0 0; }
@media (max-width: 949px) {
  .newsletter-inner { flex-direction: column; gap: 14px; text-align: center; }
  .newsletter-row { flex-direction: column; }
}

/* modules repliables réservés au mobile (comme puzzleYOU : « hide-for-medium-up ») */
@media (min-width: 640px) { .lp-small-only { display: none; } }
.lp-collapse .lp-idea { margin: 8px 0 18px; }
.lp-products .lp-card.hidden { display: none; }
.lp-brandlogo { text-align: center; margin: 4px 0 18px; }
.lp-brandlogo img { max-width: min(400px, 80%); height: auto; }

/* /puzzle-photo/ : sur mobile, la ligne d'icônes et l'intro « Créer facilement… » sont remplacées par l'accordéon repliable (comme puzzleYOU) */
@media (max-width: 639px) {
  .lp-desktop-only { display: none; }
  body.page-puzzle-photo .usp-row { display: none; }
}
.lp-usp-list { display: grid; gap: 14px; padding: 8px 8px 16px; }
.lp-usp-list .usp-item { display: flex; align-items: center; gap: 22px; font-size: 16px; color: var(--text-dark); }
.lp-usp-list .usp-item img { width: 26px; height: 26px; flex-shrink: 0; }

/* ---- pages d'information : garantie, boîte, cadres, pêle-mêle (équivalents des pages puzzleYOU) ---- */
.pg-hero { max-width: 1250px; margin: 0 auto; }
.pg-hero img { width: 100%; height: auto; display: block; }
.pg-prose { max-width: 1000px; margin-left: auto; margin-right: auto; padding-bottom: 20px; }
.pg-prose > p, .pg-prose .lp-lead { font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.pg-prose h1.lp-h2 { margin-top: 36px; }
.pg-prose .lp-h2 { margin-top: 36px; }
.pg-prose .lp-sub.center { text-align: center; margin: 22px 0 14px; }
.pg-prose .feature-list { max-width: 760px; margin: 8px auto 18px; }
.pg-center-list { max-width: 460px !important; }
.pg-tag { font-size: 26px; margin: 24px 0 0; }
.pg-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 18px 0 8px; }
.pg-two img { width: 100%; height: auto; border-radius: 3px; }
.pg-box { max-width: 560px; margin: 22px auto 10px; padding: 22px 24px 18px; border: 1px solid #d8d8d8; background: #fff; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.pg-box .pg-h1 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; }
.pg-box .delivery-estimate { justify-content: center; margin: 14px 0 6px; }
.pg-box .tax-note { text-align: center; margin: 6px 0 0; }
.pg-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0 10px; }
.pg-frames { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin: 10px 0 30px; }
.pg-frame { text-align: center; }
.pg-frame img { width: 250px; max-width: 100%; height: auto; }
.pg-frame .feature-list { text-align: left; max-width: 420px; margin: 10px auto 18px; }
.pg-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 10px 0 26px; }
.pg-cats a { text-align: center; color: var(--text-dark); font-size: 14px; }
.pg-cats img { width: 100%; max-width: 120px; height: auto; display: block; margin: 0 auto 8px; }
.pg-cat { margin: 14px 0 34px; scroll-margin-top: 90px; }
.pg-banner { width: 100%; height: auto; display: block; margin: 0 0 16px; border-radius: 3px; }
.pg-benefits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 10px 0 26px; text-align: center; }
.pg-benefits img { width: 100%; max-width: 110px; height: auto; display: block; margin: 0 auto 8px; }
.pg-benefits span { font-size: 14px; }
.pg-slider { position: relative; margin: 14px 0 26px; }
.pg-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pg-track::-webkit-scrollbar { display: none; }
.pg-slide { flex: 0 0 100%; scroll-snap-align: start; }
.pg-slide img { width: 100%; height: auto; display: block; }
.pg-boxes .pg-slide { flex-basis: calc((100% - 28px) / 3); }
.pg-prev, .pg-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 1px 6px rgba(0,0,0,.3); font-size: 26px; line-height: 1; cursor: pointer; }
.pg-prev { left: 6px; } .pg-next { right: 6px; }
.pg-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.pg-dots button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #fff; background: rgba(0,0,0,.35); color: #fff; font-size: 12px; cursor: pointer; }
.pg-dots button.on { background: #0e6a8a; }
@media (max-width: 639px) {
  .pg-two, .pg-tiles, .pg-frames { grid-template-columns: 1fr; }
  .pg-cats { grid-template-columns: repeat(3, 1fr); }
  .pg-benefits { grid-template-columns: repeat(3, 1fr); }
  .pg-boxes .pg-slide { flex-basis: 100%; }
  .pg-box .pg-h1 { font-size: 24px; }
  .pg-tag { font-size: 20px; }
}
