/* ==========================================================================
   SwissNets — Feuille de style principale (thème clair, rouge suisse)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-border: rgba(0, 0, 0, 0.09);
  --surface-border-hover: rgba(0, 0, 0, 0.18);
  --text: #14141a;
  --text-muted: #55555f;
  --text-faint: #85858f;
  --accent-1: #ff5a52;
  --accent-2: #d10f1c;
  --danger: #d92d20;
  --success: #0e9f6e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --max-width: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent 0%, black 38%, black 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 38%, black 62%, transparent 100%);
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container-wide { max-width: 1360px; }

.hp-field { display: none; }

.section {
  padding: 120px 0;
  position: relative;
  scroll-margin-top: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.eyebrow-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.eyebrow-flag {
  border-radius: 3px;
  flex-shrink: 0;
}

.flag-icon {
  display: inline-block;
  border-radius: 5px;
  vertical-align: -3px;
}

.flag-icon-sm {
  display: inline-block;
  border-radius: 3px;
  vertical-align: -1px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
  font-size: 17px;
}

.gradient-text {
  color: var(--accent-2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--surface-border);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--surface-border-hover);
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.btn-accent:hover {
  background: #b00d17;
  border-color: #b00d17;
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--surface-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo-text { color: var(--accent-2); margin-left: 10px; font-size: 26px; position: relative; top: -2px; }

.site-header .logo {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.logo-mark {
  width: 56px;
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-header .nav-links {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  width: max-content;
  margin: 0 auto;
  transform: translateY(-50%);
  white-space: nowrap;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

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

.header-actions { display: flex; align-items: center; gap: 16px; }

.site-header .header-actions {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open { opacity: 1; pointer-events: auto; }

.mobile-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero .container { position: relative; z-index: 1; text-align: center; }

.hero h1 {
  font-size: clamp(38px, 6.5vw, 74px);
  max-width: 920px;
  margin: 0 auto 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-2);
}

.hero-stat span {
  font-size: 13px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Cards / Services ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-3-duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--surface-border-hover);
  background: #ececef;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(227, 27, 35, 0.12);
  border: 1px solid rgba(227, 27, 35, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  margin-bottom: 20px;
}

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.card-price {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--text-faint);
}

.card-price strong { color: var(--text); font-size: 32px; }

.pricing-card {
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(227, 27, 35, 0.4);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--surface);
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
}

.card-includes {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-includes li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.card-includes li svg {
  color: var(--accent-2);
  flex-shrink: 0;
}

/* ---------- Avantages ---------- */

.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.advantage {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.advantage:hover {
  transform: translateY(-6px);
  border-color: var(--surface-border-hover);
  background: #ececef;
}

.advantage .card-icon { margin: 0 auto 18px; }

.advantage h4 { font-size: 16px; margin-bottom: 8px; }
.advantage p { font-size: 13.5px; margin: 0; }

/* ---------- Portfolio ---------- */

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.portfolio-card {
  flex: 1 1 520px;
  max-width: 640px;
  transition: transform 0.4s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-8px);
}

.preview-window {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.preview-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.portfolio-body { padding: 18px 4px 0; }

.portfolio-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.portfolio-body h3 { font-size: 19px; margin-bottom: 8px; }
.portfolio-body p { font-size: 14px; margin-bottom: 0; }

/* ---------- Process ---------- */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(227, 27, 35, 0.12);
  border: 1px solid rgba(227, 27, 35, 0.25);
  color: var(--accent-2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.process-step h4 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; margin: 0; }

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(26px, 3.5vw, 34px); }

.contact-methods { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contact-method:hover { border-color: var(--surface-border-hover); transform: translateX(4px); }

.contact-method .card-icon { width: 40px; height: 40px; margin-bottom: 0; flex-shrink: 0; }

.contact-method-info { flex: 1; min-width: 0; }

.contact-method strong { display: block; font-size: 14.5px; line-height: 1.4; }
.contact-method span { display: block; font-size: 13px; line-height: 1.4; color: var(--text-faint); }

.copy-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--surface-border-hover);
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.copy-btn .icon-check { display: none; }

.copy-btn.copied {
  border-color: rgba(227, 27, 35, 0.4);
  color: var(--accent-2);
}

.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-check { display: block; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: var(--surface);
}

/* ---------- Custom select ---------- */

.custom-select { position: relative; }

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.custom-select-trigger:hover { border-color: var(--surface-border-hover); }

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--accent-2);
  background: var(--surface);
}

.custom-select-arrow { flex-shrink: 0; color: var(--text-faint); transition: transform 0.2s ease; }
.custom-select.open .custom-select-arrow { transform: rotate(180deg); }

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  padding: 6px;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select.open .custom-select-options { display: block; }

.custom-select-options li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-select-options li:hover { background: rgba(227, 27, 35, 0.08); color: var(--accent-2); }

.custom-select-options li.selected { color: var(--accent-2); font-weight: 600; }

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  display: none;
}

.form-status.visible { display: block; }
.form-status.success { background: rgba(14, 159, 110, 0.1); border: 1px solid rgba(14, 159, 110, 0.3); color: var(--success); }
.form-status.error { background: rgba(217, 45, 32, 0.1); border: 1px solid rgba(217, 45, 32, 0.3); color: var(--danger); }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--surface-border);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-tagline { max-width: 320px; font-size: 14px; margin-top: 12px; }

.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }

.footer-col h5 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  font-size: 13px;
  color: var(--text-faint);
}

.footer-legal { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-faint); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--text); }

.social-links { display: flex; gap: 12px; }

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  color: var(--text-muted);
}

.social-links a:hover { border-color: var(--accent-1); color: var(--accent-2); transform: translateY(-2px); }

/* ---------- Legal sections ---------- */

.legal-page { max-width: 760px; }

.legal-page h2 { font-size: clamp(28px, 4vw, 38px); margin-top: 8px; margin-bottom: 32px; }

.legal-content h3 { font-size: 19px; margin-top: 36px; }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; }
.legal-content a { color: var(--accent-2); text-decoration: underline; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .nav-links, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 980px) {
  .grid-3, .advantages, .process-list { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; scroll-margin-top: 42px; }
  .grid-3, .advantages, .process-list { grid-template-columns: 1fr; }
  .portfolio-card { flex-basis: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
  .eyebrow { font-size: 13px; letter-spacing: 0.05em; gap: 6px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .eyebrow { font-size: 11.5px; letter-spacing: 0.03em; }
  .eyebrow-hero { align-items: flex-start; }
  .eyebrow-hero .eyebrow-flag { margin-top: 2px; }
}