/* ============================================================
   C. LUBAC AVOCAT — STYLES
   ============================================================ */

/* Variables */
:root {
  --terracotta:      #C4735A;
  --terracotta-dark: #A85D44;
  --terracotta-light:#D8957E;
  --terracotta-pale: #F5E8E2;
  --cream:           #F5EDE4;
  --warm-white:      #FDFAF7;
  --dark:            #2A1F1A;
  --mid-dark:        #5C4237;
  --mid:             #8C6E63;
  --light-border:    #E8D5CC;
  --sand:            #D4C0B0;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius:    12px;
  --radius-lg: 24px;
  --shadow:    0 4px 24px rgba(42,31,26,.08);
  --shadow-lg: 0 16px 48px rgba(42,31,26,.14);
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.12;
  color: var(--dark);
}
h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem,   3.8vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
em { font-style: italic; color: var(--terracotta); }
p  { color: var(--mid-dark); line-height: 1.8; }
p.lead { font-size: 1.08rem; font-weight: 500; color: var(--dark); }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,115,90,.35); }
.btn-secondary { background: transparent; color: var(--dark); border: 1.5px solid var(--light-border); }
.btn-secondary:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--terracotta); border: 1.5px solid var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: #fff; transform: translateY(-2px); }
.btn-large { padding: 1.1rem 2.25rem; font-size: 1rem; }
.btn-white { background: #fff; color: var(--terracotta); }
.btn-white:hover { background: var(--terracotta-pale); transform: translateY(-2px); }

/* ── Section helpers ── */
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .9rem;
}
.section-intro { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.section-intro h2 { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--mid); }

/* ────────────────────────────────
   ANIMATIONS
──────────────────────────────── */
.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up   { transform: translateY(32px); }
.fade-left { transform: translateX(-44px); }
.fade-right{ transform: translateX(44px); }
.fade-up.visible, .fade-left.visible, .fade-right.visible { opacity: 1; transform: none; }

.pour-qui-card:nth-child(2), .formule-card:nth-child(2) { transition-delay: .12s; }
.pour-qui-card:nth-child(3), .formule-card:nth-child(3) { transition-delay: .24s; }
.pour-qui-card:nth-child(4) { transition-delay: .36s; }

.hero-animate { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.hero-animate.visible { opacity: 1; transform: none; }
.hero-img-wrap { opacity: 0; transform: translateX(50px); transition: opacity .8s ease .3s, transform .8s ease .3s; }
.hero-img-wrap.visible { opacity: 1; transform: none; }

/* ────────────────────────────────
   NAVBAR
──────────────────────────────── */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 1.25rem 0; transition: all var(--transition); }
#navbar.scrolled { background: rgba(253,250,247,.96); backdrop-filter: blur(14px); padding: .8rem 0; box-shadow: 0 1px 0 var(--light-border); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); display: flex; align-items: center; gap: 2rem; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 2rem; margin: 0 auto; }
.nav-links a { font-size: .88rem; font-weight: 400; color: var(--mid-dark); transition: color var(--transition); }
.nav-links a:hover { color: var(--terracotta); }
.nav-cta { flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; z-index: 300; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--dark); transition: all var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay { display: none; position: fixed; inset: 0; background: var(--warm-white); z-index: 250; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; }
.nav-overlay.open { display: flex; }
.nav-overlay a { font-family: var(--font-serif); font-size: 2rem; color: var(--dark); transition: color var(--transition); }
.nav-overlay a:hover { color: var(--terracotta); }

/* ────────────────────────────────
   HERO
──────────────────────────────── */
#hero { min-height: 100svh; display: flex; align-items: center; padding: 8rem 0 5rem; position: relative; overflow: hidden; background: var(--warm-white); }
#hero::before { content: ''; position: absolute; top: -5%; right: -3%; width: 52%; height: 115%; background: var(--cream); border-radius: 0 0 0 45% / 0 0 0 22%; z-index: 0; }
.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-content { display: flex; flex-direction: column; gap: 1.6rem; }

.hero-pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); background: var(--terracotta-pale); padding: .5rem 1.1rem; border-radius: 100px; width: fit-content; }
.hero-pill::before { content: '◆'; font-size: .5rem; }

.hero-title { font-size: clamp(3rem, 5.2vw, 5rem); font-weight: 300; line-height: 1.08; }
.hero-sub { font-size: 1.05rem; color: var(--mid); max-width: 460px; line-height: 1.85; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats { display: flex; align-items: center; gap: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--light-border); }
.stat-number { display: block; font-family: var(--font-serif); font-size: 1.9rem; font-weight: 500; color: var(--terracotta); line-height: 1; }
.stat-label { display: block; font-size: .75rem; color: var(--mid); margin-top: .2rem; line-height: 1.4; }
.stat-sep { width: 1px; height: 38px; background: var(--light-border); flex-shrink: 0; }

.hero-img-wrap { position: relative; }
.hero-img-frame { width: 100%; max-width: 460px; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; margin-left: auto; }
.hero-img-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero-badge { position: absolute; bottom: 2.5rem; left: -1.5rem; background: #fff; border-left: 3px solid var(--terracotta); border-radius: var(--radius); padding: 1rem 1.4rem; box-shadow: var(--shadow-lg); }
.hero-badge span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mid); }
.hero-badge strong { font-family: var(--font-serif); font-size: 1.35rem; color: var(--terracotta); }

.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--mid); font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }
.scroll-line { width: 1px; height: 36px; background: var(--mid); animation: scrollPulse 2.2s infinite; }
@keyframes scrollPulse {
  0%,100% { opacity: .2; transform: scaleY(.4); transform-origin: top; }
  55%      { opacity: 1;  transform: scaleY(1); }
}

/* ────────────────────────────────
   POUR QUI
──────────────────────────────── */
.section-pour-qui { padding: 6rem 0; background: var(--cream); }
.pour-qui-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.pour-qui-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem 2rem 2rem 1.75rem; display: flex; gap: 1rem; align-items: flex-start; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.pour-qui-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { color: var(--terracotta); font-size: 1.1rem; flex-shrink: 0; margin-top: .15rem; }
.pour-qui-card p { font-size: .97rem; color: var(--mid-dark); }
.pour-qui-card strong { color: var(--dark); }

/* ────────────────────────────────
   APPROCHE
──────────────────────────────── */
.section-approche { padding: 8rem 0; }
.approche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.approche-img-wrap { position: relative; }
.approche-img-wrap img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; }
.approche-deco { position: absolute; top: -2.5rem; left: -2.5rem; width: 55%; height: 55%; background: var(--terracotta-pale); border-radius: var(--radius-lg); z-index: -1; }
.approche-content { display: flex; flex-direction: column; gap: 1.5rem; }

.feature-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--cream); padding: 1.25rem 1.5rem; border-radius: var(--radius); border-left: 3px solid var(--terracotta); }
.feature-icon { font-size: 1.4rem; flex-shrink: 0; }
.feature-box strong { display: block; color: var(--dark); margin-bottom: .25rem; font-size: .97rem; }
.feature-box p { font-size: .88rem; color: var(--mid); margin: 0; line-height: 1.65; }

/* ────────────────────────────────
   FORMULES
──────────────────────────────── */
.section-formules { padding: 8rem 0; background: var(--cream); }
.formules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.formule-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; border: 1px solid var(--light-border); box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.formule-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.formule-featured { background: var(--dark); border-color: var(--dark); transform: translateY(-14px); }
.formule-featured:hover { transform: translateY(-20px); }
.formule-featured h3, .formule-featured .formule-desc, .formule-includes-item { color: rgba(255,255,255,.88) !important; }
.formule-featured .price { color: var(--terracotta-light); }
.formule-featured .price-suffix { color: rgba(255,255,255,.45); }
.formule-featured .fnum { color: var(--terracotta-light); opacity: 1; }

.fheader { display: flex; align-items: center; justify-content: space-between; }
.fnum { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 300; color: var(--light-border); line-height: 1; }
.ftag { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); background: var(--terracotta-pale); padding: .28rem .8rem; border-radius: 100px; }
.formule-featured .ftag { background: rgba(196,115,90,.22); color: var(--terracotta-light); }
.formule-desc { font-size: .94rem; color: var(--mid); line-height: 1.65; }
.price-wrap { display: flex; align-items: baseline; gap: .4rem; margin: .4rem 0; }
.price { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 500; color: var(--terracotta); line-height: 1; }
.price-suffix { font-size: .82rem; color: var(--mid); }
.formule-list { display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.formule-list li { font-size: .88rem; color: var(--mid-dark); padding-left: 1.3rem; position: relative; line-height: 1.55; }
.formule-list li::before { content: '✓'; position: absolute; left: 0; color: var(--terracotta); font-size: .82rem; }
.formule-featured .formule-list li { color: rgba(255,255,255,.75); }
.formule-featured .formule-list li::before { color: var(--terracotta-light); }

/* ────────────────────────────────
   PROCESSUS
──────────────────────────────── */
.section-processus { padding: 8rem 0; }
.processus-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; }
.step { display: flex; gap: 2rem; align-items: flex-start; }
.step-num { font-family: var(--font-serif); font-size: 3rem; font-weight: 300; color: var(--terracotta); min-width: 70px; text-align: right; flex-shrink: 0; line-height: 1; }
.step-body { padding-bottom: 2rem; }
.step-body h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.step-body p { font-size: .94rem; color: var(--mid); }
.step-line { width: 1px; height: 2.25rem; background: var(--light-border); margin-left: calc(70px + 2rem - .5px); }

/* ────────────────────────────────
   AVIS
──────────────────────────────── */
.section-avis { padding: 6rem 0; background: var(--terracotta-pale); }
.avis-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; max-width: 1060px; margin: 0 auto; }
.avis-content { display: flex; flex-direction: column; gap: 1.5rem; }
.stars { font-size: 1.4rem; letter-spacing: .1em; }
.avis-img img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; object-position: center top; width: 100%; }

/* ────────────────────────────────
   CONTACT CTA
──────────────────────────────── */
.section-contact { padding: 9rem 0; background: var(--dark); position: relative; overflow: hidden; }
.section-contact::before { content: ''; position: absolute; top: -40%; right: -15%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(196,115,90,.18) 0%, transparent 68%); pointer-events: none; }
.contact-inner { text-align: center; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; position: relative; z-index: 1; }
.contact-inner .section-tag { color: var(--terracotta-light); }
.contact-inner h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.contact-inner em { color: var(--terracotta-light); }
.contact-inner p { color: rgba(255,255,255,.6); max-width: 460px; }
.contact-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }
.contact-note { font-size: .82rem; color: rgba(255,255,255,.35); margin-top: .25rem; }

/* ────────────────────────────────
   FOOTER
──────────────────────────────── */
footer { background: #1D1310; padding: 4.5rem 0 2rem; color: rgba(255,255,255,.55); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 2rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand img { filter: brightness(0) invert(1); opacity: .8; height: 32px; width: auto; }
.footer-brand p { font-size: .84rem; line-height: 1.75; }
footer h4 { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 1rem; }
footer ul { display: flex; flex-direction: column; gap: .6rem; }
footer a { font-size: .86rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
footer a:hover { color: var(--terracotta-light); }
.footer-bottom { text-align: center; font-size: .76rem; color: rgba(255,255,255,.28); }
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--terracotta-light); }

/* ────────────────────────────────
   WHATSAPP FLOAT
──────────────────────────────── */
.wa-float { position: fixed; bottom: 1.75rem; right: 1.75rem; width: 58px; height: 58px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); z-index: 150; transition: transform .25s ease, box-shadow .25s ease; }
.wa-float:hover { transform: scale(1.12); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.wa-float svg { width: 28px; height: 28px; }

/* ────────────────────────────────
   FORMULE DETAIL PAGES
──────────────────────────────── */
.page-hero { padding: 10rem 0 6rem; background: var(--cream); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: var(--warm-white); clip-path: ellipse(55% 100% at 50% 100%); }
.page-hero-inner { max-width: 800px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); display: flex; flex-direction: column; gap: 1.5rem; position: relative; z-index: 1; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--mid); transition: color var(--transition); width: fit-content; margin-bottom: .5rem; }
.back-link:hover { color: var(--terracotta); }
.page-price-wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: .5rem; }
.page-price { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 500; color: var(--terracotta); line-height: 1; }
.page-price-note { font-size: .9rem; color: var(--mid); }

.detail-section { padding: 6rem 0; }
.detail-section:nth-child(even) { background: var(--cream); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.includes-list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.includes-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform var(--transition); }
.includes-item:hover { transform: translateX(4px); }
.icheck { width: 28px; height: 28px; background: var(--terracotta-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--terracotta); font-size: .8rem; font-weight: 700; }
.itext strong { display: block; color: var(--dark); font-size: .97rem; margin-bottom: .2rem; }
.itext p { font-size: .88rem; color: var(--mid); margin: 0; line-height: 1.6; }

.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 1.5rem; }
.tl-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.tl-dot-col { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 14px; height: 14px; background: var(--terracotta); border-radius: 50%; flex-shrink: 0; margin-top: .3rem; }
.tl-line { flex: 1; width: 1.5px; background: var(--light-border); min-height: 2.5rem; }
.tl-content { padding-bottom: 2rem; }
.tl-content strong { color: var(--dark); font-size: .97rem; display: block; margin-bottom: .25rem; }
.tl-content p { font-size: .88rem; color: var(--mid); margin: 0; }

.cta-block { background: var(--dark); border-radius: var(--radius-lg); padding: 3.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.cta-block h3 { color: #fff; font-size: 1.8rem; }
.cta-block p { color: rgba(255,255,255,.6); font-size: .95rem; }
.cta-block .section-tag { color: var(--terracotta-light); }
.cta-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 1024px) {
  .formules-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .formule-featured { transform: none; }
  .formule-featured:hover { transform: translateY(-6px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  #hero { padding: 7rem 0 4rem; }
  #hero::before { display: none; }
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-img-wrap { order: -1; }
  .hero-img-frame { max-width: 300px; margin: 0 auto; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -1rem; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .pour-qui-grid { grid-template-columns: 1fr; }
  .approche-grid { grid-template-columns: 1fr; gap: 3rem; }
  .approche-deco { display: none; }
  .avis-inner { grid-template-columns: 1fr; }
  .avis-img { order: -1; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-block { padding: 2.5rem; }
  .page-hero { padding: 8rem 0 5rem; }
}

@media (max-width: 520px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-sep { width: 60px; height: 1px; }
  .contact-ctas { flex-direction: column; width: 100%; }
  .contact-ctas .btn { justify-content: center; }
  .cta-ctas { flex-direction: column; }
}
