/* ═══════════════════════════════════════════════
   APPARTEMENT INVENDU — Cabinet S&T
   Base styles shared across all pages
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@300;400;500;600&display=swap');

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

:root {
  --beige:        #F7F3EC;
  --beige-light:  #FAF8F3;
  --white-warm:   #FFFDF8;
  --ink:          #171717;
  --ink-soft:     #3A3A3A;
  --ink-muted:    #6B6560;
  --rule:         #D8CBB8;
  --rule-light:   #EDE5D8;
  --accent:       #1F2A24;
  --gold:         #8A6A3F;
  --gold-light:   #C9A96E;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Manrope', system-ui, sans-serif;
  --max:          1200px;
  --r:            2px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--beige-light); color: var(--ink); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem,5vw,3.4rem); }
h2 { font-size: clamp(1.7rem,3.2vw,2.5rem); }
h3 { font-size: clamp(1.2rem,2vw,1.55rem); }
p  { font-size: 0.96rem; color: var(--ink-soft); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 80px 0; }
.section--sm{ padding: 50px 0; }

.label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block;
}

.btn { display: inline-block; text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.03em; cursor: pointer; transition: all 0.2s; border: none; line-height: 1; }
.btn-gold    { background: var(--gold); color: #fff; padding: 13px 28px; border-radius: var(--r); }
.btn-gold:hover { background: #7a5c34; }
.btn-dark    { background: var(--accent); color: #fff; padding: 12px 26px; border-radius: var(--r); }
.btn-dark:hover { background: #2d3e35; }
.btn-outline { background: transparent; color: var(--ink); padding: 11px 24px; border-radius: var(--r); border: 1px solid var(--rule); }
.btn-outline:hover { border-color: var(--ink-muted); }
.btn-lg { padding: 15px 34px; font-size: 0.9rem; }

/* HEADER */
header { background: var(--white-warm); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 2rem; max-width: var(--max); margin: 0 auto; }
.logo { text-decoration: none; }
.logo-main { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); display: block; line-height: 1; }
.logo-sub  { font-size: 0.62rem; color: var(--ink-muted); font-weight: 400; letter-spacing: 0.07em; text-transform: uppercase; margin-top: 3px; display: block; }
nav { display: flex; align-items: center; gap: 1.8rem; }
nav a { font-size: 0.81rem; font-weight: 500; color: var(--ink-muted); text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--ink); }

/* BREADCRUMB */
.breadcrumb { background: var(--white-warm); border-bottom: 1px solid var(--rule-light); padding: 10px 0; }
.breadcrumb ol { display: flex; gap: 8px; list-style: none; font-size: 0.75rem; color: var(--ink-muted); }
.breadcrumb ol li + li::before { content: '/'; margin-right: 8px; color: var(--rule); }
.breadcrumb ol a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb ol a:hover { color: var(--ink); }
.breadcrumb ol li:last-child { color: var(--ink-soft); }

/* PAGE HERO (inner pages) */
.page-hero { background: var(--white-warm); border-bottom: 1px solid var(--rule); padding: 60px 0 70px; }
.page-hero .label { margin-bottom: 18px; }
.page-hero h1 { max-width: 780px; margin-bottom: 22px; }
.page-hero .lead { font-size: 1.02rem; color: var(--ink-muted); max-width: 640px; line-height: 1.8; margin-bottom: 32px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }

/* ANSWER BOX (SEO answer-first) */
.answer-box { background: var(--beige); border-left: 3px solid var(--gold); padding: 22px 28px; margin: 32px 0 44px; }
.answer-box p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.8; margin: 0; }

/* CONTENT GRID */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.content-main h2 { margin: 48px 0 16px; }
.content-main h3 { margin: 32px 0 12px; }
.content-main p  { margin-bottom: 16px; }
.content-main ul { margin: 16px 0 20px 20px; }
.content-main ul li { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.65; }

/* SIDEBAR */
.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--beige); border: 1px solid var(--rule); padding: 24px; border-radius: var(--r); }
.sidebar-card h4 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 8px; }
.sidebar-card p  { font-size: 0.83rem; color: var(--ink-muted); margin-bottom: 16px; line-height: 1.6; }

/* MINI FORM */
.mini-form input, .mini-form select, .mini-form textarea {
  width: 100%; padding: 10px 13px; background: var(--white-warm);
  border: 1px solid var(--rule); border-radius: var(--r);
  font-family: var(--sans); font-size: 0.86rem; color: var(--ink);
  outline: none; transition: border-color 0.2s; margin-bottom: 10px;
  -webkit-appearance: none;
}
.mini-form input:focus, .mini-form select:focus { border-color: var(--gold); }
.mini-form .form-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 5px; display: block; }
.mini-form .submit { width: 100%; padding: 12px; background: var(--accent); color: #fff; border: none; border-radius: var(--r); font-family: var(--sans); font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.mini-form .submit:hover { background: #2d3e35; }
.rgpd { font-size: 0.68rem; color: var(--ink-muted); margin-top: 8px; line-height: 1.5; text-align: center; }

/* SIGNAL CARDS (used across pages) */
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.inner-card  { background: var(--white-warm); padding: 28px 26px; }
.inner-card--beige { background: var(--beige-light); }
.inner-card h4 { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); margin-bottom: 8px; }
.inner-card p  { font-size: 0.85rem; line-height: 1.65; }
.card-num { font-family: var(--serif); font-size: 2.4rem; color: var(--rule); font-weight: 400; line-height: 1; margin-bottom: 14px; }
.card-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule-light); display: block; }

/* CTA STRIP */
.cta-strip { background: var(--beige); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0; text-align: center; }
.cta-strip p { font-size: 0.93rem; color: var(--ink-muted); margin-bottom: 16px; }

/* TRUST BAR */
.trust-bar { background: var(--accent); padding: 16px 0; }
.trust-bar-inner { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-bar-inner span { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.trust-bar-inner span::before { content: '·'; margin-right: 10px; color: var(--gold-light); }
.trust-bar-inner span:first-child::before { display: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; border: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule-light); }
.faq-item:last-child { border-bottom: none; }
.faq-q { padding: 18px 24px; font-family: var(--serif); font-size: 1.02rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; transition: background 0.15s; }
.faq-q:hover { background: var(--beige-light); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; border: 1px solid var(--rule); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.faq-icon::after { content: '+'; font-family: var(--sans); font-size: 14px; color: var(--ink-muted); font-weight: 400; line-height: 1; }
.faq-item.open .faq-icon::after { content: '−'; }
.faq-a { padding: 0 24px; font-size: 0.88rem; color: var(--ink-muted); line-height: 1.75; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.2s; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 18px; }

/* METHOD STEPS */
.steps-list { border: 1px solid var(--rule); }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 26px 32px; border-bottom: 1px solid var(--rule-light); align-items: flex-start; transition: background 0.15s; }
.step:last-child { border-bottom: none; }
.step:hover { background: var(--beige-light); }
.step-n { font-family: var(--serif); font-size: 2.8rem; color: var(--rule); line-height: 1; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.65; margin: 0; }

/* INLINE QUOTE */
.pull-quote { font-family: var(--serif); font-size: clamp(1.3rem,2.2vw,1.8rem); color: var(--ink); line-height: 1.45; padding: 28px 32px 28px 36px; border-left: 3px solid var(--gold); margin: 44px 0; background: var(--beige); }

/* FOOTER */
footer { background: var(--accent); color: rgba(255,255,255,.6); padding: 44px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.footer-brand { font-family: var(--serif); font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.footer-sub { font-size: 0.73rem; color: rgba(255,255,255,.45); margin: 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { font-size: 0.76rem; color: rgba(255,255,255,.5); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-legal { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 0.72rem; color: rgba(255,255,255,.3); }

/* STICKY MOBILE */
.sticky-mobile { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--white-warm); border-top: 1px solid var(--rule); padding: 10px 14px; gap: 8px; }
.sm-btn { flex: 1; text-align: center; padding: 13px 8px; font-size: 0.82rem; font-weight: 600; font-family: var(--sans); border-radius: var(--r); cursor: pointer; text-decoration: none; display: block; }
.sm-primary { background: var(--accent); color: #fff; border: none; }
.sm-outline { background: transparent; color: var(--ink); border: 1px solid var(--rule); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 52px 0; }
  nav, header .btn-dark { display: none; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .sticky-mobile { display: flex; }
  body { padding-bottom: 68px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
}
