/* ══════════════════════════════════════════
   Encyclie — Stylesheet
   ══════════════════════════════════════════ */

:root {
  --ink:   #1c1c1a;
  --cream: #f6f2ea;
  --warm:  #eee9df;
  --mist:  #e2ddd4;
  --terra: #c8623a;
  --gold:  #c9973a;
  --sage:  #7a9e7e;
  --text:  #3a3832;
  --light: #918c83;
}

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

body {
  background: var(--ink);
  font-family: 'Epilogue', sans-serif;
  color: var(--text);
  line-height: 1;
}

/* ── SCROLL PROGRESS ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--terra), var(--gold), var(--sage));
  z-index: 300;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── NAVBAR ── */
.nav {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: rgba(255,255,255,0.07);
  background: rgba(28,28,26,0.95);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.8; }
.nav-logo span { color: var(--terra); }

.nav-cta {
  background: var(--terra);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.nav-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%) skewX(-15deg);
}

.nav-cta:hover { background: #b5542f; }
.nav-cta:hover::after { animation: shimmer 0.45s ease; }

/* ── WRAP ── */
.wrap { max-width: 780px; margin: 0 auto; }

/* ── HERO ── */
.hero {
  background: var(--cream);
  border-radius: 3px;
  padding: 5rem 4rem 4.5rem;
  margin-bottom: 3px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--gold), var(--sage), var(--terra));
  background-size: 200% 100%;
  animation: gradientFlow 5s linear infinite;
}

.eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.hero .eyebrow {
  opacity: 0;
  animation: lineReveal 0.5s cubic-bezier(0.16,1,0.3,1) 0.05s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--terra);
}

.hero-line {
  display: block;
  opacity: 0;
  animation: lineReveal 0.65s cubic-bezier(0.16,1,0.3,1) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.15s; }
.hero-line:nth-child(2) { animation-delay: 0.28s; }
.hero-line:nth-child(3) { animation-delay: 0.42s; }

.hero-sub {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: lineReveal 0.6s cubic-bezier(0.16,1,0.3,1) 0.55s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: lineReveal 0.6s cubic-bezier(0.16,1,0.3,1) 0.7s forwards;
}

/* Hero background image */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200&fit=crop&q=80') center/cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

/* Hero SVG decoration */
.hero-decor {
  position: absolute;
  right: -2rem;
  bottom: -1rem;
  width: 220px;
  height: 220px;
  opacity: 0.06;
  animation: floatDecor 7s ease-in-out infinite;
}

.btn-primary {
  background: var(--terra);
  color: white;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: translateX(-100%) skewX(-15deg);
}

.btn-primary:hover { background: #b5542f; transform: translateY(-1px); }
.btn-primary:hover::after { animation: shimmer 0.45s ease; }

.hero-note {
  font-size: 0.78rem;
  color: var(--light);
  line-height: 1.5;
}

/* ── REVEAL (scroll-triggered) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTION SVG ICONS ── */
.section-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 1.2rem;
}

.section-icon-sm {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ── PROBLÈME (dark) ── */
.problem {
  background: var(--ink);
  border-radius: 3px;
  padding: 3.5rem 4rem;
  margin-bottom: 3px;
  position: relative;
  overflow: hidden;
}

.problem::after {
  content: '?';
  position: absolute;
  right: 2rem;
  bottom: -2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  animation: floatDecor 7s ease-in-out infinite;
}

.problem .eyebrow { color: var(--terra); }

.problem-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 2rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.problem-card {
  padding: 1.4rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.problem-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.problem-card-icon {
  margin-bottom: 0.8rem;
}

.problem-card-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--light);
}

.problem-card-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #9a968f;
}

.problem-card.answer {
  grid-column: 1 / -1;
  background: rgba(200,98,58,0.1);
  border-color: rgba(200,98,58,0.28);
}

.problem-card.answer:hover {
  background: rgba(200,98,58,0.15);
}

.problem-card.answer .problem-card-label { color: var(--terra); }
.problem-card.answer .problem-card-text { color: var(--cream); }

/* ── COLLECTIF ── */
.team {
  background: var(--cream);
  border-radius: 3px;
  padding: 3.5rem 4rem;
  margin-bottom: 3px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.section-intro {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.team-card {
  background: var(--warm);
  border-radius: 3px;
  padding: 0;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s;
  cursor: default;
  overflow: hidden;
}

.team-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.team-card-body {
  padding: 1.4rem;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.team-initial {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 1rem;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.team-card:hover .team-initial { transform: scale(1.15) rotate(-3deg); }

.team-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.team-desc {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.6;
}

/* ── BÉNÉFICES ── */
.benefits {
  background: var(--warm);
  border-radius: 3px;
  padding: 3.5rem 4rem;
  margin-bottom: 3px;
}

.benefits-list { margin-top: 1.8rem; }

.benefit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 1.4rem 1rem;
  border-bottom: 1px solid var(--mist);
  border-radius: 3px;
  margin: 0 -1rem;
  transition: background 0.2s;
}

.benefit-row:last-child { border-bottom: none; }
.benefit-row:hover { background: rgba(200,98,58,0.05); }

.benefit-result {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.benefit-detail {
  font-size: 0.82rem;
  color: var(--light);
  line-height: 1.65;
}

.benefit-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--terra);
  white-space: nowrap;
  text-align: right;
  padding-top: 0.3rem;
  line-height: 1.7;
}

/* ── PROCESSUS ── */
.process {
  background: var(--cream);
  border-radius: 3px;
  padding: 3.5rem 4rem;
  margin-bottom: 3px;
}

.process-steps { margin-top: 1.8rem; }

.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--mist);
}

.process-step:last-child { border-bottom: none; }

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}

.process-step:hover .step-num {
  transform: scale(1.18);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.step-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.65;
}

.step-promise {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terra);
  margin-top: 0.6rem;
}

/* ── TÉMOIGNAGES ── */
.testimonials {
  background: var(--ink);
  border-radius: 3px;
  padding: 3.5rem 4rem;
  margin-bottom: 3px;
  position: relative;
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200&fit=crop&q=80') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.testimonials .eyebrow { color: var(--terra); }

.testi-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 2rem;
  line-height: 1.15;
}

.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.testi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 1.6rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.testi-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

.testi-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1rem;
}

.testi-result {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.testi-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c8c4bc;
  display: block;
  margin-bottom: 0.15rem;
}

.testi-context {
  font-size: 0.72rem;
  color: var(--light);
  display: block;
}

/* ── PRICING ── */
.pricing {
  background: var(--cream);
  border-radius: 3px;
  padding: 3.5rem 4rem;
  margin-bottom: 3px;
}

.pricing-intro {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.pricing-card {
  border-radius: 3px;
  padding: 1.6rem 1.4rem;
  border: 1.5px solid var(--mist);
  background: var(--cream);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s, border-color 0.25s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border-color: #d0c9be;
}

.pricing-card.featured {
  border-color: var(--terra);
  background: #fdf5f1;
  animation: pulseBorder 3s ease-in-out infinite;
}

.pricing-card.featured:hover {
  box-shadow: 0 10px 28px rgba(200,98,58,0.15);
}

.pricing-level {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.4rem;
}

.pricing-card.featured .pricing-level { color: var(--terra); }

.pricing-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.pricing-range {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.pricing-desc {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pricing-examples {
  font-size: 0.75rem;
  color: var(--light);
  line-height: 1.6;
  padding-top: 0.8rem;
  border-top: 1px solid var(--mist);
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--light);
  line-height: 1.65;
  font-style: italic;
}

/* ── FAQ accordion ── */
.faq {
  background: var(--warm);
  border-radius: 3px;
  padding: 3.5rem 4rem;
  margin-bottom: 3px;
}

.faq-list { margin-top: 1.8rem; }

.faq-item {
  border-bottom: 1px solid var(--mist);
}

.faq-item:last-child { border-bottom: none; }

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: 'Epilogue', sans-serif;
}

.faq-q {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.45;
  transition: color 0.2s;
}

.faq-btn:hover .faq-q { color: var(--terra); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--terra);
  font-weight: 300;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), background 0.2s;
  margin-top: 1px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--terra);
  color: white;
}

.faq-a {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease, padding-bottom 0.3s;
  padding-bottom: 0;
}

.faq-item.open .faq-a {
  max-height: 280px;
  opacity: 1;
  padding-bottom: 1.4rem;
}

/* ── CTA FINAL ── */
.cta-final {
  background: var(--ink);
  border-radius: 3px;
  padding: 5rem 4rem;
  margin-bottom: 3px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1200&fit=crop&q=80') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.cta-final::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--gold), var(--sage), var(--terra));
  background-size: 200% 100%;
  animation: gradientFlow 5s linear infinite;
}

.cta-final .eyebrow { color: var(--terra); }

.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.cta-title em {
  font-style: italic;
  color: var(--gold);
}

.cta-sub {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 2.5rem;
}

.btn-cta {
  background: var(--terra);
  color: white;
  text-decoration: none;
  padding: 1.1rem 2.5rem;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.15s;
}

.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  transform: translateX(-100%) skewX(-15deg);
}

.btn-cta:hover { background: #b5542f; transform: translateY(-1px); }
.btn-cta:hover::after { animation: shimmer 0.45s ease; }

.cta-reassurance {
  font-size: 0.72rem;
  color: #555;
  margin-top: 1rem;
  line-height: 1.6;
}

/* ── FOOTER ── */
.footer {
  background: var(--warm);
  border-radius: 3px;
  padding: 1.8rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-logo:hover { opacity: 0.7; }
.footer-logo span { color: var(--terra); }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-size: 0.75rem;
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ── KEYFRAMES ── */
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

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

@keyframes shimmer {
  from { transform: translateX(-100%) skewX(-15deg); }
  to   { transform: translateX(200%) skewX(-15deg); }
}

@keyframes floatDecor {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,98,58,0.25); }
  50%      { box-shadow: 0 0 0 5px rgba(200,98,58,0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-inner { padding: 1rem 1.5rem; }
  .nav-cta   { font-size: 0.72rem; padding: 0.55rem 1rem; }

  .hero { padding: 3rem 1.8rem 2.8rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .hero-decor { display: none; }

  .problem, .team, .benefits, .process,
  .testimonials, .pricing, .faq { padding: 2.5rem 1.8rem; }

  .cta-final { padding: 3.5rem 1.8rem 4rem; }
  .cta-title { font-size: 2rem; }

  .footer { padding: 1.5rem 1.8rem; flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { flex-direction: column; gap: 0.5rem; align-items: center; }

  .problem-grid { grid-template-columns: 1fr; }
  .problem-card.answer { grid-column: 1; }
  .team-grid   { grid-template-columns: 1fr; }
  .testi-grid  { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .benefit-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .benefit-tag { text-align: left; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, .hero-line, .hero .eyebrow, .hero-sub,
  .hero-actions, .reveal, .hero::before, .cta-final::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
