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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-header: rgba(10, 10, 15, 0.9);
  --teal: #89aaaf;
  --blue: #97aece;
  --text: #c8cdd3;
  --text-muted: #6b7280;
  --border: #1e1e2e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Liberation Sans', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--blue);
}

/* === Header === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.nav-logo {
  height: 56px;
  width: auto;
}

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

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  background: var(--teal);
  color: var(--bg);
}

/* === Sections === */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

/* === Page section (interior pages) === */
.page-section {
  padding-top: 7rem;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
}

.hero-logo {
  width: min(280px, 60vw);
  height: auto;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid var(--teal);
  border-radius: 6px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.cta:hover {
  background: var(--teal);
  color: var(--bg);
}

/* === Services === */
.services-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--blue);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  color: var(--teal);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card p + p {
  margin-top: 0.75rem;
}

/* === Contact === */
.contact-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--blue);
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-item {
  text-align: center;
  padding: 1.5rem;
}

.contact-item .icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.contact-item h4 {
  color: var(--teal);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item p,
.contact-item a {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.8rem 2rem;
  border: 2px solid var(--teal);
  border-radius: 6px;
  background: transparent;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.contact-form button:hover {
  background: var(--teal);
  color: var(--bg);
}

/* === Legal page === */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h3 {
  color: var(--teal);
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.legal-content em {
  color: var(--text-muted);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status--ok {
  color: #6fcf97;
}

.form-status--err {
  color: #eb5757;
}

.contact-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

footer p {
  max-width: 700px;
  margin: 0 auto;
}

/* === Bilingual === */
html.lang-fr [data-lang="en"] { display: none !important; }
html.lang-en [data-lang="fr"] { display: none !important; }

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 640px) {
  nav {
    padding: 0.5rem 1rem;
  }

  .nav-logo {
    height: 36px;
  }

  .nav-brand-name {
    display: none;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  section {
    padding: 3.5rem 1rem;
  }

  .page-section {
    padding-top: 5.5rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-logo {
    width: min(200px, 55vw);
  }
}
