/* GrowthyCertif — Vitrine GAS (palette logo Growth Accelerator Services) */
:root {
  --gas-navy: #1A2B3C;
  --gas-navy-deep: #152535;
  --gas-blue: #3A8DDE;
  --gas-blue-hover: #2B7BC9;
  --gas-blue-mid: #5B84B1;
  --gas-blue-light: #7DA0C4;
  --gas-slate: #8E97A4;
  --gas-bg: #EEF2F7;
  --gas-card: #F5F8FB;
  --gas-white: #fff;
  --gas-txt: #1A2B3C;
  --gas-txt2: #5A6B7D;
  --gas-border: #D4DDE8;
  --gas-err: #DC2626;
  --gas-ok: #16a34a;

  /* alias rétrocompat */
  --navy: var(--gas-navy-deep);
  --navy2: var(--gas-navy);
  --teal: var(--gas-blue);
  --gold: var(--gas-blue-light);
  --bg: var(--gas-bg);
  --card: var(--gas-card);
  --white: var(--gas-white);
  --txt: var(--gas-txt);
  --txt2: var(--gas-txt2);
  --border: var(--gas-border);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--gas-bg);
  color: var(--gas-txt);
  line-height: 1.55;
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gas-border);
  box-shadow: 0 1px 16px rgba(26, 43, 60, 0.06);
}
.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-brand-logo {
  height: 48px;
  width: auto;
  display: block;
  max-width: min(280px, 42vw);
}
.site-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-links a,
.site-links button {
  color: var(--gas-txt2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.site-links a:hover,
.site-links button:hover {
  background: var(--gas-bg);
  color: var(--gas-navy);
}
.site-links a.active {
  background: rgba(58, 141, 222, 0.12);
  color: var(--gas-blue);
}
.site-cta-demo {
  background: linear-gradient(135deg, var(--gas-blue) 0%, var(--gas-blue-mid) 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(58, 141, 222, 0.38);
  white-space: nowrap;
}
.site-cta-demo:hover {
  background: linear-gradient(135deg, var(--gas-blue-hover) 0%, var(--gas-blue) 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(58, 141, 222, 0.48);
  transform: translateY(-1px);
}
.site-cta-demo.active {
  box-shadow: 0 0 0 3px rgba(58, 141, 222, 0.25), 0 4px 16px rgba(58, 141, 222, 0.38);
}
.site-cta {
  background: transparent !important;
  color: var(--gas-blue) !important;
  border: 2px solid var(--gas-blue) !important;
  padding: 8px 14px !important;
}
.site-cta:hover {
  background: rgba(58, 141, 222, 0.08) !important;
  color: var(--gas-blue-hover) !important;
}
.lang-switch { display: flex; gap: 2px; margin-left: 4px; }
.lang-btn {
  padding: 5px 9px !important;
  font-size: 11px !important;
  border: 1px solid var(--gas-border) !important;
  border-radius: 6px !important;
  cursor: pointer;
  background: transparent;
  color: var(--gas-txt2);
}
.lang-btn.active {
  background: var(--gas-blue) !important;
  color: #fff !important;
  border-color: var(--gas-blue) !important;
}
.site-nav-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--gas-txt2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  margin-left: 4px;
}
.site-nav-back:hover {
  background: var(--gas-bg);
  color: var(--gas-navy);
}
.site-nav-inner .site-nav-back:last-child { margin-left: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gas-navy);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--gas-white);
    flex-direction: column;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--gas-border);
    box-shadow: 0 8px 24px rgba(26, 43, 60, 0.08);
  }
  .site-links.open { display: flex; }
  .site-nav-inner { position: relative; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(155deg, var(--gas-navy-deep) 0%, var(--gas-navy) 45%, #243d5c 100%);
  color: #fff;
  padding: 64px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -12%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(58, 141, 222, 0.14);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -28%;
  left: -8%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(91, 132, 177, 0.12);
  pointer-events: none;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(58, 141, 222, 0.18);
  color: #a8d4ff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(58, 141, 222, 0.35);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}
.hero p {
  font-size: clamp(15px, 2.2vw, 18px);
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-client { margin-top: 18px; font-size: 13px; opacity: 0.78; }
.hero-client-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-client-btn:hover { opacity: 1; color: #a8d4ff; }
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--gas-blue-light);
}
.hero-stat span { font-size: 12px; opacity: 0.78; }

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gas-blue);
  color: #fff;
  border-color: var(--gas-blue);
}
.btn-primary:hover {
  background: var(--gas-blue-hover);
  border-color: var(--gas-blue-hover);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.btn-demo {
  background: linear-gradient(135deg, var(--gas-blue) 0%, var(--gas-blue-mid) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(58, 141, 222, 0.4);
}
.btn-demo:hover {
  background: linear-gradient(135deg, var(--gas-blue-hover) 0%, var(--gas-blue) 100%);
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(58, 141, 222, 0.5);
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.hero-portal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* ── Sections communes ── */
section { padding: 64px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--gas-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--gas-navy);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 15px;
  color: var(--gas-txt2);
  max-width: 640px;
  margin-bottom: 36px;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 32px 24px 40px;
  font-size: 12px;
  color: var(--gas-txt2);
  background: var(--gas-bg);
  border-top: 1px solid var(--gas-border);
}
.footer a {
  color: var(--gas-navy);
  font-weight: 600;
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; color: var(--gas-blue); }
.footer-copy { margin: 0; }
.footer-copy a { color: var(--gas-blue); }
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ── Formulaires vitrine ── */
.page-hero-compact { padding: 40px 24px 44px; }
.page-hero-compact h1 { font-size: clamp(22px, 4vw, 32px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-hero-compact p { font-size: 15px; opacity: 0.88; max-width: 560px; margin: 0 auto; }
.form-wrap { max-width: 640px; margin: 0 auto; padding: 0 20px 48px; }
.form-card {
  background: var(--gas-white);
  border-radius: 16px;
  padding: 28px 24px 24px;
  margin-top: -20px;
  box-shadow: 0 8px 32px rgba(26, 43, 60, 0.1);
  border: 1px solid var(--gas-border);
}
.vitrine-form { display: flex; flex-direction: column; gap: 16px; position: relative; }
.vitrine-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.vitrine-form .row > .field { min-width: 0; }
.vitrine-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vitrine-form .field label { font-size: 13px; font-weight: 600; color: var(--gas-navy); }
.vitrine-form .field label span { color: var(--gas-err); }
.vitrine-form .field input,
.vitrine-form .field select,
.vitrine-form .field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid var(--gas-border);
  border-radius: 10px;
  font-size: 16px;
  color: var(--gas-txt);
  font-family: inherit;
  background: #fff;
}
.vitrine-form .field input:focus,
.vitrine-form .field select:focus,
.vitrine-form .field textarea:focus { outline: none; border-color: var(--gas-blue); }
.vitrine-form .field textarea { min-height: 120px; resize: vertical; }
.vitrine-form .hint { display: block; font-size: 12px; color: var(--gas-txt2); line-height: 1.45; }
.vitrine-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 640px) {
  .page-hero-compact { padding: 32px 20px 36px; }
  .form-wrap { padding: 0 16px 40px; }
  .form-card { padding: 22px 18px 20px; margin-top: -16px; }
  .vitrine-form .row { grid-template-columns: 1fr; }
  .vitrine-form .btn-primary { width: 100%; }
  .footer-links { gap: 12px 16px; }
}
/* ── Références vitrine ── */
.trust {
  background: var(--gas-white);
  padding: 64px 0 56px;
  overflow: hidden;
}
/* L'espace entre les deux bandes est la somme des paddings qui se touchent (56 + 64). */
#trust:not([hidden]) { padding-bottom: 28px; }
#trust:not([hidden]) + #trust-teams { padding-top: 32px; }
.trust-head { text-align: center; padding: 0 24px; margin-bottom: 28px; }
.trust-head .section-title { margin-bottom: 0; }
.trust-viewport { overflow: hidden; }
.trust-track-grid .trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.trust-track-marquee {
  display: flex;
  width: max-content;
  animation: trust-marquee 45s linear infinite;
}
.trust-track-marquee:hover { animation-play-state: paused; }
.trust-track-marquee .trust-row {
  display: flex;
  flex-shrink: 0;
  gap: 32px;
  padding-right: 32px;
}
@keyframes trust-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.trust-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
}
.trust-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 170px;
  max-height: 56px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1);
  opacity: 0.82;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.trust-card:hover .trust-logo,
.trust-card:focus-within .trust-logo {
  filter: grayscale(0);
  opacity: 1;
}
.trust-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gas-txt2);
  text-align: center;
  line-height: 1.3;
}
.trust-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 160px;
  min-height: 72px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--gas-card);
  border: 1px solid var(--gas-border);
  color: var(--gas-navy);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  .trust-track-marquee {
    animation: none;
    width: auto;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
  }
  .trust-track-marquee .trust-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 32px;
    padding: 0 24px;
  }
  .trust-track-marquee .trust-row[aria-hidden="true"] { display: none; }
}

.form-msg { font-size: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(22, 163, 74, 0.1); color: var(--gas-ok); border: 1px solid rgba(22, 163, 74, 0.25); }
.form-msg.err { background: rgba(220, 38, 38, 0.08); color: var(--gas-err); border: 1px solid rgba(220, 38, 38, 0.2); }
