/* Styles du site public Gisalind (landing + pages connexes). */

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --g-primary: #6d5df6;
  --g-primary-600: #5b4be0;
  --g-primary-soft: #eeebfe;
  --g-accent: #22c1a3;
  --g-danger: #ef4660;
  --g-ink: #1f2333;
  --g-muted: #6b7280;
  --g-border: #e6e8f0;
  --g-surface: #ffffff;
  --g-bg: #f4f5fa;
  --g-radius: 14px;
  --g-radius-sm: 10px;
  --g-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --g-ease: 180ms cubic-bezier(.2, .8, .2, 1);
}

html {
  scroll-behavior: smooth;
}

body.g-public {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--g-ink);
  background-color: var(--g-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--g-ink);
}

a {
  color: var(--g-primary);
}

a:hover {
  color: var(--g-primary-600);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(109, 93, 246, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.g-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.g-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g-border);
}

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

.g-logo img {
  height: 34px;
  width: auto;
}

.g-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.g-nav a.g-nav-link {
  color: var(--g-ink);
  font-weight: 500;
  font-size: 15px;
}

.g-nav a.g-nav-link:hover {
  color: var(--g-primary);
}

.g-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.g-burger {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--g-ink);
  padding: 4px 8px;
}

@media (max-width: 991.98px) {
  .g-burger {
    display: block;
  }

  .g-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--g-border);
    padding: 12px 24px 20px;
    display: none;
  }

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

  .g-nav a.g-nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--g-border);
  }

  .g-nav-actions {
    flex-direction: column;
    align-items: stretch;
    padding-top: 14px;
  }
}

/* ---------- Boutons ---------- */

.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--g-ease);
}

.g-btn-primary {
  background: var(--g-primary);
  color: #fff;
}

.g-btn-primary:hover {
  background: var(--g-primary-600);
  color: #fff;
}

.g-btn-ghost {
  background: transparent;
  color: var(--g-ink);
  border-color: var(--g-border);
}

.g-btn-ghost:hover {
  border-color: var(--g-primary);
  color: var(--g-primary);
}

.g-btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

/* ---------- Sections ---------- */

.g-section {
  padding: 88px 0;
}

.g-section-alt {
  background: var(--g-bg);
}

.g-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g-primary);
  background: var(--g-primary-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.g-section-title {
  font-size: 34px;
  margin-bottom: 16px;
}

.g-section-lead {
  color: var(--g-muted);
  font-size: 17px;
  max-width: 720px;
}

@media (max-width: 767.98px) {
  .g-section {
    padding: 56px 0;
  }

  .g-section-title {
    font-size: 27px;
  }
}

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

.g-hero {
  padding: 96px 0 72px;
  background: linear-gradient(180deg, var(--g-primary-soft) 0%, #fff 70%);
}

.g-hero h1 {
  font-size: 46px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.g-hero .g-lead {
  font-size: 18px;
  color: var(--g-muted);
  margin-bottom: 30px;
}

@media (max-width: 767.98px) {
  .g-hero {
    padding: 56px 0 48px;
  }

  .g-hero h1 {
    font-size: 32px;
  }
}

.g-hero-visual {
  margin-top: 56px;
}

.g-browser {
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
  overflow: hidden;
  background: #fff;
}

.g-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--g-bg);
  border-bottom: 1px solid var(--g-border);
}

.g-browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--g-border);
}

.g-browser-bar span:first-child {
  background: #ef4660;
}

.g-browser-bar span:nth-child(2) {
  background: #f5a524;
}

.g-browser-bar span:nth-child(3) {
  background: #22a86b;
}

.g-browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Réassurance ---------- */

.g-trust {
  padding: 28px 0;
  border-bottom: 1px solid var(--g-border);
}

.g-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--g-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 8px;
}

.g-trust-item i {
  color: var(--g-primary);
  font-size: 20px;
}

/* ---------- Cartes ---------- */

.g-card {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  padding: 28px;
  height: 100%;
  transition: var(--g-ease);
}

.g-card-auto {
  height: auto;
}

a.g-card-link {
  display: block;
  color: inherit;
  height: 100%;
}

a.g-card-link:hover .g-card {
  border-color: var(--g-primary);
  box-shadow: var(--g-shadow);
}

.g-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--g-radius-sm);
  background: var(--g-primary-soft);
  color: var(--g-primary);
  font-size: 22px;
  margin-bottom: 16px;
}

.g-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.g-card p {
  color: var(--g-muted);
  font-size: 15px;
}

.g-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.g-card ul li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--g-ink);
  padding: 4px 0;
}

.g-card ul li i {
  color: var(--g-accent);
  margin-top: 3px;
}

/* ---------- Étapes ---------- */

.g-step {
  text-align: center;
  padding: 24px;
}

.g-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--g-primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

/* ---------- Tarif ---------- */

.g-pricing-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
  padding: 40px;
  text-align: center;
}

.g-pricing-card .g-price {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.g-pricing-card .g-price small {
  font-size: 17px;
  font-weight: 500;
  color: var(--g-muted);
}

.g-pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.g-pricing-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 15px;
}

.g-pricing-card ul li i {
  color: var(--g-accent);
  margin-top: 3px;
}

.g-price-note {
  color: var(--g-muted);
  font-size: 14px;
}

/* ---------- FAQ ---------- */

details.g-faq {
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-sm);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

details.g-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

details.g-faq summary::after {
  content: '\F282';
  font-family: 'bootstrap-icons';
  color: var(--g-primary);
  transition: var(--g-ease);
  flex-shrink: 0;
}

details.g-faq[open] summary::after {
  transform: rotate(180deg);
}

details.g-faq .g-faq-body {
  padding: 0 22px 20px;
  color: var(--g-muted);
  font-size: 15px;
}

/* ---------- CTA ---------- */

.g-cta {
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--g-primary-600) 100%);
  border-radius: var(--g-radius);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}

.g-cta h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 14px;
}

.g-cta p {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 26px;
}

.g-cta .g-btn-primary {
  background: #fff;
  color: var(--g-primary);
}

.g-cta .g-btn-primary:hover {
  background: var(--g-primary-soft);
}

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

.g-footer {
  background: var(--g-ink);
  color: rgba(255, 255, 255, .72);
  padding: 64px 0 28px;
  margin-top: 88px;
  font-size: 14px;
}

.g-footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.g-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g-footer ul li {
  padding: 5px 0;
}

.g-footer a {
  color: rgba(255, 255, 255, .72);
}

.g-footer a:hover {
  color: #fff;
}

.g-footer .g-consent-btn {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.g-footer .g-consent-btn:hover {
  color: #fff;
}

.g-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 40px;
  padding-top: 24px;
  color: rgba(255, 255, 255, .5);
}

/* ---------- Alertes flash ---------- */

.g-flashes {
  padding-top: 16px;
}

/* ---------- Formulaires ---------- */

.g-form-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
  padding: 36px;
}

.g-honeypot {
  position: absolute;
  left: -9999px;
}

.loading,
.error-message,
.sent-message {
  display: none;
  margin-bottom: 12px;
  font-size: 14px;
}

.error-message {
  color: var(--g-danger);
}

.sent-message {
  color: var(--g-accent);
}

/* ---------- Bandeau consentement ---------- */

.g-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: #fff;
  border-top: 1px solid var(--g-border);
  box-shadow: 0 -8px 32px rgba(16, 24, 40, .16);
  padding: 20px 0;
}

.g-consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.g-consent p {
  margin: 0;
  font-size: 14px;
  color: var(--g-ink);
  max-width: 640px;
}

.g-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.g-consent .g-btn {
  padding: 10px 20px;
  font-size: 14px;
}

.g-consent-prefs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.g-consent-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.g-consent-saved {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  background: var(--g-ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  box-shadow: var(--g-shadow);
}

/* ---------- Pages légales ---------- */

.g-legal h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.g-legal p,
.g-legal li {
  color: var(--g-muted);
  font-size: 15px;
  line-height: 1.7;
}

.g-legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.g-legal th,
.g-legal td {
  border: 1px solid var(--g-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.g-legal th {
  background: var(--g-bg);
  font-weight: 600;
}

/* ---------- Animation d'apparition ---------- */

@media (prefers-reduced-motion: no-preference) {
  .g-js .g-reveal:not(.g-visible) {
    opacity: 0;
    transform: translateY(16px);
  }

  .g-js .g-reveal {
    transition: opacity .5s ease, transform .5s ease;
  }
}

/* ---------- Erreurs ---------- */

.g-error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--g-primary);
  letter-spacing: -0.04em;
}
