/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-accent: #41b883;
  --color-accent-hover: #27c981;
  --color-dark: #25362e;
  --color-text: #585858;
  --color-text-dark: #000;
  --color-bg: #ffffff;
  --color-bg-hero: #f2efef;
  --color-bg-alt: #f5f7fa;
  --color-bg-light: #f6f6f6;
  --color-orange: #ff9f29;
  --color-border: #b7b7b7;
  --font-main: 'Poppins', sans-serif;
  --max-width: 1140px;
  --header-height: 80px;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-dark);
}

p {
  margin-bottom: 16px;
}

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

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-bg);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: transform 0.4s ease;
}

.header.hidden {
  transform: translateY(-100%);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 45px;
  width: auto;
  transition: height 0.3s;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
  padding: 10px 18px;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--color-accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
  margin-left: 10px;
}

.header-cta:hover {
  background: var(--color-accent-hover);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle span:nth-child(1) { width: 24px; }
.mobile-toggle span:nth-child(2) { width: 18px; }
.mobile-toggle span:nth-child(3) { width: 24px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  color: var(--color-dark);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  font-family: var(--font-main);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
}

.btn-dark {
  background: var(--color-dark);
  color: #fff;
}

.btn-dark:hover {
  background: #1a2a22;
}

.btn-white {
  background: #fff;
  color: var(--color-dark);
}

.btn-white:hover {
  background: #f0f0f0;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ===== SECTION LABELS (divider + label pattern from Elementor) ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.section-label .line {
  width: 70px;
  height: 2px;
  background: var(--color-accent);
}

.section-label span {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ===== HERO ===== */
.hero {
  padding: 7em 0 3em;
  padding-top: calc(var(--header-height) + 7em);
  background-color: var(--color-bg-hero);
  background-image: url('/images/line-group.png');
  background-position: bottom right;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.hero-label .line {
  width: 70px;
  height: 2px;
  background: var(--color-accent);
}

.hero-label span {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 20px;
  line-height: 1.15;
}

.hero .animated-text {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 8px;
}

.hero .btn {
  margin-top: 2em;
  margin-bottom: 5em;
}

.hero-image {
  flex: 1;
  position: relative;
  text-align: right;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  border-radius: 0;
}

/* ===== SERVICES ===== */
.services {
  padding: 7em 0 8em;
  background-color: var(--color-bg);
  overflow: hidden;
}

.services .container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.services-cards {
  flex: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-card {
  border: 2px solid var(--color-accent);
  border-radius: 24px;
  padding: 20px 30px 30px;
  margin: 15px;
  text-align: center;
  background: var(--color-bg);
  transition: border-color 0.4s, border-radius 0.4s;
  cursor: pointer;
  z-index: 1;
}

.service-card:hover {
  border-color: var(--color-accent-hover);
  border-radius: 40px;
}

.service-card .lottie-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
}

.services-text {
  flex: 1;
}

.services-text h2 {
  font-size: 36px;
  margin-bottom: 4px;
}

.services-text h2:first-of-type {
  font-size: 36px;
}

.services-text .description {
  margin-top: 20px;
}

.services-text .description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.services-text .btn {
  margin-top: 24px;
}

/* ===== REALISATIONS ===== */
.realisations {
  padding: 7em 0;
  overflow: hidden;
}

.realisations-header {
  margin-bottom: 40px;
}

.realisations-header h2 {
  font-size: 36px;
  margin-bottom: 4px;
}

.realisations-header h2 + h2 {
  font-weight: 400;
  font-size: 22px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.realisations-header p {
  font-size: 16px;
  color: var(--color-text);
  max-width: 600px;
}

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

.realisation-card {
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-bg);
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.realisation-card:hover {
  transform: translateY(-4px);
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.12);
}

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

.realisation-card-body {
  padding: 20px;
}

.realisation-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.realisation-card-body h3 a {
  color: inherit;
  transition: color 0.2s;
}

.realisation-card-body h3 a:hover {
  color: var(--color-accent);
}

.realisation-card-body p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
}

/* Compteurs */
.counters {
  display: flex;
  gap: 60px;
  margin: 40px 0;
}

.counter {
  text-align: center;
}

.counter .number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.counter .label {
  font-size: 14px;
  color: var(--color-text);
  margin-top: 4px;
}

.realisations-footer {
  text-align: left;
}

/* ===== ATOUTS ===== */
.atouts {
  padding: 7em 0;
  background-color: var(--color-bg-alt);
  overflow: hidden;
  position: relative;
}

.atouts-header {
  margin-bottom: 40px;
}

.atouts-header h2 {
  font-size: 36px;
}

.atouts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.atout-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.atout-item p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
}

/* ===== AGENCE ===== */
.agence {
  padding: 7em 0;
  overflow: hidden;
}

.agence .container {
  display: flex;
  gap: 60px;
  align-items: center;
}

.agence-text {
  flex: 1;
}

.agence-text h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.agence-text .soustitre {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.agence-text .description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.agence-text .btn {
  margin-top: 24px;
}

.agence-image {
  flex: 1;
}

.agence-image img {
  width: 100%;
  border-radius: 12px;
}

/* ===== TEMOIGNAGES ===== */
.temoignages {
  padding: 7em 0;
  background-color: var(--color-bg-alt);
  overflow: hidden;
}

.temoignages-header {
  margin-bottom: 40px;
}

.temoignages-header h2 {
  font-size: 36px;
  margin-bottom: 4px;
}

.temoignages-header h2 + h2 {
  font-weight: 400;
  font-size: 22px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.temoignages-header p {
  font-size: 16px;
  color: var(--color-text);
}

.temoignages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.temoignage-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.06);
}

.temoignage-card blockquote {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 24px;
}

.temoignage-card blockquote::before {
  content: '\201C';
  font-size: 40px;
  color: var(--color-accent);
  line-height: 0;
  vertical-align: -12px;
  margin-right: 4px;
}

.temoignage-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.temoignage-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.temoignage-author-info .nom {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-dark);
}

.temoignage-author-info .entreprise {
  font-size: 13px;
  color: var(--color-text);
}

.temoignage-author-info a {
  font-size: 13px;
  color: var(--color-accent);
}

.temoignage-author-info a:hover {
  text-decoration: underline;
}

/* ===== CTA FINAL ===== */
.cta-section {
  background: var(--color-dark);
  color: #fff;
  padding: 6em 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-dark);
  color: #fff;
  padding: 60px 0 24px;
}

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

.footer-brand .footer-logo img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.2s;
}

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

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

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

  .hero h1 {
    font-size: 36px;
  }

  .hero-image {
    text-align: center;
    max-width: 500px;
  }

  .services .container {
    flex-direction: column;
  }

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

  .atouts-list {
    grid-template-columns: 1fr;
  }

  .agence .container {
    flex-direction: column;
  }

  .agence-image {
    max-width: 500px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 5em 0 2em;
    padding-top: calc(var(--header-height) + 3em);
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .animated-text {
    font-size: 18px;
  }

  .hero .btn {
    margin-bottom: 2em;
  }

  .services,
  .realisations,
  .atouts,
  .agence,
  .temoignages {
    padding: 4em 0;
  }

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

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

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

  .counters {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-section h2 {
    font-size: 24px;
  }

  h2 {
    font-size: 28px !important;
  }
}
