/* ============================================================
   Atelier by Perry — pages.css
   Styles spécifiques : header, footer, drawer, hero, sections,
   produits, FAQ, contact, légal.
   ============================================================ */

/* ── Site Header ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.site-header--scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 80px;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 80px;
  justify-content: flex-end;
}

/* Burger */
.site-header__burger {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger-bar {
  width: 16px;
  height: 1.5px;
  background: var(--text);
  display: block;
  transition: background 0.15s;
}

.burger-bar--short { width: 10px; }

.site-header__back {
  font-size: 16px;
  color: inherit;
}

.site-header__menu-label {
  font-size: 11px;
  letter-spacing: 0.22em;
}

/* Logo centré */
.site-header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.site-header__logo-name {
  font-size: 20px;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.site-header__logo-sub {
  font-size: 7px;
  letter-spacing: 0.32em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.site-header__logo-line {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--gold);
  margin: 1px auto 0;
}

/* Theme toggle */
.site-header__theme-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--gold);
  position: relative;
}

/* Afficher soleil en dark, lune en light */
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none;  }
[data-theme="light"] .icon-sun  { display: none;  }
[data-theme="light"] .icon-moon { display: block; }
/* fallback si data-theme pas encore posé */
.icon-sun  { display: none; }
.icon-moon { display: block; }

.site-header__lang {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.site-header__cart {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.site-header__cart-count {
  font-size: 11px;
}

/* ── Drawer ──────────────────────────────────────────────── */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 999;
}

.drawer-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 380px;
  max-width: 85vw;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.menu-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.menu-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.menu-drawer__logo {
  font-size: 20px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: inherit;
}

.menu-drawer__close {
  padding: 8px 12px;
  font-size: 18px;
}

.menu-drawer__nav {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-drawer__link {
  display: block;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: inherit;
}

.menu-drawer__footer {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}

.menu-drawer__legal {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.menu-drawer__legal-link {
  color: var(--text-mute);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.menu-drawer__address {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.6;
}

.menu-drawer__copy {
  margin-top: 8px;
}

/* Scrolllock quand drawer ouvert */
body.drawer-is-open {
  overflow: hidden;
}

/* ── Site Footer ─────────────────────────────────────────── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* Mobile */
.site-footer--mobile {
  display: none;
  padding: 28px 24px;
}

.site-footer__logo-mobile {
  font-size: 16px;
  letter-spacing: 0.18em;
  text-align: center;
  font-weight: 500;
}

.site-footer__mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-soft);
}

.site-footer__contact-mobile {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.7;
}

/* Desktop */
.site-footer--desktop {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 60px;
  font-size: 13px;
  color: var(--text-soft);
}

.site-footer__logo-desktop {
  font-size: 20px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--text);
}

.site-footer__logo-sub {
  font-size: 7px;
  letter-spacing: 0.32em;
  color: var(--text-mute);
  margin-top: 2px;
}

.site-footer__address {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.7;
}

.site-footer__col-title {
  color: var(--text-mute);
  margin-bottom: 14px;
}

.site-footer__link {
  display: block;
  padding: 5px 0;
  color: inherit;
}

.site-footer__copy {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-mute);
}

.site-footer__credit {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  opacity: 0.55;
}

@media (max-width: 767px) {
  .site-header {
    padding: 12px 18px;
  }

  .site-header__logo-name {
    font-size: 16px;
  }

  .site-header__logo-sub,
  .site-header__lang {
    display: none;
  }

  .site-header__theme-toggle {
    width: 28px;
    height: 28px;
  }

  .site-header__right {
    gap: 10px;
  }

  .site-footer--mobile  { display: block; }
  .site-footer--desktop { display: none;  }
}

/* ── Hero Landing ────────────────────────────────────────── */

.hero-landing__mobile  { display: none; }
.hero-landing__desktop { display: flex; flex: 1; overflow: hidden; }

.hero-landing__left {
  padding: 60px 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  flex: 1.05;
}

.hero-landing__eyebrow {
  color: var(--gold);
}

.hero-landing__title-desktop {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.96;
  font-weight: 300;
  margin: 18px 0 0;
}

.hero-landing__title-em {
  font-style: italic;
  color: var(--gold);
}

.hero-landing__desc-desktop {
  margin-top: 28px;
  max-width: 480px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-landing__buttons {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-landing__stats {
  display: flex;
  gap: 42px;
}

.hero-landing__stat-num {
  font-size: 28px;
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
}

.hero-landing__stat-label {
  color: var(--text-mute);
  margin-top: 4px;
}

.hero-landing__visual {
  flex: 1;
  position: relative;
  background: var(--viewer);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-landing__visual-inner {
  width: 260px;
  height: 260px;
  background: var(--gold-glow);
  border-radius: 50%;
}

.hero-landing__visual-label {
  position: absolute;
  top: 50px;
  right: 50px;
  text-align: right;
}

.hero-landing__price-wrap {
  position: absolute;
  bottom: 50px;
  left: 50px;
}

/* Badges */
.hero-landing__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 14px 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .hero-landing__desktop { display: none; }
  .hero-landing__mobile  { display: block; }

  .hero-landing__text-block {
    padding: 22px 24px 14px;
  }

  .hero-landing__title {
    font-size: 40px;
    line-height: 0.98;
    font-weight: 300;
    margin: 10px 0 0;
  }

  .hero-landing__desc {
    margin-top: 14px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
  }

  .hero-landing__image-wrap {
    flex: 0 0 320px;
    height: 320px;
    background: var(--viewer);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-landing__image-placeholder {
    width: 200px;
    height: 200px;
    background: var(--gold-glow);
    border-radius: 50%;
  }

  .hero-landing__cta-mobile {
    padding: 18px 24px 28px;
  }

  .hero-landing__cta-btn {
    width: 100%;
    padding: 17px;
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .hero-landing__badges {
    gap: 16px;
    padding: 14px 24px;
    font-size: 9px;
  }
}

/* ── Sections landing ────────────────────────────────────── */

.section-eyebrow {
  color: var(--gold);
}

/* Atelier */
.section-atelier {
  padding: 96px 60px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.section-atelier__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.section-atelier__heading {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 300;
  margin: 0 0 24px;
}

.section-eyebrow {
  margin-bottom: 20px;
}

.section-atelier__body {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 18px;
}

.section-atelier__visual {
  position: relative;
  min-height: 480px;
  background: var(--viewer);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  padding: 24px;
}

/* Personnalisation */
.section-perso {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-perso__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.section-perso__heading {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 300;
  margin: 0 0 26px;
}

.section-perso__intro {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 680px;
  margin: 0 auto 16px;
}

.section-perso__sub {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 36px;
}

.section-perso__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
  margin-top: 48px;
}

.section-perso__step {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.section-perso__step-title {
  font-style: italic;
  font-size: 22px;
  margin-bottom: 8px;
}

.section-perso__step-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Valeurs */
.section-valeurs {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.section-valeurs__heading {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 300;
  margin: 0 0 48px;
  text-align: center;
  font-style: italic;
}

.section-valeurs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.section-valeurs__card {
  padding: 32px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}

.section-valeurs__card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.section-valeurs__icon {
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-valeurs__card-title {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 11px;
}

.section-valeurs__card-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: 300;
}

/* Entretien */
.section-entretien {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-entretien__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-entretien__heading {
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 300;
  margin: 0 0 22px;
}

.section-entretien__body {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 24px;
}

.section-entretien__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}

.section-entretien__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}

.section-entretien__dash {
  color: var(--gold);
  font-size: 18px;
  font-style: italic;
  flex: 0 0 auto;
}

.section-entretien__visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--viewer);
  border: 1px solid var(--line);
}

.section-entretien__visual-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  text-align: center;
}

/* Citation */
.section-citation {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.section-citation__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.section-citation__quote {
  font-size: clamp(20px, 3vw, 42px);
  line-height: 1.25;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin: 0 0 42px;
}

.section-citation__contact {
  margin-top: 30px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}

@media (max-width: 900px) {
  .section-atelier         { padding: 56px 24px; }
  .section-atelier__inner  { grid-template-columns: 1fr; gap: 32px; }
  .section-atelier__visual { min-height: 320px; }
  .section-atelier__heading { font-size: 32px; }
  .section-atelier__body   { font-size: 14px; }

  .section-perso       { padding: 56px 0; }
  .section-perso__steps { grid-template-columns: repeat(2, 1fr); }

  .section-valeurs { padding: 56px 0; }
  .section-valeurs__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section-valeurs__card { padding: 24px 18px; }

  .section-entretien       { padding: 56px 0; }
  .section-entretien__inner { grid-template-columns: 1fr; gap: 32px; }
  .section-entretien__visual { min-height: 280px; }

  .section-citation { padding: 72px 0; }
}

@media (max-width: 767px) {
  .section-perso__steps  { grid-template-columns: 1fr; }
  .section-valeurs__grid { grid-template-columns: 1fr 1fr; }
}

/* ── Page Produits ───────────────────────────────────────── */

.page-produits {
  padding: 80px 0;
  min-height: 70vh;
}

.page-produits__header {
  margin-bottom: 48px;
}

.page-produits__eyebrow {
  color: var(--gold);
  margin-bottom: 20px;
}

.page-produits__title {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  margin: 0;
  line-height: 1.05;
}

.page-produits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Product card */
.product-card {
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  outline: none;
  text-decoration: none;
  color: inherit;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--gold);
  transform: scale(1.025);
  box-shadow: 0 8px 32px rgba(201, 168, 120, 0.12);
}

.product-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.product-card__image {
  width: 120px;
  height: 120px;
  background: var(--viewer);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__label {
  color: var(--gold);
  margin-bottom: 10px;
  width: 100%;
}

.product-card__name {
  font-size: 24px;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 8px;
  width: 100%;
}

.product-card__price {
  color: var(--text-mute);
  margin-bottom: 12px;
  font-size: 10px;
  width: 100%;
}

.product-card__desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: 300;
  width: 100%;
}

.product-card__cta {
  margin-top: 22px;
  width: 100%;
}

.product-card__cta-btn {
  display: block;
  padding: 13px;
  width: 100%;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text);
  transition: color 0.2s, border-color 0.2s;
  background: transparent;
  text-align: center;
}

.product-card:hover .product-card__cta-btn,
.product-card:focus-visible .product-card__cta-btn {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 767px) {
  .page-produits { padding: 40px 0; }
  .page-produits__grid { grid-template-columns: 1fr; gap: 20px; }
  .product-card { padding: 24px 20px; }
  .product-card__image { width: 90px; height: 90px; }
  .product-card__name { font-size: 20px; }
}

/* ── Pages info (FAQ, CGV, légal, contact) ───────────────── */

.page-info {
  min-height: 70vh;
}

/* Legal shell header */
.legal-shell__header {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.legal-shell__header .v3-container {
  padding-top: 44px;
  padding-bottom: 20px;
}

.legal-shell__eyebrow {
  color: var(--gold);
  margin-bottom: 8px;
}

.legal-shell__title {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 300;
  margin: 0;
}

.page-info__body {
  padding-top: 36px;
  padding-bottom: 60px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* Legal content */
.legal-content__h2 {
  font-size: 22px;
  color: var(--text);
  margin: 28px 0 10px;
}

.legal-content__h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 6px;
}

.legal-content p {
  margin: 0 0 10px;
}

.legal-content__highlight {
  display: inline-flex;
  padding: 12px 20px;
  background: var(--gold-glow);
  border: 1px solid var(--gold);
  margin-bottom: 16px;
  font-size: 14px;
}

/* FAQ */
.faq-list {
  margin-top: 8px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.faq-item__btn {
  display: flex;
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  gap: 16px;
  font: inherit;
  text-align: left;
}

.faq-item__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.faq-item__question {
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  flex: 1;
}

.faq-item__icon {
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.2s;
  flex: 0 0 auto;
  line-height: 1;
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item--open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer[hidden] {
  display: block; /* override browser hidden — transition gère la visibilité */
}

.faq-item__answer-inner {
  padding-bottom: 18px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Contact */
.page-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.page-contact__subheading {
  font-size: 22px;
  color: var(--text);
  margin: 0 0 20px;
}

.page-contact__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-contact__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.page-contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-contact__label {
  color: var(--text-mute);
}

.page-contact__textarea {
  min-height: 120px;
  resize: vertical;
}

.page-contact__submit {
  padding: 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
}

.page-contact__status {
  padding: 10px 14px;
  font-size: 13px;
}

.page-contact__status--ok {
  color: var(--gold);
  border: 1px solid var(--gold);
  background: var(--gold-glow);
}

.page-contact__status--err {
  color: #c44;
  border: 1px solid #c44;
}

.page-contact__status--info {
  color: var(--text-mute);
  border: 1px solid var(--text-mute);
}

/* Honeypot anti-bot — hors écran, hors flux a11y, jamais focusable. */
.abp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-contact__info-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 6px;
}

.page-contact__hours {
  padding: 18px;
  background: var(--surface2);
  border: 1px solid var(--line);
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.page-contact__map-placeholder {
  margin-top: 18px;
  aspect-ratio: 1.6;
  background: var(--surface2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--text-mute);
}

@media (max-width: 767px) {
  .legal-shell__header .v3-container { padding-top: 24px; padding-bottom: 14px; }
  .page-info__body { padding-top: 24px; padding-bottom: 40px; font-size: 13px; }

  .page-contact__grid { grid-template-columns: 1fr; gap: 28px; }
  .page-contact__row2 { grid-template-columns: 1fr; }
}

/* ─── Configurateur 3D (rendu natif — mode plugin, sans iframe) ────────── */

/* La page configurateur est une vue applicative : viewport plein, header
   collant en haut, configurateur sur tout le reste, aucun scroll de page.
   Le thème enveloppe header/main/footer dans `.site` : c'est ce conteneur
   qui passe en flex-column et remplit le viewport, pour que le shell occupe
   tout l'espace restant quelle que soit la hauteur réelle du header. */
body.abp-configurator-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.abp-configurator-page .site {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.abp-configurator-page #site-header { flex: 0 0 auto; }
body.abp-configurator-page #site-footer { display: none; }

.abp-configurator-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--viewer, var(--bg));
  color: var(--text);
}

/* Le wrapper du configurateur remplit le shell, à fond perdu : on neutralise
   l'aspect « carte » défini par wrapper.css (largeur max, marge, radius, ombre)
   pour une intégration plein écran dans le thème. La hauteur n'est plus pilotée
   par la variable inline --atelierbyperry-height (900px fixe) : le wrapper
   épouse le shell, lui-même étiré sur le viewport restant via flex.
   Les `!important` neutralisent les valeurs de wrapper.css (height/min-height
   définies via var() ont une spécificité de propriété forte). */
.abp-configurator-shell .atelierbyperry-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
}

/* La chaîne de hauteur doit se propager jusqu'au viewer 3D pour qu'il occupe
   tout l'espace : sans hauteur explicite, .atelier-layout collapse et le
   viewer retombe sur son min-height de 320px (rendu « trop petit »).
   On force la propagation flex/hauteur quel que soit le breakpoint. */
.abp-configurator-shell .atelier-main,
.abp-configurator-shell .atelier-layout {
  min-height: 0;
  height: 100%;
}

/* La grille interne garde la largeur applicative de référence (1200px, comme
   le configurateur standalone) mais centrée sur toute la largeur utile. */
.abp-configurator-shell .atelier-layout {
  width: 100%;
  margin-inline: auto;
}

.abp-configurator-noscript {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-soft);
  font-size: 15px;
}
