/* ============================================
   Revenir vers Soi — Feuille de style principale
   ============================================ */

/* ---------- Variables de design ---------- */
:root {
  --cream:           #F7F2EC;
  --cream-dark:      #EDE5D8;
  --warm-white:      #FDFAF6;
  --brown-dark:      #3D2F24;
  --brown-medium:    #7A5C40;
  --rose-gold:       #C4977A;
  --rose-gold-light: #D9BCA8;
  --rose-gold-pale:  #EEE0D6;
  --sage:            #8A9E7A;
  --sage-light:      #B5C7A8;
  --sage-pale:       #DDE8D6;
  --text-primary:    #3D2F24;
  --text-secondary:  #6B5142;
  --text-muted:      #9E897A;
  --border:          #DDD0C0;
  --shadow-soft:     0 4px 24px rgba(90, 60, 40, 0.08);
  --shadow-medium:   0 8px 40px rgba(90, 60, 40, 0.12);
  --radius-sm:       8px;
  --radius-md:       16px;
  --radius-lg:       32px;
  --transition:      0.3s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--brown-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-muted    { color: var(--text-muted); }
.text-center   { text-align: center; }
.italic        { font-style: italic; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background-color: var(--warm-white);
}

.section--sage {
  background-color: var(--sage-pale);
}

.section--rose {
  background-color: var(--rose-gold-pale);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  min-height: 48px;
}

.btn--primary {
  background-color: var(--rose-gold);
  color: var(--warm-white);
}

.btn--primary:hover {
  background-color: var(--brown-medium);
  color: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn--outline {
  background-color: transparent;
  color: var(--rose-gold);
  border: 2px solid var(--rose-gold);
}

.btn--outline:hover {
  background-color: var(--rose-gold);
  color: var(--warm-white);
  transform: translateY(-2px);
}

.btn--white {
  background-color: var(--warm-white);
  color: var(--brown-medium);
}

.btn--white:hover {
  background-color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(247, 242, 236, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-soft);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.navbar__logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--brown-medium);
  line-height: 1.1;
}

.navbar__logo-sub {
  font-size: 0.7rem;
  font-family: 'Lato', sans-serif;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar__nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--rose-gold);
  background-color: var(--rose-gold-pale);
}

.navbar__cta {
  background-color: var(--rose-gold) !important;
  color: var(--warm-white) !important;
  font-weight: 700 !important;
}

.navbar__cta:hover {
  background-color: var(--brown-medium) !important;
}

/* Hamburger (mobile) */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brown-medium);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  background-color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--rose-gold-pale) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--sage-pale) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  background-color: var(--sage-pale);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero__title {
  margin-bottom: 24px;
  font-weight: 400;
}

.hero__title em {
  color: var(--rose-gold);
  font-style: italic;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo-wrap::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--rose-gold-pale) 30%, transparent 70%);
  border-radius: 50%;
}

.hero__logo-img {
  width: 380px;
  max-width: 90%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  position: relative;
  z-index: 1;
}

/* ---------- Section header ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---------- Feature cards (Pourquoi) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon--rose { background-color: var(--rose-gold-pale); }
.card__icon--sage { background-color: var(--sage-pale); }
.card__icon--cream { background-color: var(--cream-dark); }

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ---------- Approach section ---------- */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.approach__steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background-color: var(--rose-gold-pale);
  color: var(--rose-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.step__body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--brown-dark);
}

.step__body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.approach__text .section-header {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* ---------- Quote / témoignage ---------- */
.quote-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  position: relative;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 9rem;
  color: var(--rose-gold-pale);
  line-height: 1;
  pointer-events: none;
}

.quote-block blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--brown-medium);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.quote-block cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
}

/* ---------- CTA section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-dark) 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 151, 122, 0.25) 0%, transparent 70%);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(138, 158, 122, 0.2) 0%, transparent 70%);
}

.cta-section__inner {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--warm-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(253, 250, 246, 0.8);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

.cta-section .btn--actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--brown-dark);
  color: rgba(253, 250, 246, 0.75);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand img {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) opacity(0.85);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(253, 250, 246, 0.65);
  margin-bottom: 0;
}

.footer__col h4 {
  color: var(--warm-white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul a {
  font-size: 0.9rem;
  color: rgba(253, 250, 246, 0.65);
  transition: color var(--transition);
}

.footer__col ul a:hover {
  color: var(--rose-gold-light);
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(253, 250, 246, 0.1);
  margin-bottom: 24px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(253, 250, 246, 0.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Decorative divider ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 48px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider__icon {
  width: 24px;
  height: 24px;
  color: var(--rose-gold-light);
}

/* ---------- Scroll reveal (JS-driven) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .approach {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__visual { order: -1; }

  .hero__logo-wrap::before {
    width: 280px;
    height: 280px;
  }

  .hero__logo-img {
    width: 260px;
  }

  .hero__desc { max-width: 100%; }

  .hero__actions {
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .navbar__nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-medium);
  }

  .navbar__nav.open {
    display: flex;
  }

  .navbar__nav li {
    width: 100%;
  }

  .navbar__nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .navbar__toggle {
    display: flex;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .quote-block {
    padding: 48px 16px;
  }

  .quote-block::before {
    font-size: 6rem;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Accessibilité ---------- */
:focus-visible {
  outline: 3px solid var(--rose-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
