:root {
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --ink: #1d1d1f;
  --ink-secondary: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --line: #d2d2d7;
  --nav: rgba(22, 22, 23, 0.8);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 980px;
  --max-wide: 1024px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

/* —— Header —— */
.globalnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.globalnav-content {
  position: relative;
  max-width: var(--max-wide);
  margin: 0 auto;
  min-height: 44px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.globalnav-brand {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  color: #f5f5f7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.92;
  white-space: nowrap;
}

.globalnav-brand:hover,
.globalnav-brand:focus-visible {
  opacity: 1;
  outline: none;
}

.globalnav-brand::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 18px;
  margin-right: 10px;
  flex: none;
  background-color: #f5f5f7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'%3E%3C/path%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'%3E%3C/path%3E%3C/svg%3E")
    no-repeat center / contain;
}

.globalnav-list {
  position: absolute;
  left: 50%;
  top: 0;
  height: 44px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.globalnav-list a {
  color: #f5f5f7;
  text-decoration: none;
  font-size: 12px;
  opacity: 0.8;
  padding: 0 14px;
  line-height: 44px;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

.globalnav-list a:hover,
.globalnav-list a:focus-visible {
  opacity: 1;
  outline: none;
}

.globalnav-toggle {
  display: none;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.globalnav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: #f5f5f7;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.globalnav-toggle span:first-child {
  top: 17px;
}

.globalnav-toggle span:last-child {
  top: 23px;
}

.globalnav.is-open .globalnav-toggle span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.globalnav.is-open .globalnav-toggle span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

/* —— Hero —— */
.hero {
  text-align: center;
  padding: 72px 22px 56px;
  background: var(--bg);
  animation: fadeUp 0.7s ease both;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  color: var(--ink);
}

.hero-title {
  margin: 0;
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-sub {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.21429;
  font-weight: 400;
  letter-spacing: 0.007em;
  color: var(--ink-secondary);
}

.hero-links {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.link-blue {
  color: var(--apple-blue);
  text-decoration: none;
  font-size: 21px;
  font-weight: 400;
}

.link-blue:hover,
.link-blue:focus-visible {
  text-decoration: underline;
  outline: none;
}

.ribbon {
  background: var(--bg-alt);
  text-align: center;
  padding: 14px 22px;
}

.ribbon p {
  margin: 0 auto;
  max-width: 820px;
  font-size: 14px;
  color: var(--ink);
}

.ribbon .link-blue {
  font-size: 14px;
}

/* —— Offers —— */
.offers {
  background: var(--bg-alt);
  padding: 64px 22px 88px;
}

.offers-head {
  max-width: var(--max-wide);
  margin: 0 auto 28px;
  text-align: center;
}

.offers-head h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08349;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.offers-head p {
  margin: 10px 0 0;
  font-size: 21px;
  color: var(--ink-secondary);
}

.filters {
  max-width: var(--max-wide);
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  appearance: none;
  border: 1px solid transparent;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 980px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  background: #e8e8ed;
  outline: none;
}

.filter-btn.is-active {
  background: var(--ink);
  color: #f5f5f7;
  box-shadow: none;
}

.offers-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.offers-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-secondary);
  font-size: 19px;
}

/* Carte produit cliquable */
.offer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  padding: 36px 28px 32px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.28s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.28s ease;
}

.offer-card:hover,
.offer-card:focus-visible {
  transform: scale(1.015);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.12);
  outline: none;
}

.offer-card:focus-visible {
  box-shadow:
    0 0 0 4px rgba(0, 113, 227, 0.35),
    0 22px 44px rgba(0, 0, 0, 0.12);
}

.offer-card:active {
  transform: scale(0.995);
}

.offer-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 280px;
  min-height: 0;
  margin: 8px auto 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.offer-media img.is-missing {
  display: none;
}

.offer-media-fallback {
  position: absolute;
  inset: 12%;
  border-radius: 24px;
  background: linear-gradient(180deg, #fafafa, #ececef);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a1a1a6;
}

.offer-media img:not(.is-missing) + .offer-media-fallback {
  display: none;
}

.offer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 980px;
  background: #bf4800;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.offer-swatch-preview {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.offer-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
}

.price-badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 9px;
  border-radius: 980px;
  background: #bf4800;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.price-promo {
  font-size: 19px;
  line-height: 1.2;
  color: var(--ink);
}

.price-promo strong {
  font-weight: 600;
}

.price-original {
  font-size: 14px;
  color: var(--ink-secondary);
  text-decoration: line-through;
}

.offer-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  pointer-events: none;
}

.offer-cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #bf4800;
}

.offer-body h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.14286;
  font-weight: 600;
  letter-spacing: 0.007em;
}

.offer-body p {
  margin: 4px 0 0;
  max-width: 28ch;
  font-size: 17px;
  line-height: 1.23536;
  color: var(--ink-secondary);
}

.offer-cta {
  margin-top: 14px;
  color: var(--apple-blue);
  font-size: 17px;
  font-weight: 400;
}

.offer-card:hover .offer-cta,
.offer-card:focus-visible .offer-cta {
  text-decoration: underline;
}

/* —— Configurateur produit —— */
body.config-open {
  overflow: hidden;
}

.config[hidden] {
  display: none !important;
}

.config {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.config-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.config-sheet {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  animation: fadeUp 0.28s ease both;
}

.config-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f7;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}

.config-close:hover,
.config-close:focus-visible {
  background: #e8e8ed;
  outline: none;
}

.config-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8px;
  min-height: 520px;
}

.config-visual {
  display: grid;
  place-items: center;
  padding: 48px 28px;
  background: var(--bg-alt);
  border-radius: 22px 0 0 22px;
}

.config-visual-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.config-visual-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.config-visual-frame img.is-missing {
  opacity: 0;
}

.config-color-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  opacity: 0.28;
  filter: blur(28px);
  transition: background 0.25s ease;
  z-index: 0;
}

.config-options {
  padding: 48px 40px 40px;
}

.config-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #bf4800;
}

.config-options h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.config-desc {
  margin: 12px 0 0;
  color: var(--ink-secondary);
  font-size: 17px;
  line-height: 1.35;
}

.config-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.config-price .price-promo {
  font-size: 28px;
}

.config-price .price-original {
  font-size: 17px;
}

.config-block {
  margin-top: 28px;
}

.config-block h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.config-block h3 span {
  font-weight: 400;
  color: var(--ink-secondary);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.swatch:hover,
.swatch:focus-visible {
  transform: scale(1.06);
  outline: none;
}

.swatch.is-active {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--apple-blue),
    inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.storage-list {
  display: grid;
  gap: 10px;
}

.storage-btn {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.storage-btn-label {
  font-weight: 500;
}

.storage-btn-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.storage-btn-prices .price-promo {
  font-size: 15px;
  font-weight: 600;
}

.storage-btn-prices .price-original {
  font-size: 12px;
}

.storage-btn:hover,
.storage-btn:focus-visible {
  border-color: #86868b;
  outline: none;
}

.storage-btn.is-active {
  border-color: var(--apple-blue);
  background: rgba(0, 113, 227, 0.06);
  box-shadow: inset 0 0 0 1px var(--apple-blue);
}

.config-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--apple-blue);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.config-cta:hover,
.config-cta:focus-visible {
  background: var(--apple-blue-hover);
  outline: none;
}

.config-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-secondary);
}

/* —— SEO content —— */
.seo-content {
  background: var(--bg);
  padding: 56px 22px 72px;
  border-top: 1px solid var(--line);
}

.seo-content-inner {
  max-width: var(--max);
  margin: 0 auto;
  color: var(--ink-secondary);
  font-size: 17px;
  line-height: 1.5;
}

.seo-content-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.seo-content-inner h3 {
  margin: 28px 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.seo-content-inner p {
  margin: 0 0 12px;
}

.seo-content-inner ul {
  margin: 0;
  padding-left: 1.25rem;
}

.seo-content-inner li + li {
  margin-top: 8px;
}

.seo-content-inner strong {
  color: var(--ink);
  font-weight: 600;
}

/* —— Footer Apple-like —— */
.foot {
  background: var(--bg-alt);
  color: var(--ink-secondary);
  border-top: 1px solid var(--line);
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 17px 22px 28px;
}

.foot-disclaimer {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.33337;
}

.foot-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.foot-col h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-col li + li {
  margin-top: 8px;
}

.foot-col a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.33337;
}

.foot-col a:hover,
.foot-col a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.foot-locale {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink);
}

.foot-legal {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12px;
}

.foot-legal p {
  margin: 0;
}

.foot-legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.foot-legal-links li {
  display: flex;
  align-items: center;
}

.foot-legal-links li + li::before {
  content: "|";
  margin: 0 10px;
  color: var(--line);
}

.foot-legal-links a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.foot-legal-links a:hover,
.foot-legal-links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-card {
    min-height: 380px;
    padding: 28px 20px 24px;
  }

  .offer-body h3 {
    font-size: 24px;
  }

  .foot-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .config-visual {
    border-radius: 22px 22px 0 0;
    padding: 36px 20px 20px;
  }

  .config-options {
    padding: 24px 22px 32px;
  }
}

@media (max-width: 834px) {
  .globalnav-content {
    grid-template-columns: 1fr auto;
  }

  .globalnav-toggle {
    display: block;
  }

  .globalnav-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 44px;
    height: auto;
    transform: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #161617;
    padding: 8px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: calc(100vh - 44px);
    overflow: auto;
  }

  .globalnav.is-open .globalnav-list {
    display: flex;
  }

  .globalnav-list a {
    font-size: 17px;
    opacity: 0.92;
    line-height: 1.2;
    padding: 12px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 734px) {
  .hero {
    padding: 48px 18px 40px;
  }

  .hero-eyebrow {
    font-size: 19px;
  }

  .hero-sub,
  .link-blue,
  .offers-head p {
    font-size: 19px;
  }

  .offers {
    padding: 48px 16px 64px;
  }

  .offers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .offer-card {
    min-height: 0;
  }

  .foot-directory {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }

  .foot-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .offer-card,
  .globalnav-toggle span {
    animation: none;
    transition: none;
  }
}
