/* ===== Infrarch — site vitrine ===== */

@font-face {
  font-family: "Futura XBlk";
  src: url("../assets/FuturaBT-ExtraBlack.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --navy-900: #0a0c0e;
  --navy-800: #15181b;
  --navy-700: #1e2226;
  --navy-600: #2b3036;
  --blue-400: #38a9dd; /* bleu Infrarch éclairci (fonds sombres) */
  --blue-500: #007ebd; /* bleu Infrarch officiel */
  --grey-brand: #5f5f5f;
  --text: #1c1f22;
  --text-muted: #5f6a71; /* aligné sur le gris logo #5f5f5f */
  --bg: #ffffff;
  --bg-alt: #f4f5f6;
  --border: #e2e4e6;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(10, 12, 14, 0.08);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 14, 0.92);
  backdrop-filter: blur(8px);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 4px 6px;
  box-sizing: content-box;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: "Futura XBlk", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #9aa5ad;
  text-transform: uppercase;
  font-weight: 600;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: #d3d9dd;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  background: var(--blue-500);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-400); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(0, 126, 189, 0.14), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(0, 126, 189, 0.12), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.03) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,0.03) 39px 40px);
}

.hero-logo {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(320px, 38vw, 520px);
  opacity: 0.07;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 96px 24px 72px;
}

.hero-kicker {
  color: var(--blue-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
}

.accent { color: var(--blue-400); }

.hero-sub {
  max-width: 640px;
  color: #b9c2c9;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-400); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-400); }

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 32px;
  margin-top: 40px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; color: var(--blue-400); }
.hero-stats span { color: #9aa5ad; font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-kicker {
  color: var(--blue-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
  color: var(--navy-800);
}

.section-intro {
  max-width: 720px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(10, 12, 14, 0.12); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 126, 189, 0.1);
  color: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy-800); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Projet ===== */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.project-block h3 {
  color: var(--navy-800);
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.project-block p { color: var(--text-muted); }

.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 126, 189, 0.12);
  color: var(--blue-500);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Schéma d'architecture ===== */
.architecture {
  background: var(--navy-800);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 48px;
  box-shadow: var(--shadow);
}
.architecture figcaption {
  color: #9aa5ad;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.architecture svg { width: 100%; height: auto; display: block; }

.d-cloud { fill: none; stroke: #93a0a9; stroke-width: 1.5; stroke-dasharray: 5 4; }
.d-fw { fill: rgba(0, 126, 189, 0.25); stroke: #38a9dd; stroke-width: 1.5; }
.d-zone { fill: rgba(102, 187, 106, 0.12); stroke: #66bb6a; stroke-width: 1.4; }
.d-link { stroke: #93a0a9; stroke-width: 1.5; fill: none; }
.d-ha { stroke-dasharray: 3 3; }
.d-underlay { fill: rgba(239, 83, 80, 0.10); stroke: #ef5350; stroke-width: 1.5; }
.d-overlay { fill: rgba(179, 157, 219, 0.06); stroke: #b39ddb; stroke-width: 1.5; stroke-dasharray: 6 5; }
.d-hub { stroke: #ef5350; stroke-width: 1.5; fill: none; opacity: 0.85; }
.d-s2s { stroke: #b39ddb; stroke-width: 4; fill: none; opacity: 0.75; stroke-linecap: round; }
.d-label { fill: #e8ecef; font-size: 13px; font-family: "Segoe UI", sans-serif; }
.d-sub { fill: #93a0a9; font-size: 11px; font-family: "Segoe UI", sans-serif; }
.d-tag { fill: #ffcc66; font-size: 11px; font-weight: 600; font-family: "Segoe UI", sans-serif; }
.d-purple { fill: #cbb8ea; font-size: 12px; font-family: "Segoe UI", sans-serif; }
.d-srv { fill: rgba(0, 126, 189, 0.12); stroke: #38a9dd; stroke-width: 1.2; }
.d-person { fill: none; stroke: #38a9dd; stroke-width: 2; stroke-linecap: round; }
.d-srv-led { fill: #38a9dd; }
.d-aws { fill: rgba(255, 153, 0, 0.06); stroke: #ff9900; stroke-width: 1.5; }
.d-aws-icon { fill: #ff9900; }
.d-aws-logo { fill: #0a0c0e; font-size: 11px; font-weight: 700; font-family: "Segoe UI", sans-serif; }
.d-aws-vpc { fill: none; stroke: #ff9900; stroke-width: 1.2; stroke-dasharray: 5 4; }
.d-sip { fill: rgba(38, 198, 218, 0.08); stroke: #26c6da; stroke-width: 1.5; }
.d-sip-icon { fill: #26c6da; font-size: 22px; }
.d-voice { stroke: #26c6da; stroke-width: 2; stroke-dasharray: 6 4; fill: none; opacity: 0.85; }
.d-app { stroke: #ff9900; stroke-width: 2; stroke-dasharray: 6 4; fill: none; opacity: 0.85; }
.d-ipsec { stroke: #b39ddb; stroke-width: 1.5; stroke-dasharray: 6 5; fill: none; opacity: 0.8; }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step {
  border-left: 3px solid var(--blue-500);
  padding: 4px 0 4px 20px;
}
.step-num {
  color: var(--blue-400);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.step h3 { margin: 6px 0 8px; font-size: 1.05rem; color: var(--navy-800); }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* ===== Fondateur ===== */
.founder-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.founder-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 620px;
}
.founder-text strong { color: var(--navy-800); }

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0a66c2;
  color: #fff;
  margin-top: 8px;
}
.btn-linkedin:hover { background: #0e76d6; color: #fff; }

.certs {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.certs h3 {
  color: var(--navy-800);
  font-size: 1.05rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cert-list { list-style: none; }
.cert-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cert-list li:last-child { border-bottom: none; }
.cert-name { font-weight: 600; color: var(--navy-800); font-size: 0.95rem; }
.cert-meta { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Références ===== */
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 40px;
}
.sectors span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-800);
}

.quote {
  background: var(--bg);
  border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  box-shadow: var(--shadow);
  max-width: 780px;
}
.quote p { font-size: 1.08rem; color: var(--navy-800); font-style: italic; margin-bottom: 12px; }
.quote footer { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Contact ===== */
.section-contact {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.section-contact h2 { color: #fff; }
.section-contact .section-kicker { color: var(--blue-400); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-text > p { color: #b9c2c9; margin-bottom: 28px; }

.contact-details { list-style: none; }
.contact-details li { margin-bottom: 12px; color: #b9c2c9; }
.contact-details strong {
  display: inline-block;
  width: 92px;
  color: #fff;
}
.contact-details a { color: var(--blue-400); }

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #d3d9dd;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8a9299; }
.contact-form select option { color: var(--text); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue-400);
  outline-offset: 1px;
}

.form-status { font-size: 0.9rem; color: var(--blue-400); min-height: 1.2em; margin: 0; }
.botcheck { display: none; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ===== Mentions légales ===== */
.legal h3 { margin: 30px 0 10px; color: var(--navy-800); font-size: 1.1rem; }
.legal p { color: var(--text-muted); max-width: 760px; margin-bottom: 12px; }
.legal ul { list-style: none; margin: 4px 0 8px; }
.legal li { margin-bottom: 6px; color: var(--text-muted); }
.legal li strong { color: var(--navy-800); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: #8a9299;
  font-size: 0.88rem;
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links a { color: #9aa5ad; }
.footer-brand { display: flex; align-items: center; gap: 10px; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .project-grid,
  .contact-inner,
  .founder-inner,
  .form-row { grid-template-columns: 1fr; }

  .hero-inner { padding: 64px 24px 48px; }

  .hero-logo {
    right: -90px;
    width: 320px;
    opacity: 0.05;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }

  .section { padding: 56px 0; }

  /* Schéma d'architecture : défilement horizontal pour rester lisible */
  .architecture { padding: 20px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .architecture svg { min-width: 760px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .hero h1 { font-size: 1.65rem; }
  .hero-sub { font-size: 1rem; }

  .brand-tagline { display: none; }

  .quote { padding: 20px 22px; }
  .contact-form { padding: 20px 18px; }
  .contact-details strong { display: block; width: auto; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
