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

:root {
  --green-dark:    #1B5E20;
  --green-main:    #2E7D32;
  --green-medium:  #388E3C;
  --green-light:   #4CAF50;
  --green-pale:    #E8F5E9;
  --green-xpale:   #F1F8F1;
  --white:         #FFFFFF;
  --grey-50:       #F8FAF8;
  --grey-100:      #F1F4F1;
  --grey-200:      #E2E8E2;
  --grey-400:      #9BA89B;
  --grey-600:      #5A6A5A;
  --grey-800:      #2C3A2C;
  --text:          #1A2A1A;
  --text-light:    #4A5A4A;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 2px 12px rgba(46,125,50,0.08);
  --shadow-lg:     0 8px 32px rgba(46,125,50,0.12);
  --transition:    0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--green-main);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(46,125,50,0.25);
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(46,125,50,0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-main);
  border: 2px solid var(--green-main);
}
.btn-secondary:hover {
  background: var(--green-pale);
  transform: translateY(-1px);
}

.btn-nav {
  background: var(--green-main);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
}
.btn-nav:hover {
  background: var(--green-dark);
}

.btn-full { width: 100%; justify-content: center; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: var(--grey-200);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green-main);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.logo-white .logo-icon { background: rgba(255,255,255,0.2); }
.logo-white .logo-text { color: white; }

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

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover { color: var(--green-main); background: var(--green-pale); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===========================
   HERO
=========================== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 50%, var(--green-medium) 100%);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 6px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: #A5D6A7;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-actions .btn-primary {
  background: var(--white);
  color: var(--green-main);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-actions .btn-primary:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

.hero-actions .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.hero-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-trust > span {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-logo {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
}

.trust-sep {
  color: rgba(255,255,255,0.35);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
.hero-wave svg { display: block; }

/* ===========================
   BANDEAU LOGOS DÉFILANTS
=========================== */
.logos-banner {
  background: var(--grey-50);
  padding: 40px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  overflow: hidden;
}

.logos-label {
  text-align: center;
  color: var(--grey-400);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.logos-track-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  cursor: default;
}

.logos-track {
  display: flex;
  gap: 48px;
  width: max-content;
  will-change: transform;
}

.logo-item {
  flex-shrink: 0;
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  height: 72px;
  min-width: 180px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.logo-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow);
}

.logo-card img {
  max-height: 40px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition);
}

.logo-card:hover img {
  filter: grayscale(0%);
}

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

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

.service-card {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card.featured {
  background: var(--green-pale);
  border-color: var(--green-light);
}

.service-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr auto;
  gap: 0 24px;
}

.service-card-wide .service-icon { grid-row: 1; }
.service-card-wide h3 { grid-column: 2; grid-row: 1; align-self: start; }
.service-card-wide .service-subtitle { grid-column: 2; }
.service-card-wide p { grid-column: 1 / -1; }
.service-card-wide .service-list { grid-column: 1 / -1; }
.service-card-wide .service-cta { grid-column: 1 / -1; }

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--green-main);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.service-subtitle {
  color: var(--green-medium);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card > p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin-bottom: 24px;
}

.service-list li {
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-main);
  font-weight: 700;
}

.service-cta {
  color: var(--green-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap var(--transition);
  display: inline-block;
}
.service-cta:hover { color: var(--green-dark); letter-spacing: 0.02em; }

/* ===========================
   MÉTHODE
=========================== */
.methode {
  padding: 96px 0;
  background: var(--grey-50);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-light), var(--green-dark));
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--green-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 auto 24px;
  border: 4px solid var(--grey-50);
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===========================
   RÉFÉRENCES
=========================== */
.references {
  padding: 96px 0;
  background: var(--white);
}

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

.ref-card {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
}

.ref-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ref-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-light);
}

.ref-card p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ref-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===========================
   À PROPOS
=========================== */
.about {
  padding: 96px 0;
  background: var(--green-xpale);
}

.about-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.about-placeholder {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.about-placeholder span {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.about-placeholder p {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 8px;
}

.about-certifs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.certif-badge {
  background: var(--white);
  border: 1px solid var(--grey-200);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.about-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.about-lead {
  font-size: 1.05rem;
  color: var(--green-dark);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-content .btn { margin-top: 8px; }

/* ===========================
   CONTACT
=========================== */
.contact {
  padding: 96px 0;
  background: var(--white);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--grey-50);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-main);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  color: var(--grey-400);
  font-size: 0.8rem;
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--green-main);
}

.contact-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--grey-800);
  padding: 64px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

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

.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.linkedin-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition);
}

.linkedin-link:hover {
  color: #0A66C2;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .refs-grid { grid-template-columns: repeat(2, 1fr); }
  .about-container { grid-template-columns: 1fr; text-align: center; }
  .about-visual { margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .steps::before { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-template-columns: 1fr; }
  .service-card-wide .service-icon,
  .service-card-wide h3,
  .service-card-wide .service-subtitle,
  .service-card-wide p,
  .service-card-wide .service-list,
  .service-card-wide .service-cta { grid-column: 1; }

  .contact-container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .refs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: center; }
}
