/* =========================================================
   Lorem Ipsum — Feuille de styles
   ========================================================= */

/* ----- Variables & reset ----- */
:root {
  --bg: #0a140e;
  --bg-alt: #0f1c14;
  --surface: #142519;
  --text: #eef7f0;
  --muted: #9fc2ac;
  --primary: #16a34a;
  --primary-2: #34d399;
  --accent: #a3e635;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
  --max: 1140px;
  --gradient: linear-gradient(135deg, var(--primary), var(--primary-2));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Typographie ----- */
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-2);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* ----- Boutons ----- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 30px -12px var(--primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--primary); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ----- Header / Navigation ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 14, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.brand span { color: var(--primary-2); }
.brand-mark {
  color: var(--accent);
  font-size: 1rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-menu a:hover { color: var(--text); }
.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(22, 163, 74, 0.25), transparent 70%),
    radial-gradient(50% 50% at 0% 30%, rgba(52, 211, 153, 0.18), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }

.hero-stats {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-stats strong { display: block; font-size: 1.8rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* Hero visuel animé */
.hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--gradient);
  filter: blur(8px);
  opacity: 0.85;
  animation: float 6s ease-in-out infinite;
}
.card-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.card-1 { top: 10%; left: 0; animation-delay: 0.2s; }
.card-2 { bottom: 12%; right: 0; animation-delay: 1.2s; }
.card-3 { bottom: 30%; left: 8%; animation-delay: 2s; }

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

/* ----- Sections génériques ----- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-sub { color: var(--muted); }

.grid { display: grid; gap: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

/* ----- Services ----- */
.services-grid { grid-template-columns: repeat(4, 1fr); }
.service-card { transition: transform 0.25s ease, border-color 0.25s ease; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(22, 163, 74, 0.5); }
.service-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(22, 163, 74, 0.15);
  margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* ----- À propos ----- */
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.about-visual { display: flex; justify-content: center; }
.about-blob {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: var(--gradient);
  animation: morph 8s ease-in-out infinite;
  box-shadow: var(--shadow);
}
@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 40% 60% / 60% 40% 60% 40%; }
}
.about-content p { color: var(--muted); margin-bottom: 1rem; }
.checklist { list-style: none; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--text); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff; font-size: 0.75rem; font-weight: 700;
}

/* ----- Contact ----- */
.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
}
.field textarea { resize: vertical; }
.field input.invalid, .field textarea.invalid { border-color: #ff6b6b; }
.error { color: #ff8585; font-size: 0.8rem; display: block; margin-top: 0.3rem; min-height: 1em; }

.hidden { position: absolute; left: -9999px; opacity: 0; }

.form-feedback { margin-top: 1rem; font-weight: 600; }
.form-feedback.success { color: #4ade80; }
.form-feedback.error { color: #ff8585; }

.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.2rem; }
.contact-info a:hover { color: var(--primary-2); }

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner p { color: var(--muted); font-size: 0.9rem; }
.back-to-top {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.back-to-top:hover { transform: translateY(-3px); background: var(--gradient); }

/* ----- Animations au scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; order: -1; }
  .about-visual { order: -1; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { padding: 0.4rem 0; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Ajouts multi-pages
   ========================================================= */

/* ----- Lien de navigation actif ----- */
.nav-menu a.active { color: var(--text); position: relative; }
.nav-menu a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px;
  background: var(--gradient);
}

/* ----- Hero des sous-pages ----- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(22, 163, 74, 0.2), transparent 70%),
    radial-gradient(50% 50% at 0% 30%, rgba(52, 211, 153, 0.14), transparent 70%);
}
.page-hero .container { max-width: 780px; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { margin: 0 auto; }

/* ----- Fil d'Ariane ----- */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--primary-2); }

/* ----- Contenu rédactionnel ----- */
.prose { max-width: 780px; margin: 0 auto; }
.prose p { color: var(--muted); margin-bottom: 1.2rem; }
.prose h3 { margin: 2.2rem 0 0.8rem; color: var(--text); }
.prose ul { margin: 0 0 1.2rem 1.2rem; color: var(--muted); }
.prose li { margin-bottom: 0.5rem; }

/* ----- Grilles génériques ----- */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ----- Cartes "Pour qui" / Techniques ----- */
.info-card { transition: transform 0.25s ease, border-color 0.25s ease; }
.info-card:hover { transform: translateY(-6px); border-color: rgba(22, 163, 74, 0.5); }
.info-card h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.info-card p { color: var(--muted); font-size: 0.95rem; }
.info-icon { font-size: 1.5rem; }

/* ----- Étapes numérotées ----- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--muted); }

/* ----- Témoignages ----- */
.quote-card { display: flex; flex-direction: column; gap: 1.2rem; }
.quote-card blockquote { color: var(--text); font-style: italic; font-size: 1.02rem; }
.quote-author { display: flex; align-items: center; gap: 0.8rem; }
.avatar {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.quote-author strong { display: block; }
.quote-author span { color: var(--muted); font-size: 0.85rem; }

/* ----- Bandeau d'appel à l'action ----- */
.cta-band .card { text-align: center; padding: clamp(2rem, 5vw, 3.5rem); }
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 1.8rem; }

/* ----- Liens de pied de page ----- */
.footer-links { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-2); }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
