/* ═══════════════════════════════════════════════════════
   OUITTE — Maison de Luxe
   Design System Global — extrait fidèle du design original
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --black:   #000000;
  --off:     #111111;
  --mid:     #3A3A3A;
  --subtle:  #8A8A8A;
  --bone:    #F5F5F3;
  --white:   #FFFFFF;
  --rule:    rgba(0,0,0,0.12);
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* ── UTILITY ────────────────────────────────────────── */
.u-serif    { font-family: var(--serif); }
.u-track    { letter-spacing: 0.22em; text-transform: uppercase; }
.u-track-sm { letter-spacing: 0.14em; text-transform: uppercase; }
.u-subtle   { color: var(--subtle); }

/* ── HERO ───────────────────────────────────────────── */
.hero {
  height: 100vh;
  display: grid;
  place-items: center;
  background: var(--white);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.hero-mark { width: 110px; height: 110px; margin-bottom: 42px; }
.hero-eyebrow {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 22px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 300;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--subtle); max-width: 360px; line-height: 2;
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--subtle);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-scroll-line {
  width: 1px; height: 50px; background: var(--black);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity:.2 } 50% { opacity:1 } }

/* ── DIVIDER ────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; padding: 60px 48px;
}
.divider-rule { flex: 1; height: 1px; background: var(--rule); }
.divider-mark { width: 22px; height: 22px; opacity: .5; }

/* ── SECTION LABEL ──────────────────────────────────── */
.section-label {
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 10px;
}

/* ── CATEGORIES ─────────────────────────────────────── */
.categories {
  padding: 0 48px 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.cat-card {
  aspect-ratio: 3/4;
  background: var(--bone);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .4s;
}
.cat-card:hover::after { background: rgba(0,0,0,0.05); }
.cat-card-inner {
  position: absolute; bottom: 28px; left: 28px; right: 28px;
  z-index: 1;
}
.cat-card-num {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 6px;
}
.cat-card-name {
  font-family: var(--serif);
  font-size: 26px; font-weight: 300;
  line-height: 1.1;
}
.cat-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

/* ── SECTION HEAD ────────────────────────────────────── */
.section-head {
  padding: 80px 48px 48px;
  display: flex; align-items: flex-end; justify-content: space-between;
  border-top: 1px solid var(--rule);
}
.section-head-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.section-head-action {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--subtle);
  border-bottom: 1px solid var(--subtle);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.section-head-action:hover { color: var(--black); border-color: var(--black); }

/* ── PRODUCT GRID ───────────────────────────────────── */
.product-grid {
  padding: 0 48px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.product-card {
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.product-card:hover .product-image-wrap::after { opacity: 1; }
.product-image-wrap {
  aspect-ratio: 3/4;
  background: var(--bone);
  position: relative;
  overflow: hidden;
}
.product-image-wrap::after {
  content: 'Voir le produit';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .35s;
}
.product-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.product-placeholder svg { opacity: 0.12; }
.product-info { padding: 18px 4px 24px; }
.product-category {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 6px;
}
.product-name {
  font-family: var(--serif); font-size: 17px; font-weight: 400;
  margin-bottom: 8px; line-height: 1.3;
}
.product-desc {
  font-size: 11px; color: var(--mid); line-height: 1.7;
  margin-bottom: 12px;
}
.product-price {
  font-family: var(--serif); font-size: 20px; font-weight: 300;
  letter-spacing: 0.04em;
}
.product-price-currency {
  font-size: 12px; vertical-align: super; margin-right: 2px;
}

/* ── WATCHES FEATURE ─────────────────────────────────── */
.watches-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-top: 1px solid var(--rule);
}
.watches-visual {
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  padding: 80px;
}
.watches-visual svg { width: 140px; height: 140px; }
.watches-copy {
  padding: 80px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0;
}
.watches-eyebrow {
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 22px;
}
.watches-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.watches-title em { font-style: italic; }
.watches-body {
  font-size: 13px; color: var(--mid); line-height: 2;
  max-width: 380px; margin-bottom: 40px;
}
.watches-cta {
  display: inline-block;
  background: var(--black); color: var(--white);
  padding: 16px 44px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 300; cursor: pointer; border: none;
  font-family: var(--sans);
  transition: opacity .2s;
}
.watches-cta:hover { opacity: 0.8; }

/* ── TECH SECTION ────────────────────────────────────── */
.tech-section {
  padding: 100px 48px;
  border-top: 1px solid var(--rule);
}
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px;
  margin-top: 56px;
}
.tech-card {
  background: var(--bone);
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 1px; height: 0;
  background: var(--black);
  transition: height .6s ease;
}
.tech-card:hover::before { height: 100%; }
.tech-icon { margin-bottom: 32px; }
.tech-name {
  font-family: var(--serif); font-size: 22px; font-weight: 300;
  margin-bottom: 12px;
}
.tech-desc {
  font-size: 12px; color: var(--mid); line-height: 1.9;
  margin-bottom: 20px;
}
.tech-price { font-family: var(--serif); font-size: 18px; font-weight: 300; }

/* ── PARFUMS ─────────────────────────────────────────── */
.perfumes {
  padding: 0 48px 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.perfume-card {
  background: var(--bone);
  padding: 44px 32px 36px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
  cursor: pointer;
  transition: background .3s;
  position: relative;
}
.perfume-card:hover { background: #EDEDEB; }
.perfume-card-visual {
  width: 80px; height: 120px;
  margin: 0 auto 28px;
  display: flex; align-items: flex-end; justify-content: center;
}
.perfume-card-visual svg { width: 64px; }
.perfume-name {
  font-family: var(--serif); font-size: 20px; font-weight: 300;
  letter-spacing: 0.04em; margin-bottom: 6px;
}
.perfume-note {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 16px;
}
.perfume-price { font-family: var(--serif); font-size: 18px; }

/* ── ACCESSOIRES ─────────────────────────────────────── */
.accessories {
  padding: 0 48px 100px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}
.acc-card {
  background: var(--bone);
  aspect-ratio: 1/1.2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 24px;
  cursor: pointer;
  transition: background .3s;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.acc-card:hover { background: #EDEDEB; }
.acc-card-label {
  font-family: var(--serif); font-size: 16px; font-weight: 300;
  margin-bottom: 4px;
}
.acc-card-price { font-size: 11px; color: var(--subtle); letter-spacing: 0.08em; }
.acc-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -68%);
  opacity: 0.1;
}

/* ── NEWSLETTER ──────────────────────────────────────── */
.newsletter {
  background: var(--black); color: var(--white);
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid #222;
}
.nl-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 300; line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nl-title em { font-style: italic; color: rgba(255,255,255,0.5); }
.nl-form { display: flex; flex-direction: column; gap: 20px; }
.nl-input {
  background: transparent;
  border: none; border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 14px 0;
  font-family: var(--sans); font-size: 13px; font-weight: 300;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color .2s;
}
.nl-input::placeholder { color: rgba(255,255,255,0.3); }
.nl-input:focus { border-color: var(--white); }
.nl-submit {
  background: var(--white); color: var(--black);
  border: none; cursor: pointer;
  padding: 16px 44px; align-self: flex-start;
  font-family: var(--sans); font-size: 10px;
  font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  transition: opacity .2s;
}
.nl-submit:hover { opacity: 0.85; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--black); color: rgba(255,255,255,0.4);
  padding: 60px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col-title {
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 12px; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  background: var(--black);
  padding: 24px 48px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 10px; letter-spacing: 0.12em; color: rgba(255,255,255,0.25);
}
.footer-logo-mark { width: 28px; height: 28px; opacity: 0.4; }

/* ── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  place-items: center;
}
.modal-overlay.open { display: grid; }
.modal {
  background: var(--white);
  width: min(880px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-left {
  background: var(--bone);
  padding: 60px;
  display: flex; align-items: center; justify-content: center;
}
.modal-left svg { width: 120px; height: 120px; }
.modal-right { padding: 60px; }
.modal-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--black); line-height: 1;
}
.modal-category {
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 10px;
}
.modal-name {
  font-family: var(--serif); font-size: 32px; font-weight: 300;
  margin-bottom: 12px; line-height: 1.2;
}
.modal-price {
  font-family: var(--serif); font-size: 26px; font-weight: 300;
  margin-bottom: 28px;
}
.modal-desc { font-size: 13px; color: var(--mid); line-height: 2; margin-bottom: 32px; }
.modal-specs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.modal-spec {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--rule); padding-bottom: 10px;
  font-size: 12px;
}
.modal-spec-label { color: var(--subtle); letter-spacing: 0.08em; }
.modal-add {
  background: var(--black); color: var(--white);
  border: none; cursor: pointer; width: 100%;
  padding: 18px; font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 300; transition: opacity .2s;
}
.modal-add:hover { opacity: 0.8; }

/* ── SCROLL REVEAL ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .categories, .product-grid  { grid-template-columns: 1fr 1fr; padding: 0 16px 60px; }
  .watches-feature             { grid-template-columns: 1fr; }
  .newsletter                  { grid-template-columns: 1fr; }
  footer                       { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .perfumes                    { grid-template-columns: 1fr 1fr; padding: 0 16px 60px; }
  .accessories                 { grid-template-columns: 1fr 1fr 1fr; padding: 0 16px 60px; }
  .tech-grid                   { grid-template-columns: 1fr; }
  .section-head                { padding: 60px 24px 36px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom               { padding: 20px 24px; flex-direction: column; gap: 12px; text-align: center; }
}
/* ═══════════════════════════════════════════════════
   OUITTE — Bloc 1 : Correctif chevauchement texte
   ═══════════════════════════════════════════════════ */

/* Empêche le titre de section d'écraser le bouton "Voir tout" */
.section-head-title {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: calc(100% - 160px);
}


/* Petits écrans : tout passe en 2 colonnes */
@media (max-width: 640px) {
  .section-head-title {
    max-width: 100%;
    font-size: clamp(22px, 7vw, 36px);
  }
  .accessories {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 12px 48px;
  }
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ═══════════════════════════════════════════════════
   OUITTE — Bloc 2 : Clamp fluide typographie & paddings
   ═══════════════════════════════════════════════════ */

/* ── Typographie ── */
.hero-title {
  font-size: clamp(40px, 10vw, 110px);
  letter-spacing: clamp(0.12em, 2vw, 0.28em);
}
.hero-eyebrow,
.hero-sub {
  font-size: clamp(9px, 1.8vw, 11px);
}
.section-head-title {
  font-size: clamp(24px, 4.5vw, 62px);
}
.watches-title {
  font-size: clamp(28px, 5vw, 68px);
}
.nl-title {
  font-size: clamp(24px, 4vw, 54px);
}
.cat-card-name {
  font-size: clamp(16px, 2.2vw, 26px);
}
.perfume-name {
  font-size: clamp(16px, 2vw, 20px);
}
.tech-name {
  font-size: clamp(16px, 2vw, 22px);
}

/* ── Paddings ── */
.tech-section {
  padding: clamp(48px, 8vw, 100px) clamp(16px, 4vw, 48px);
}
.watches-copy,
.watches-visual {
  padding: clamp(40px, 6vw, 80px);
}
.newsletter {
  padding: clamp(48px, 8vw, 100px) clamp(16px, 4vw, 48px);
}
.tech-card {
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px);
}

/* ═══════════════════════════════════════════════════
   OUITTE — Bloc 3 : Protection ratio logo
   ═══════════════════════════════════════════════════ */

.hero-mark,
.footer-logo-mark,
.divider-mark {
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  min-width: 0;
}
.hero-mark       { width: 110px; height: 110px; }
.footer-logo-mark { width: 28px;  height: 28px;  }

/* ═══════════════════════════════════════════════════
   OUITTE — Bloc 4 : Montres connectées
   ═══════════════════════════════════════════════════ */

@media (max-width: 400px) and (max-height: 500px) {

  /* Navbar */
  .ouitte-nav   { height: 44px; padding: 0 10px; }
  .nav-center   { display: none; }
  .logo span    { display: none; }
  .logo svg     { width: 20px; height: 20px; }

  /* Hero */
  .hero         { padding-top: 44px; min-height: 100svh; }
  .hero-mark    { width: 54px; height: 54px; margin-bottom: 16px; }
  .hero-title   { font-size: 28px; letter-spacing: 0.14em; }
  .hero-eyebrow,
  .hero-sub     { font-size: 7px; letter-spacing: 0.18em; }
  .hero-scroll  { display: none; }

  /* Grilles : 1 colonne */
  .categories,
  .product-grid,
  .perfumes,
  .accessories,
  .tech-grid    { grid-template-columns: 1fr; padding: 0 10px 32px; gap: 2px; }

  /* Section heads */
  .section-head       { padding: 32px 10px 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head-title { font-size: 18px; max-width: 100%; }

  /* Watches feature */
  .watches-feature  { grid-template-columns: 1fr; }
  .watches-visual   { padding: 28px; min-height: 140px; }
  .watches-visual svg { width: 70px; height: 70px; }
  .watches-copy     { padding: 24px; }
  .watches-title    { font-size: 22px; }
  .watches-body     { font-size: 10px; line-height: 1.6; }
  .watches-cta      { padding: 10px 22px; font-size: 8px; }

  /* Newsletter */
  .newsletter { grid-template-columns: 1fr; padding: 32px 10px; gap: 24px; }
  .nl-title   { font-size: 20px; }

  /* Footer */
  footer         { grid-template-columns: 1fr; padding: 24px 10px; gap: 20px; }
  .footer-bottom { padding: 14px 10px; font-size: 8px; }

  /* Modal */
  .modal       { grid-template-columns: 1fr; }
  .modal-left,
  .modal-right { padding: 24px; }

  /* Divider */
  .divider      { padding: 24px 10px; gap: 12px; }
  .divider-mark { width: 14px; height: 14px; }
}

/* Écrans très petits (< 360px) */
@media (max-width: 360px) {
  body          { font-size: 11px; }
  .hero-title   { font-size: 22px; letter-spacing: 0.1em; }
  .hero-mark    { width: 42px; height: 42px; }
  .section-head-title { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════
   OUITTE — Bloc 5 : Rotation logo hero + espace hero
   ═══════════════════════════════════════════════════ */

/* Animation rotation élégante */
@keyframes ouitteSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}



/* Réduit l'espace vide au-dessus sans tout déformer */
.hero {
  padding-top: 48px;
  align-content: center;
}

.hero-inner {
  gap: 0;
  padding-top: 0;
}


/* Respect prefers-reduced-motion (accessibilité) */
@media (prefers-reduced-motion: reduce) {
  .hero-mark {
    animation: none;
  }
}

