/* ==========================================================================
   Happy Move Sàrl — Design tokens
   ========================================================================== */
:root {
  --green-forest: #2D6B50;
  --green-forest-dark: #1f4d3a;
  --green-sage: #6BBF9E;
  --green-light: #EAF3DE;
  --terracotta: #C1765A;
  --blue: #185FA5;
  --grey: #5F5E5A;
  --beige: #E8DFC0;
  --dark: #1a1a1a;
  --text-secondary: #666666;
  --white: #FFFFFF;

  --radius: 8px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

h1, h2, h3 {
  font-family: 'Lora', serif;
  line-height: 1.3;
}

h1 { font-size: 36px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 2000;
  background: var(--green-forest);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 8px;
}

/* Placeholder for missing images */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #dde8e0;
  color: var(--green-forest-dark);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green-forest);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-forest-dark);
}

.btn-white {
  background: var(--white);
  color: var(--green-forest);
}

.btn-white:hover {
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.bandeau-top {
  background: var(--green-forest);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
}

.header-main {
  background: var(--white);
  transition: box-shadow var(--transition);
}

.site-header.scrolled .header-main {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--green-forest);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  transition: color var(--transition);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--green-forest);
}

.header-cta {
  white-space: nowrap;
  padding: 10px 22px;
  font-size: 15px;
}

/* Contact rapide — masqué sur desktop (redondant avec le CTA), visible en priorité sur mobile */
.header-contact {
  display: none;
  gap: 12px;
}

.header-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-light);
  font-size: 18px;
  transition: background var(--transition), transform var(--transition);
}

.header-contact-link:hover {
  background: var(--green-sage);
  transform: translateY(-2px);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark);
  transition: transform var(--transition), opacity var(--transition);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background:
    linear-gradient(rgba(45, 107, 80, 0.8), rgba(45, 107, 80, 0.8)),
    #1a3d2b;
  color: var(--white);
  padding: 72px 0;
}

.hero-home {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.68) 38%, rgba(0, 0, 0, 0.34) 68%, rgba(0, 0, 0, 0.14) 100%),
    url("Images/fond happy move.webp") center center / cover no-repeat;
  min-height: 720px;
  display: flex;
  align-items: center;
}

.hero-home .hero-inner {
  grid-template-columns: minmax(0, 620px);
}

.hero-home .hero-subtitle {
  max-width: 680px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.badge-dark {
  background: rgba(45, 107, 80, 0.12);
  color: var(--green-forest);
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-family: 'Lora', serif;
  font-size: 26px;
  font-weight: 700;
}

.stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-image .img-placeholder {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  min-height: 340px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Section heading (shared)
   ========================================================================== */
.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 17px;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  padding: 88px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-card-header {
  padding: 28px 24px;
  color: var(--white);
}

.service-card-header .service-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.service-card-header h3 {
  color: var(--white);
  margin-bottom: 4px;
}

.service-card-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.service-ems { background: var(--green-forest); }
.service-debarras { background: var(--terracotta); }
.service-bail { background: var(--blue); }
.service-entreprise { background: var(--grey); }

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
  flex: 1;
}

.service-link {
  font-weight: 700;
  color: var(--green-forest);
  font-size: 15px;
  transition: color var(--transition);
}

.service-link:hover {
  color: var(--green-forest-dark);
}

/* ==========================================================================
   Départ en EMS highlight
   ========================================================================== */
.ems-highlight {
  padding: 88px 0;
  background: var(--green-light);
}

.ems-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ems-photo {
  width: 100%;
  min-height: 380px;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ems-image .img-placeholder {
  min-height: 380px;
}

.ems-text p {
  color: var(--text-secondary);
  margin: 20px 0 24px;
}

.ems-text h2 {
  margin-bottom: 4px;
}

.checklist {
  margin-bottom: 32px;
}

.checklist li {
  padding: 6px 0;
  font-weight: 600;
}

/* ==========================================================================
   Un service pour chaque situation (value props)
   ========================================================================== */
.value-props {
  padding: 88px 0;
  background: var(--white);
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.value-prop {
  text-align: center;
}

.value-prop .service-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 14px;
}

.value-prop h3 {
  margin-bottom: 8px;
}

.value-prop p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ==========================================================================
   Comment ça marche / Notre processus
   ========================================================================== */
.how-it-works {
  padding: 88px 0;
  background: #f8f6f0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 18px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ==========================================================================
   Nos réalisations
   ========================================================================== */
.realisations {
  padding: 88px 0;
  background: #f8f6f0;
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.realisations-grid .img-placeholder {
  min-height: 220px;
}

.realisation-photo {
  width: 100%;
  min-height: 220px;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ==========================================================================
   Témoignages
   ========================================================================== */
.testimonials {
  padding: 88px 0;
  background: #f8f6f0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.stars {
  color: var(--terracotta);
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--dark);
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  background: var(--green-forest);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-final h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

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

.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  transition: background var(--transition), transform var(--transition);
}

.contact-channel:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.contact-channel strong {
  font-size: 16px;
}

.contact-channel span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  display: inline-block;
  color: var(--green-sage);
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col h3 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.footer-social a {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-sage);
}

.footer-social a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Responsive — Tablette (< 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid,
  .steps-grid,
  .value-props-grid,
  .realisations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid,
  .contact-channels {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    gap: 18px;
  }
}

.mobile-cta-bar {
  display: none;
}

/* ==========================================================================
   Responsive — Mobile (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: max-height var(--transition);
  }

  .main-nav.open {
    max-height: 400px;
  }

  .main-nav a {
    padding: 14px 0;
    width: 100%;
    text-align: center;
  }

  .header-cta {
    display: none;
  }

  .header-contact {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    display: none;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    padding-bottom: 68px;
  }

  .mobile-cta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: var(--green-forest);
    color: var(--white);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    text-align: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  }

  .mobile-cta-bar:hover {
    background: var(--green-forest-dark);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
  }

  .stat strong {
    font-size: 20px;
  }

  .stat span {
    font-size: 12px;
  }

  .services-grid,
  .steps-grid,
  .value-props-grid,
  .realisations-grid,
  .testimonials-grid,
  .contact-channels,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ems-inner {
    grid-template-columns: 1fr;
  }

  .ems-image {
    order: -1;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}
