/* ====== RESET SIMPLE ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #0b1120;
}

/* ====== VARIABLES ====== */
:root {
  --color-bg: #0b1120;
  --color-surface: #ffffff;
  --color-surface-soft: #f3f4f6;
  --color-surface-dark: #020617;
  --color-border-soft: #e5e7eb;
  --color-primary: #1e3a8a;
  --color-primary-bright: #3b82f6;
  --color-secondary: #111827;
  --color-text-main: #111827;
  --color-text-muted: #4b5563;
  --color-accent: #f59e0b;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.15);
  --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.08);
  --max-width: 1120px;
}

/* ====== UTILS ====== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  background-color: #f3f4f6;
}

.section:nth-of-type(even) {
  background-color: #e5e7eb;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.section-header p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ====== HEADER ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
}

.logo-bg {
  fill: var(--color-primary);
}

.logo-text-top {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  fill: #ffffff;
}

.logo-text-bottom {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: 32px;
  fill: #facc15;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  color: #e5e7eb;
  font-size: 1.25rem;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Nav */
.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary-bright), #38bdf8);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Header CTA */
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-image:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.35), transparent 55%),
    linear-gradient(to bottom, #020617, #020617 45%, #030712);
  color: #f9fafb;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("https://images.pexels.com/photos/4254164/pexels-photo-4254164.jpeg?auto=compress&cs=tinysrgb&w=1200");
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 3rem;
  padding: 5rem 1.5rem;
}

.hero-text h1 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(2.4rem, 3vw + 1rem, 3.2rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.accent {
  background: linear-gradient(to right, #3b82f6, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text p {
  color: #cbd5f5;
  max-width: 32rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}

.hero-badges li {
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.65);
}

/* Hero card */
.hero-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(18px);
}

.hero-card h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.hero-card p {
  color: #cbd5f5;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.hero-list {
  list-style: none;
  margin-top: 1.25rem;
}

.hero-list li {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.3rem;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(to right, #1e3a8a, #3b82f6);
  color: white;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
}

.btn-full {
  width: 100%;
}

/* ====== GRID ====== */
.grid {
  display: grid;
  gap: 1.5rem;
}

/* Services */
.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.service-card h3 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.service-card ul {
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.service-card li {
  margin-bottom: 0.15rem;
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.service-card-highlight {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 60%), #f9fafb;
}

/* Valeurs */
.section-emphasis {
  background: #111827;
  color: #e5e7eb;
}

.values-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-item h3 {
  font-family: "Montserrat", system-ui, sans-serif;
  margin-bottom: 0.4rem;
}

.value-item p {
  font-size: 0.92rem;
  color: #cbd5f5;
}

/* Projets */
.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card h3 {
  font-family: "Montserrat", system-ui, sans-serif;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.project-card p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin-bottom: 0.6rem;
}

.project-card ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.project-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.project-tag-secondary {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

/* Témoignages */
.section-dark {
  background: #020617;
  color: #e5e7eb;
  padding: 4.5rem 0;
}

.testimonials-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.testimonial {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.5rem 1.4rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 65%), rgba(15, 23, 42, 0.85);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 0.75rem;
  color: #e5e7eb;
}

.testimonial-author {
  font-size: 0.88rem;
  color: #cbd5f5;
}

/* À propos */
.about-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
}

.about-grid h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-grid p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about-highlights {
  display: grid;
  gap: 1rem;
}

.about-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  padding: 0.9rem 1rem;
  background: #f9fafb;
}

.about-number {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

.about-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* CTA */
.cta-section {
  background: linear-gradient(to right, #1e3a8a, #3b82f6);
  color: white;
  padding: 3.5rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.cta-inner p {
  color: #e5e7eb;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
}

/* Contact */
.section-contact {
  background: #f3f4f6;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.7fr);
  gap: 2.75rem;
}

.contact-grid h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.contact-grid p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.contact-infos {
  list-style: none;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-infos li + li {
  margin-top: 0.25rem;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 0.85rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #374151;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.65rem;
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

textarea {
  resize: vertical;
}

.form-group-inline {
  margin-top: 0.4rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.checkbox-label input {
  width: auto;
}

/* ====== FOOTER ====== */
.site-footer {
  background: #020617;
  color: #9ca3af;
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.footer-block p {
  font-size: 0.88rem;
}

.footer-block ul {
  list-style: none;
  font-size: 0.88rem;
}

.footer-block li + li {
  margin-top: 0.2rem;
}

.footer-block a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-block a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  border-top: 1px solid rgba(55, 65, 81, 0.8);
  padding: 0.8rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #e5e7eb;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.4fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .contact-grid,
  .cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(75, 85, 99, 0.8);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1.5rem 1.2rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  .main-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-header {
    display: none;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 5rem;
  }

  .hero-card {
    order: -1;
  }

  .services-grid,
  .projects-grid,
  .values-grid,
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .contact-form {
    padding-inline: 1.25rem;
  }
}
