@import url(https://db.onlinewebfonts.com/c/5bb323e95d4ed7f852d770c7666985c9?family=BookmanJFPro+Regular);

:root {
  /* --bg: #f7f2c4; */
  --bg: #ffffc9;
  /* --bg: green; */
  --bg-alt: #f2ecb0;
  --ink: #1c1a12;
  --line: #1c1a12;
  --muted: #6b6a55;
  --accent: #d98c2b;
  --white: #fffdf0;
  --radius: 10px;
  /* --max-width: calc(100% - 80px); */
  --max-width: 100%;
  --font-bookman: 'BookmanJFPro Regular', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  /* Hauteur réelle du header, mesurée en JS (voir js/main.js) — cette
     valeur de repli sert le temps que la page charge, ou si JS est
     désactivé. */
  --header-h: 132px;
  /* Hauteur du header une fois rétréci (.is-scrolled), figée : ne
     change PAS avec le scroll. Sert au calcul des sections et au
     scroll-padding-top, pour que les ancres (#a-propos...) atterrissent
     pile sous le header tel qu'il sera réellement affiché une fois
     arrivé. Mesurée en JS via un clone caché du header (voir
     js/main.js) ; la valeur ici n'est qu'un repli. */
  --header-h-compact: 96px;
  --footer-height: 60px;
}

* {
  box-sizing: border-box;
}

body,
button,
.btn {
  font-variant-emoji: text;
}

.caps {
  font-feature-settings: "aalt";
}

html {
  scroll-behavior: smooth;
  /* Le header est fixed et masque le haut de la page : sans ça, un
     clic sur la flèche (ou un lien #ancre) aligne la section pile sous
     le header au lieu de l'aligner dessous, et on "saute" trop bas. */
  scroll-padding-top: var(--header-h-compact);
}

body {
  margin: 0;
  /* Compense le header qui passe en position fixed : sans ça, le
     contenu se retrouverait masqué sous le header au chargement. */
  padding-top: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* //////////////////////////////////// */
/* ///////////// SCROLLBAR //////////// */
/* //////////////////////////////////// */
.scrollbar-autorisee::-webkit-scrollbar {
  width: 5px;
}

.scrollbar-autorisee::-webkit-scrollbar-thumb {
  background-color: black;
  border-radius: 20px;
}


/* ---------- Header ---------- */

.site-header {
  /* border-bottom: 1.5px solid var(--line); */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  font-family: var(--font-bookman);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Plus grand par défaut (arrivée sur le site) ; le JS ajoute
     .is-scrolled sur .site-header dès qu'on scrolle, ce qui réduit ce
     padding (voir plus bas) pour un header plus compact. */
  padding: 48px 35px;
  display: grid;
  grid-template-columns: 2fr 7fr 2fr;
  align-items: center;
  gap: 35px;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  padding: 18px 35px;
}

.site-header.is-scrolled {
  background: var(--bg);
  border-bottom: 1.5px solid var(--line);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left a,
.nav-right a {
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.nav-left a:hover,
.nav-right a:not(.cart-link):hover,
.nav-left a.active,
.nav-right a:not(.cart-link).active {
  border-color: var(--ink);
}

.brand {
  text-align: center;
}

.brand-logo {
  font-family: var(--font-bookman);
  /* Grand à l'arrivée sur le site, réduit dès qu'on scrolle (règle
     .is-scrolled juste en dessous, classe posée par js/main.js). */
  font-size: clamp(3.2rem, 6.5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1;
  transition: font-size 0.25s ease;
}

.site-header.is-scrolled .brand-logo {
  font-size: clamp(2.4rem, 4vw, 2.8rem);
}

.brand-logo a {
  text-decoration: none;
}

.brand-tagline {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}

.cart-count {
  display: none;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.7rem;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-count.visible {
  display: inline-flex;
}

.nav-toggle {
  display: none;
}

/* Desktop : le wrapper du menu est "transparent" et les blocs de
   navigation se placent de chaque côté du logo. Les actions mobiles
   (panier + 3 barres) sont cachées. */
.nav-panel {
  display: contents;
}

.nav-left {
  grid-column: 1;
  grid-row: 1;
}

.brand {
  grid-column: 2;
  grid-row: 1;
}

.nav-right {
  grid-column: 3;
  grid-row: 1;
}

.header-mobile-actions {
  display: none;
}

.panier {
  max-width: inherit;
  width: 44px;
  height: 24px;
}


.header-autres-pages {
  background: var(--bg);
  border-bottom: 1.5px solid var(--line);
}

.header-autres-pages .header-inner {
  padding: 18px 35px;
}

.site-header.is-scrolled {
  background: var(--bg);
  border-bottom: 1.5px solid var(--line);
}

.header-autres-pages .brand-logo {
  font-size: clamp(2.4rem, 4vw, 2.8rem);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

button {
  background: none;
  border: none;
}




/* ---------- Sections generic ---------- */

section {
  border-bottom: 1.5px solid var(--line);
  /* Toutes les sections (accueil, commander, faq, contact...) font
     exactement la hauteur de l'écran moins le header — calculée avec
     --header-h-compact (la taille "scrollée" du header, fixe), pas
     avec --header-h qui change de valeur quand le header rétrécit.
     Sinon toutes les sections bougeraient de taille pendant qu'on
     scrolle. Le contenu qui ne rentre pas déborde plutôt que d'être
     recadré. */
  height: calc(100vh - var(--header-h-compact));
}

/* ---------- Scroll "section par section" (page d'accueil) ----------
   Le défilement section par section de la home est géré en JS (voir
   js/main.js), pas en CSS scroll-snap : le scroll-snap natif
   (mandatory ou proximity) se bloque trop facilement selon le
   matériel (souris classique en petits clics espacés, notamment),
   contrairement à une interception directe de la molette en JS, qui
   est fiable quel que soit l'appareil. */

.section-inner {
  max-width: var(--max-width);
  margin: 0;
  /* padding: 80px 40px; */
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-bookman);
  font-weight: 500;
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  /* Même hauteur que toutes les autres sections (voir la règle
     générique `section` plus haut) — redéfinie ici explicitement pour
     la lisibilité, avec --header-h-compact pour que toutes les
     sections de la home fassent exactement la même hauteur (important
     pour le scroll-snap ci-dessous). */
  height: 100vh;
  display: flex;
  padding-top: var(--header-h);
}

.hero .section-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-figurines {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.hero-figurines img {
  max-width: 100%;
  /* Volontairement pas de max-height ici : la photo peut déborder de
     la section hero (comportement voulu). */
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.hero-tagline {
  display: none;
}

.scroll-apropos {
  display: block;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
}

.scroll-apropos .fleche {
  height: 55px;
  transition: transform 0.2s ease;
}

.scroll-apropos .fleche:hover {
  cursor: pointer;
  transform: translateY(5px);
}

/* ---------- About / scroll section ---------- */

.about-section {
  min-height: calc(100vh - var(--header-h-compact));
  /* Pas de max-width/centrage ici (contrairement à .section-inner) :
     la section prend toute la largeur de l'écran, pour que la photo
     touche vraiment le bord gauche, comme sur la maquette. */
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-photo {
  /* .about-photo est directement la balise <img> : object-fit la fait
     se comporter comme un fond "cover" (recadrée, sans déformation,
     sans déborder de sa colonne). */
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.about-text {
  display: flex;
  align-items: center;
  padding: 60px;
  margin: 0 auto;
  font-family: var(--font-bookman);
}

.about-text p {
  font-size: 1.15rem;
  max-width: 420px;
}

/* ---------- Le principe ---------- */

.principe-section {
  height: calc(100vh - var(--header-h-compact));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.principe-header {
  text-align: center;
  border-bottom: 1.5px solid var(--line);
  padding: 28px 0;
  height: 95px
}

.principe-header h2 {
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.principe-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.principe-step {
  padding: 44px 28px;
  border-right: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  text-align: center;
  height: calc(100vh - var(--header-h-compact) - 95px - 95px - var(--footer-height));
}

.principe-step:last-child {
  border-right: none;
}

.step-number {
  font-family: var(--font-bookman);
  font-size: 2rem;
  margin-bottom: 6px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-family: var(--font-bookman);
}

.step-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.principe-step img {
  border-radius: 8px;
  max-width: 70%;
  margin: 0 auto;
}

.principe-step:last-child img {
  max-width: 50%;
}

.bubble {
  text-align: left;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.8rem;
  max-width: 220px;
  margin-bottom: 10px;
}

.bubble.dark {
  background: var(--ink);
  color: var(--bg);
  border-bottom-left-radius: 2px;
  margin-top: 30px;
}

.bubble.light {
  background: transparent;
  border: 1.5px solid var(--line);
  border-bottom-right-radius: 2px;
  margin-left: auto;
}

.principe-cta {
  text-align: center;
  padding: 20px 40px;
  height: 95px;
}

/* ---------- Placeholder image blocks (à remplacer par vraies photos) ---------- */

.placeholder-img {
  background: repeating-linear-gradient(45deg,
      var(--bg-alt),
      var(--bg-alt) 10px,
      var(--bg) 10px,
      var(--bg) 20px);
  border: 1px dashed var(--muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 8px;
  min-height: 140px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 10px 30px 10px 10px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
  height: var(--footer-height);
  align-items: center;
  background-color: var(--bg);
  border-top: 1.5px solid var(--line);
  width: 100vw;
}

.site-footer .container {
  align-items: center;
  float: right;
  padding: 0;
  height: 100%;
  display: flex;
}

.site-footer .container p {
  margin: 0;
  padding: 0;
}

/* ---------- Commander page ---------- */

.products-section {
  height: calc(100vh - var(--header-h-compact) - var(--footer-height));
  border-bottom: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  margin-top: var(--header-h-compact);
}

.products-grid img {
  width: 80%;
  margin: auto;
}

.product-col-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: calc(100vh - var(--header-h-compact) - var(--footer-height));
  overflow-y: scroll;
  border-left: 1.5px solid var(--line);
}

.product-card {
  padding: 35px;
  display: flex;
  flex-direction: column;
  /* gap: 18px; */
  height: calc(100vh - var(--header-h-compact) - var(--footer-height));
}

.product-col-right .product-card {
  /* height: calc((100vh - var(--header-h-compact) - var(--footer-height)) / 3); */
  height: 35vh;
  border-bottom: 1.5px solid var(--line);
  margin: 0 auto;
}

.products-grid .product-col-right .product-card:last-child {
  border-bottom: 0;
}

.products-grid .product-card:nth-child(2) {
  border-right: none;
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.plusieurs-badge {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card-description {
  margin-top: auto;
  display: grid;
  gap: 20px;
  grid-template-columns: 2.2fr 1fr auto;
  align-items: flex-end;
}

.product-card-mariage {
  /* Le bloc prend toute la hauteur restante de la carte, et ses 3 lignes
     se partagent cet espace : texte (auto) / photo (le reste) / prix+bouton
     (auto). minmax(0, 1fr) + min-height: 0 = la photo se réduit pour
     tenir dans sa ligne au lieu de déborder sur le texte. */
  flex: 1;
  min-height: 0;
  margin-top: 0;
  display: grid;
  gap: 20px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.product-card-mariage .product-photo {
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card-mariage .product-photo img {
  /* Remplit la ligne (hauteur ET largeur max) sans jamais la dépasser,
     et sans déformer la photo. */
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.product-card-description-sans-img {
  grid-template-columns: 2fr auto;
}

.product-card h3 {
  font-size: 1.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.product-card .product-photo {
  max-width: 100%;
}

.product-col-right .product-card .product-photo img {
  max-height: 22vh;
  max-width: inherit;
  width: auto;
  margin: 0 auto;
}

.product-desc {
  color: var(--ink);
  max-width: 100%;
  flex-grow: 1;
}

.product-desc .details-description {
  /* text-transform: uppercase; */
  font-variant-caps: small-caps;
  font-variant-numeric: oldstyle-nums;
}

.product-desc .details-description .chiffre {
  font-size: 0.73em;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-top: auto;
}

.product-col-right .product-footer {
  flex-direction: column;
}

.price {
  font-family: var(--font-bookman);
  font-size: 1.4rem;
}

/* ---------- FAQ page ---------- */

.faq-section {
  height: calc(100vh - var(--header-h) - var(--footer-height));
  border-bottom: 0;
  margin-top: var(--header-h-compact);
}

.faq-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
}

.faq-title-col {
  padding: 40px 40px;
  border-right: 1.5px solid var(--line);
}

.faq-title-col h1 {
  font-size: 5rem;
}

.faq-content {
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  height: calc(100vh - var(--header-h) - var(--footer-height));
  overflow-y: scroll;
}


.faq-group h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.faq-group {
  margin-bottom: 40px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-radius 0.15s ease;
}

.faq-item.open {
  border-radius: 20px;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question .chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 0.9rem;
  color: var(--muted);
}

.faq-answer-inner {
  padding: 0 20px 16px;
}

/* ---------- Contact page ---------- */

.contact-section {
  height: calc(100vh - var(--header-h) - var(--footer-height));
  border-bottom: 0;
  margin-top: var(--header-h-compact);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info {
  padding: 40px 40px;
  border-right: 1.5px solid var(--line);
  height: calc(100vh - var(--header-h) - var(--footer-height));
}

.contact-info h1 {
  margin-bottom: 20px;
  font-size: 5rem;
}

.contact-info p {
  color: var(--muted);
  max-width: 380px;
}

.contact-detail {
  margin-top: 32px;
}

.contact-detail dt {
  font-weight: 600;
  margin-top: 16px;
}

.contact-detail dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.contact-form {
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-section .btn {
  width: fit-content;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Page À propos ---------- */

.apropos-section {
  /* Contenu plus long qu'un écran possible : hauteur libre (au lieu
     de la hauteur fixe de la règle `section`), avec un minimum pour
     que la page remplisse l'écran. */
  height: calc(100vh - var(--header-h-compact) - var(--footer-height));
  margin-top: var(--header-h-compact);
  border-bottom: 0;
}

.apropos-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: inherit;
  height: calc(100vh - var(--header-h-compact) - var(--footer-height));

}

.apropos-photo-col {
  border-right: 1.5px solid var(--line);
  height: calc(100vh - var(--header-h-compact) - var(--footer-height));

}

.apropos-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  border: 0;
}

.apropos-text {
  padding: 60px;
  margin: 0 auto;
  overflow-y: scroll;
}

.apropos-text h1 {
  font-size: 3rem;
  margin-bottom: 28px;
}

.apropos-text h2 {
  font-size: 1.3rem;
  margin: 28px 0 8px;
}

.apropos-text p {
  margin: 0 0 12px;
}

.apropos-text .btn {
  margin-top: 24px;
}

/* ---------- Page CGV ---------- */

.legal-page {
  max-width: 820px;
  margin: var(--header-h-compact) auto 0;
  padding: 60px 40px;
}

.legal-page h1 {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 32px 0 8px;
}

.legal-page p {
  margin: 0 0 12px;
}

.legal-update {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Passages à compléter par toi : surlignés pour ne pas les oublier.
   Une fois remplis, retire simplement la classe "a-completer". */
.a-completer {
  background: #ffe36e;
  outline: 1px dashed var(--accent);
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  border-bottom-color: currentColor;
}

/* ---------- Cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 18, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 90;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--bg);
  border-left: 1.5px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 91;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1.5px solid var(--line);
}

.cart-drawer-header h2 {
  font-size: 1.3rem;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
}

.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1.5px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 16px;
}

.cart-footer .btn {
  width: 100%;
  justify-content: center;
}

.cart-footer .form-field {
  margin-bottom: 14px;
}

.cart-status {
  margin-top: 10px;
  margin-bottom: 0;
  min-height: 1em;
}

/* ---------- Panier : livraison + récapitulatif ---------- */

.cart-drawer {
  /* Tout le panier défile d'un bloc (articles + formulaire + paiement). */
  overflow-y: auto;
}

.cart-items {
  flex: 0 0 auto;
  overflow: visible;
  min-height: 90px;
}

.cart-footer {
  flex: 0 0 auto;
}

.cart-footer select {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
}

.cart-footer .form-field input {
  width: 100%;
  box-sizing: border-box;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
}

.form-row .form-field {
  min-width: 0;
}

.shipping-note {
  margin: 4px 0 0;
}

.shipping-address[hidden],
.shipping-note[hidden] {
  display: none;
}

.cart-summary {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 6px 0 8px;
}

.cart-summary>div {
  display: flex;
  justify-content: space-between;
}

/* ---------- Popup d'options (page Commander) ---------- */

.option-modal {
  border: 1.5px solid var(--line);
  border-radius: 14px 5px 5px 14px;
  background: var(--bg);
  color: var(--ink);
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
  font-family: var(--font-body);
}

.option-modal::backdrop {
  background: rgba(28, 26, 18, 0.45);
}

.option-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-modal-header h2 {
  font-size: 1.4rem;
}

.option-form .form-note {
  margin: 0;
}

.option-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.option-choice:has(input:checked) {
  background: var(--ink);
  color: var(--bg);
}

.option-choice input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin: 0;
}

.option-price {
  font-family: var(--font-bookman);
}

.option-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding-top: 6px;
}

.option-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ---------- Pages succès / annulation + dépôt de photos ---------- */

.status-section {
  height: auto;
  min-height: calc(100vh - var(--header-h-compact) - var(--footer-height));
  margin-top: var(--header-h-compact);
  border-bottom: 0;
}

.status-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.status-detail {
  font-size: 1rem;
  margin-top: 16px;
}

.status-back {
  margin-top: 32px;
}

.photos {
  text-align: left;
  margin-top: 40px;
  border-top: 1.5px solid var(--line);
  padding-top: 32px;
}

.photos[hidden] {
  display: none;
}

.photos h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.photo-card {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.photo-card h3 {
  font-size: 1.2rem;
}

.photo-card .form-note {
  margin: 0;
}

.photo-card .btn {
  align-self: flex-start;
}

/* ---------- Photos dans le popup ---------- */
[data-options-group][hidden],
.option-error[hidden],
.photo-group[hidden] {
  display: none;
}

.option-group,
.photo-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-group h3,
.photo-group h3 {
  font-size: 1.05rem;
  margin: 4px 0 0;
}

.photo-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.photo-add {
  cursor: pointer;
}

.photo-add input[type=file] {
  display: none;
}

.photo-counter {
  font-size: 0.9rem;
  color: var(--muted, #6b6657);
}

.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.photo-previews:empty {
  display: none;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb-name {
  font-size: 0.7rem;
  padding: 4px;
  text-align: center;
  word-break: break-all;
}

.photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 26, 18, .75);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.photo-group textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: transparent;
  resize: vertical;
  box-sizing: border-box;
}

.photo-skip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  cursor: pointer;
}

.option-error {
  margin: 0;
  color: #a3261c;
  font-size: 0.92rem;
}


/* ============================================================
   Responsive mobile / tablette (≤ 900px)
   Tout ce qui est en dessous ne s'applique qu'en dessous de 900px :
   le desktop n'est pas modifié. (900px = même seuil que le JS.)
   ============================================================ */

@media (max-width: 900px) {
  :root {
    /* Repli si le JS n'a pas encore mesuré : header mobile ~ 64px,
       identique avant/après scroll (il ne rétrécit plus). */
    --header-h: 64px;
    --header-h-compact: 64px;
    --footer-height: 0px;
  }

  /* ----- Header : titre à gauche, panier + 3 barres à droite ----- */

  .site-header,
  .site-header.is-scrolled {
    background: var(--bg);
    border-bottom: 1.5px solid var(--line);
  }

  .header-inner,
  .site-header.is-scrolled .header-inner,
  .header-autres-pages .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 20px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  .brand-logo,
  .site-header.is-scrolled .brand-logo,
  .header-autres-pages .brand-logo {
    font-size: 1.9rem;
    letter-spacing: 0.05em;
  }

  .brand-tagline {
    display: none;
  }

  .header-mobile-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* 3 barres -> croix quand le menu est ouvert */
  .site-header.menu-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Panneau déroulant sous le header */
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1.5px solid var(--line);
    padding: 8px 20px 16px;
  }

  .site-header.menu-open .nav-panel {
    display: block;
  }

  .nav-left,
  .nav-right {
    grid-column: auto;
    grid-row: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 1.05rem;
  }

  .nav-left a,
  .nav-right a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-right a:last-child {
    border-bottom: 0;
  }

  /* Le panier du panneau est remplacé par celui du header */
  .nav-right .cart-link {
    display: none;
  }

  /* ----- Sections : hauteur naturelle, tout se suit ----- */

  section,
  .products-section,
  .faq-section,
  .contact-section,
  .apropos-section {
    height: auto;
  }

  .scrollbar-autorisee,
  .faq-content,
  .apropos-text,
  .product-col-right {
    height: auto;
    overflow: visible;
  }

  .section-inner {
    padding: 0 20px;
  }

  /* ----- Footer : en bas de page, plus fixe ----- */

  .site-footer {
    position: static;
    height: auto;
    width: 100%;
    padding: 18px 20px;
    text-align: center;
  }

  .site-footer .container {
    float: none;
    display: block;
    height: auto;
  }

  /* ----- Accueil ----- */

  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: var(--header-h);
    border-bottom: 1.5px solid var(--line);
  }

  .hero .section-inner {
    padding: 20px 20px 16px;
    align-items: center;
    min-height: calc(100svh - var(--header-h));
  }

  .hero-tagline {
    display: block;
    margin: 4px 0 0;
    font-family: var(--font-bookman);
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .hero-figurines {
    flex: 1 1 auto;
    overflow: visible;
    width: 100%;
    max-width: 560px;
    align-items: center;
  }

  .hero-figurines img {
    width: 100%;
    max-height: 62svh;
    object-fit: contain;
  }

  .scroll-apropos {
    position: static;
    transform: none;
    margin: 0 auto;
    background: transparent;
    border: 0;
    padding: 8px;
    flex: 0 0 auto;
  }

  .scroll-apropos .fleche {
    height: 44px;
  }

  .about-section {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .about-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .about-text {
    padding: 36px 20px;
    margin: 0;
  }

  .about-text p {
    max-width: none;
    font-size: 1.1rem;
  }

  .principe-section {
    display: block;
  }

  .principe-header {
    height: auto;
    padding: 24px 20px;
  }

  .principe-steps {
    grid-template-columns: 1fr;
  }

  .principe-step {
    height: auto;
    padding: 32px 20px;
    border-right: 0;
  }

  .principe-step:last-child {
    border-bottom: 1.5px solid var(--line);
  }

  .principe-step img {
    max-width: 60%;
  }

  .principe-step .placeholder-img {
    max-width: 280px;
    margin: 0 auto;
  }

  .bubble {
    max-width: 100%;
  }

  .principe-cta {
    height: auto;
    padding: 28px 20px;
  }

  /* ----- Commander ----- */

  .products-grid {
    grid-template-columns: 1fr;
    margin-top: var(--header-h-compact);
  }

  .product-card,
  .product-col-right .product-card {
    height: auto;
    margin: 0;
    padding: 32px 20px;
    gap: 16px;
    border-right: 0;
  }

  .product-col-right {
    display: block;
    border-left: 0;
    border-top: 1.5px solid var(--line);
  }

  .product-col-right .product-card {
    border-bottom: 1.5px solid var(--line);
  }

  .product-card-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .product-card h3 {
    font-size: 1.7rem;
  }

  .badge {
    white-space: normal;
    border-radius: 18px;
  }

  .product-card-mariage {
    flex: none;
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }

  .product-card-description,
  .product-card-description-sans-img {
    margin-top: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .product-card-mariage .product-photo img,
  .product-col-right .product-card .product-photo img {
    max-height: 320px;
    width: auto;
    height: auto;
    max-width: 100%;
  }

  .product-col-right .product-card .product-photo {
    display: flex;
    justify-content: center;
  }

  .product-footer,
  .product-col-right .product-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
  }

  /* ----- FAQ ----- */

  .faq-section {
    margin-top: var(--header-h-compact);
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-title-col {
    padding: 28px 20px 8px;
    border-right: 0;
  }

  .faq-title-col h1 {
    font-size: 3.4rem;
  }

  .faq-content {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 20px 32px;
  }

  .faq-group {
    margin-bottom: 24px;
  }

  /* ----- Contact ----- */

  .contact-section {
    margin-top: var(--header-h-compact);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    height: auto;
    padding: 28px 20px;
    border-right: 0;
    border-bottom: 1.5px solid var(--line);
  }

  .contact-info h1 {
    font-size: 3.4rem;
  }

  .contact-form {
    padding: 28px 20px 36px;
  }

  .form-field input,
  .form-field textarea,
  .form-field select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* ----- À propos ----- */

  .apropos-section {
    margin-top: var(--header-h-compact);
  }

  .apropos-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .apropos-photo-col {
    height: auto;
    border-right: 0;
    border-bottom: 1.5px solid var(--line);
  }

  .apropos-photo {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .apropos-text {
    padding: 28px 20px 36px;
    margin: 0;
  }

  .apropos-text h1 {
    font-size: 2.4rem;
  }

  /* ----- CGV ----- */

  .legal-page {
    padding: 28px 20px 36px;
  }

  .legal-page h1 {
    font-size: 2rem;
  }

  .status-section {
    height: auto;
    min-height: 0;
    margin-top: var(--header-h-compact);
  }

  .status-inner {
    padding: 36px 20px;
  }
}

@media (max-width: 480px) {

  .header-inner,
  .site-header.is-scrolled .header-inner,
  .header-autres-pages .header-inner {
    padding: 10px 16px;
  }

  .brand-logo,
  .site-header.is-scrolled .brand-logo,
  .header-autres-pages .brand-logo {
    font-size: 1.6rem;
  }

  .nav-panel {
    padding: 8px 16px 16px;
  }

  .product-footer,
  .product-col-right .product-footer {
    flex-wrap: wrap;
  }
}