/* ============================================================
   Mon Intérieur Bonheur — Custom CSS
   Bootstrap 5 overrides + brand styles
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --cream:            #FAF7F3;
  --cream-dark:       #F0E9DF;
  --terracotta:       #C97D67;
  --terracotta-dark:  #B06550;
  --sage:             #C6CDBC;
  --gold:             #C9A84C;
  --text:             #2C2520;
  --text-light:       #7A6458;
  --navbar-height:    72px;

  /* Bootstrap overrides */
  --bs-body-font-family: 'Raleway', sans-serif;
  --bs-body-color:       var(--text);
  --bs-body-bg:          var(--cream);
  --bs-primary:          var(--terracotta);
  --bs-primary-rgb:      201, 125, 103;
  --bs-link-color:       var(--terracotta);
  --bs-link-hover-color: var(--terracotta-dark);
  --bs-border-radius:    0;
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

* { -webkit-tap-highlight-color: rgba(198, 205, 188, .35); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

em { font-style: italic; color: var(--terracotta); }

p { line-height: 1.8; color: var(--text-light); }

strong { color: var(--text); font-weight: 600; }

a { transition: color .2s; }

img { max-width: 100%; }

/* ── Eyebrow label ──────────────────────────────────────────── */
.eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: .6rem;
}

/* ── Divider ────────────────────────────────────────────────── */
.sep {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0 1.75rem;
}
.sep-center { margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .75rem 1.8rem;
  border-radius: 0;
  transition: all .25s;
}

.btn-primary {
  --bs-btn-bg:              var(--terracotta);
  --bs-btn-border-color:    var(--terracotta);
  --bs-btn-hover-bg:        var(--terracotta-dark);
  --bs-btn-hover-border-color: var(--terracotta-dark);
  --bs-btn-active-bg:       var(--terracotta-dark);
  --bs-btn-active-border-color: var(--terracotta-dark);
  --bs-btn-focus-shadow-rgb: 198, 205, 188;
  --bs-btn-disabled-bg:     var(--terracotta);
  --bs-btn-disabled-border-color: var(--terracotta);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  color: #fff;
}

.btn-outline-primary {
  --bs-btn-color:           var(--terracotta);
  --bs-btn-border-color:    var(--terracotta);
  --bs-btn-hover-bg:        var(--terracotta);
  --bs-btn-hover-border-color: var(--terracotta);
  --bs-btn-hover-color:     #fff;
  --bs-btn-active-bg:       var(--terracotta-dark);
  --bs-btn-active-border-color: var(--terracotta-dark);
  --bs-btn-active-color:    #fff;
  --bs-btn-focus-shadow-rgb: 198, 205, 188;
}

.btn-outline-light {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.btn-outline-light:hover {
  background-color: #fff;
  color: var(--terracotta);
}

/* ── Section backgrounds ────────────────────────────────────── */
.bg-cream      { background-color: var(--cream); }
.bg-cream-dark { background-color: var(--cream-dark); }
.bg-terracotta { background-color: var(--terracotta); color: #fff; }
.bg-text       { background-color: var(--text); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  height: var(--navbar-height);
  background-color: var(--cream);
  border-bottom: 1px solid rgba(44,37,32,.08);
  transition: background-color .3s, box-shadow .3s;
}

.navbar.scrolled {
  background-color: rgba(250,247,243,.97);
  box-shadow: 0 2px 20px rgba(44,37,32,.08);
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  padding: .4rem .9rem;
  transition: color .2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--terracotta);
}

/* Dropdown */
.navbar-nav .dropdown-menu {
  border: none;
  border-radius: 0;
  background-color: var(--cream);
  box-shadow: 0 8px 24px rgba(44,37,32,.1);
  min-width: 220px;
  padding: .5rem 0;
  margin-top: 0;
}

.navbar-nav .dropdown-item {
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  padding: .55rem 1.25rem;
}
.navbar-nav .dropdown-item:hover {
  background-color: var(--cream-dark);
  color: var(--terracotta);
}

/* CTA nav item */
.nav-cta .nav-link {
  background-color: var(--terracotta);
  color: #fff !important;
  padding: .45rem 1.1rem;
  margin-left: .4rem;
}
.nav-cta .nav-link:hover {
  background-color: var(--terracotta-dark);
  color: #fff !important;
}

/* Mobile toggler */
.navbar-toggler {
  border: none;
  padding: 4px 8px;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232C2520' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--cream-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .22;
  transform: scale(1.05);
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-content .lead {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background-color: var(--cream-dark);
  padding: calc(var(--navbar-height) + 4rem) 0 4rem;
  text-align: center;
}

.page-hero p { color: var(--text-light); font-size: 1.05rem; }

/* ── Section spacing ────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 7rem 0; }

/* ── Quote band ─────────────────────────────────────────────── */
.quote-band {
  background-color: var(--terracotta);
  padding: 3.5rem 0;
  text-align: center;
}

.quote-band blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: #fff;
  margin: 0;
  font-weight: 400;
  letter-spacing: .02em;
}

/* ── About section ──────────────────────────────────────────── */
.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
}

.about-img::before {
  content: '';
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 2px solid var(--gold);
  z-index: -1;
}

/* ── Service cards ──────────────────────────────────────────── */
.service-card {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 {
  font-size: 1.6rem;
  margin-bottom: .75rem;
}

.service-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.service-card-body ul li {
  font-size: .9rem;
  color: var(--text-light);
  padding: .35rem 0;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.service-card-body ul li::before {
  content: '—';
  color: var(--terracotta);
  font-weight: 700;
  flex-shrink: 0;
}

/* Large service card (prestations page) */
.service-card-lg {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-lg .card-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.service-card-lg .card-body-inner {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-lg .card-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 1.1rem;
}

.service-card-lg h2 {
  margin-bottom: .75rem;
}

/* ── Portrait section ───────────────────────────────────────── */
.portrait-photo {
  position: relative;
}

.portrait-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}

.portrait-photo::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--sage);
  z-index: -1;
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--sage), transparent);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(198,205,188,.3);
}

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

.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta);
  min-width: 68px;
  flex-shrink: 0;
  margin: 0;
  line-height: 1;
  padding-top: 3px;
}

.timeline-label {
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

/* ── Badge ──────────────────────────────────────────────────── */
.fee-du-tri-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--sage);
  padding: 1.5rem;
  margin-top: 2.5rem;
}

.fee-du-tri-badge img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.fee-du-tri-badge p {
  font-size: .88rem;
  margin: 0;
  line-height: 1.7;
}

/* ── Steps ──────────────────────────────────────────────────── */
.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

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

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
  min-width: 44px;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.1rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
}

.step-content p { margin: 0; font-size: .92rem; }

.step-content .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-top: .4rem;
}

/* ── Option cards ───────────────────────────────────────────── */
.option-card {
  background: #fff;
  padding: 2rem;
  height: 100%;
  border-top: 3px solid var(--gold);
}

.option-card h3 {
  font-size: 1.4rem;
  margin-bottom: .75rem;
}

.option-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.option-card ul li {
  font-size: .88rem;
  color: var(--text-light);
  padding: .3rem 0;
  display: flex;
  gap: .5rem;
}

.option-card ul li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
}

.option-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--terracotta);
}

/* ── Benefit cards ──────────────────────────────────────────── */
.benefit-card {
  background: #fff;
  padding: 1.75rem;
  border-left: 3px solid var(--sage);
  height: 100%;
}

.benefit-card h4 {
  font-size: 1.1rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.benefit-card p { margin: 0; font-size: .9rem; }

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--cream-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

.gallery-item:hover img { transform: scale(1.04); }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,22,18,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  color: #fff;
  font-size: 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.5rem;
  background: rgba(255,255,255,.1);
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── Contact section ────────────────────────────────────────── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item i {
  font-size: 1.1rem;
  color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-item a {
  color: var(--text);
  text-decoration: none;
}
.contact-info-item a:hover { color: var(--terracotta); }

/* Form */
.form-label {
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .4rem;
}

.form-control,
.form-select {
  border: 1px solid rgba(44,37,32,.2);
  border-radius: 0;
  background-color: #fff;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: .9rem;
  padding: .65rem .9rem;
  transition: border-color .2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(201,125,103,.12);
  background-color: #fff;
}

textarea.form-control { min-height: 160px; resize: vertical; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--text);
  color: rgba(255,255,255,.65);
  padding: 4rem 0 0;
}

.site-footer h5 {
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

.site-footer p { color: rgba(255,255,255,.6); font-size: .88rem; }

.site-footer .footer-logo img {
  height: 200px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer ul a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}
.site-footer ul a:hover { color: #fff; }

.site-footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .88rem;
}
.site-footer .footer-contact-item i {
  color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 2px;
}
.site-footer .footer-contact-item a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
.site-footer .footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ── Back to top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--terracotta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--terracotta-dark); color: #fff; }

/* ── Hero logo ──────────────────────────────────────────────── */
.hero-logo-img {
  width: min(380px, 100%);
  opacity: .88;
  filter: drop-shadow(0 8px 40px rgba(201,125,103,.18));
  animation: hero-logo-float 6s ease-in-out infinite;
}

@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── GSAP initial states ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .navbar-collapse { background: var(--cream); padding: 1rem; }

  .hero { min-height: 100svh; padding-top: var(--navbar-height); }

  .about-img::before { display: none; }
  .portrait-photo::after { display: none; }

  .timeline::before { left: 56px; }
  .timeline-year { min-width: 56px; font-size: 1.25rem; }

  .fee-du-tri-badge { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575.98px) {
  .section { padding: 3.5rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .service-card-img { height: 200px; }
}
