/* ============================================
   SCM Transition — Style sobre & professionnel
   Palette : ivoire chaud, encre, or satiné
   ============================================ */

:root {
  --ivory:       #f7f4ef;
  --ivory-dark:  #ede8e0;
  --ink:         #1a1714;
  --ink-mid:     #3a3530;
  --ink-light:   #7a726a;
  --gold:        #9a7f52;
  --gold-light:  #c4a96e;
  --rule:        #c8bfb0;

  --font-serif:  'EB Garamond', 'Libre Baskerville', Georgia, serif;
  --font-display:'Cormorant Garamond', 'EB Garamond', Georgia, serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 20px; scroll-behavior: smooth; }

body {
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-serif);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

address { font-style: normal; }
a { color: inherit; text-decoration: none; }

/* ---- Page wrapper ---- */
.page-wrapper {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem 2.5rem;
  animation: pageIn 1s ease both;
}

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

/* ---- Header ---- */
.site-header {
  width: 100%;
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeUp .8s ease .1s both;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.header-rule {
  width: 72px;
  height: 1px;
  background: var(--gold);
}

.header-label {
  font-family: var(--font-serif);
  font-size: .9rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.header-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: .06em;
  color: var(--ink);
  line-height: 1.15;
}

.header-sub {
  font-family: var(--font-serif);
  font-size: .95rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ---- Announcement ---- */
.announcement {
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin-bottom: 2.8rem;
  animation: fadeUp .8s ease .25s both;
}

.announcement-text {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--ink-mid);
  font-style: italic;
}

.announcement-sub {
  margin-top: .9rem;
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--ink-light);
}

/* ---- Ornament ---- */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
  margin-bottom: 2.8rem;
  animation: fadeUp .8s ease .35s both;
}

.ornament--bottom {
  margin-top: 2.8rem;
  margin-bottom: 0;
  animation-delay: .55s;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule));
}

.ornament--bottom .ornament-line:first-child {
  background: linear-gradient(to right, transparent, var(--rule));
}
.ornament--bottom .ornament-line:last-child {
  background: linear-gradient(to left, transparent, var(--rule));
}

.ornament:not(.ornament--bottom) .ornament-line:last-child {
  background: linear-gradient(to left, transparent, var(--rule));
}

.ornament-diamond {
  color: var(--gold);
  font-size: .5rem;
  line-height: 1;
}

/* ---- Cabinets layout ---- */
.cabinets {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  animation: fadeUp .8s ease .45s both;
}

/* ---- Vertical divider ---- */
.vertical-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
  gap: .5rem;
}

.vd-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--rule));
}

.vd-line:last-child {
  background: linear-gradient(to top, transparent, var(--rule));
}

.vd-diamond {
  color: var(--gold);
  font-size: .5rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ---- Cabinet card ---- */
.cabinet {
  padding: 0;
}

.cabinet--left { text-align: right; }
.cabinet--right { text-align: left; }

.cabinet-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: .5rem 0;
}

.cabinet--left .cabinet-inner { align-items: flex-end; }
.cabinet--right .cabinet-inner { align-items: flex-start; }

.cabinet-quality {
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}

.cabinet-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: .02em;
  margin-bottom: .1rem;
}

.cabinet-name em {
  font-style: italic;
  color: var(--ink-mid);
}

.cabinet-separator {
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin: 1.1rem 0;
}

.cabinet-address {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 1rem;
}

.cabinet-address .ordinal {
  font-size: .7em;
  vertical-align: super;
}

.cabinet-phone {
  font-size: 1rem;
  color: var(--ink-light);
  margin-bottom: 1.4rem;
  letter-spacing: .04em;
}

.cabinet-phone a {
  transition: color .2s;
}
.cabinet-phone a:hover {
  color: var(--gold);
}

/* ---- Cabinet link / CTA ---- */
.cabinet-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: .2rem;
  transition: color .25s, border-color .25s, gap .25s;
  margin-top: auto;
}

.cabinet-link:hover {
  color: var(--ink);
  border-color: var(--ink);
  gap: .75rem;
}

.arrow-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .25s;
}

.cabinet-link:hover .arrow-icon {
  transform: translate(2px, -2px);
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 2rem;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
  animation: fadeUp .8s ease .6s both;
}

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

/* ---- Responsive ---- */
@media (max-width: 620px) {
  .page-wrapper { padding: 2.5rem 1.25rem 2rem; }

  .cabinets {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
  }

  .cabinet--left  { text-align: center; }
  .cabinet--right { text-align: center; }

  .cabinet--left .cabinet-inner  { align-items: center; }
  .cabinet--right .cabinet-inner { align-items: center; }

  .vertical-divider {
    flex-direction: row;
    padding: 2rem 0;
  }

  .vd-line {
    flex: 1;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--rule)) !important;
  }

  .vd-line:last-child {
    background: linear-gradient(to left, transparent, var(--rule)) !important;
  }
}
