/* Ayado - Style inspiré Ecady */
:root {
  --bg: #0a0a0b;
  --bg-card: #111113;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --border: #27272a;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --header-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: #06b6d4;
}

.btn-outline {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
}

/* Main sections */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
}

.hero-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-label {
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.hero-line {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.hero-title .outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 520px;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* About */
.about {
  text-align: center;
}

.team-label {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.about .section-title {
  max-width: 760px;
  margin: 0 auto 1rem;
}

.about .section-desc {
  margin: 0 auto 2.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
}

.team-card h3 {
  margin: 0;
  font-size: 1.8rem;
}

.team-role {
  margin: 0.6rem 0 0.75rem;
  color: #10b981;
  font-weight: 600;
}

.team-card p {
  color: var(--text-muted);
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-suffix {
  font-size: 1.5rem;
  color: var(--accent);
}

.stat p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.expertise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.exp-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.exp-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.exp-card.code-card pre {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0,0,0,0.3);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.exp-card.code-card code {
  color: var(--accent);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}

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

.service-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-card li {
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.link-arrow {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Réalisations */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.real-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.real-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.real-card-link:hover {
  border-color: var(--accent);
}

.real-card:hover {
  border-color: var(--accent);
}

.real-image {
  position: relative;
  height: 220px;
  background: #0f0f10;
  overflow: hidden;
}

.real-image iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: top left;
  width: 200%;
  height: 200%;
}

.real-image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: linear-gradient(to top, rgba(10,10,11,0.95), transparent);
  opacity: 0.9;
}

.real-card h4 {
  margin: 1rem 1.25rem 0.25rem;
  font-size: 1.15rem;
}

.real-tag {
  display: inline-block;
  margin: 0 1.25rem;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.real-card p {
  margin: 0.75rem 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.real-tech {
  padding: 0 1.25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.realisations .link-arrow {
  display: inline-block;
  margin-top: 1rem;
}

/* Témoignages */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 0;
}

.testimonial p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial footer {
  font-size: 0.9rem;
  color: var(--text);
}

/* FAQ */
.faq-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.faq-tab {
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.faq-tab:hover,
.faq-tab.active {
  border-color: var(--accent);
  color: var(--accent);
}

.faq-list {
  margin-top: 1rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 0 1.25rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-cta {
  margin-top: 2rem;
  color: var(--text-muted);
}

.faq-cta a {
  color: var(--accent);
  text-decoration: none;
}

.faq-cta a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-info {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

.contact-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-form-wrap {
  max-width: 500px;
}

.form-success {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--accent-dim);
}

.form-success[hidden] {
  display: none;
}

.form-success-ok {
  color: var(--accent);
}

.form-success-err {
  color: #ef4444;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form button {
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 400px;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-nav strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.footer-nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 0.5rem;
  }

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

  .header .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-cards {
    grid-template-columns: 1fr;
  }

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

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

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

  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
  }

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

  .stats {
    gap: 1.5rem;
  }

  .stat-num {
    font-size: 2rem;
  }

  .section-badge {
    font-size: 0.6rem;
  }

}
