@charset "UTF-8";
/*
  Hero & landing page styles extracted from index.jsp.
  Utilise la palette globale définie dans colors.css.
*/

:root {
  --hero-muted: #F5F7FA;
  --hero-border: #E9EEF5;
  --hero-shadow: 0 10px 24px rgba(0, 0, 0, 0.08),
                 0 2px 8px rgba(0, 0, 0, 0.06);
  --hero-radius: 18px;
  --hero-radius-sm: 12px;
  --hero-container: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--gf-text);
  background: var(--gf-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout helpers */
.container {
  max-width: var(--hero-container);
  margin-inline: auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .only-desktop {
    display: none !important;
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hero-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.logo {
  height: 36px;
  width: auto;
  border-radius: 10px;
  display: block;
  box-shadow: var(--hero-shadow);
  object-fit: cover;
}

nav a {
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
}

nav a:hover {
  background: var(--hero-muted);
}

.cta-nav {
  background: var(--gf-cta);
  color: #1d1d1d;
}

.cta-nav:hover {
  filter: brightness(0.95);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gf-bg-hero);
}

.hero-inner {
  padding: 80px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--hero-border);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg,
                              var(--gf-accent),
                              var(--gf-primary));
  box-shadow: 0 0 0 4px rgba(228, 0, 124, 0.08);
}

h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  margin: 18px 0 14px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: clamp(16px, 2.4vw, 20px);
  color: #4a4a4a;
  max-width: 780px;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.05s ease, filter 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gf-gd-primary);
  color: var(--gf-text-inverse);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: #ffffff;
  color: var(--gf-text);
  border-color: var(--hero-border);
}

.btn-ghost:hover {
  background: var(--hero-muted);
}

.hero-card {
  margin-top: 36px;
  background: #ffffff;
  border: 1px solid var(--hero-border);
  border-radius: var(--hero-radius);
  box-shadow: var(--hero-shadow);
  padding: 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-pill {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #1b1b1b;
}

.pill-1 {
  background: var(--gf-primary);
  color: #ffffff;
}

.pill-2 {
  background: var(--gf-accent);
  color: #ffffff;
}

.pill-3 {
  background: var(--gf-cta);
}

.pill-4 {
  background: var(--gf-success);
}

/* Features */
section {
  padding: 64px 0;
}

.section-title {
  font-size: clamp(24px, 3.6vw, 36px);
  margin: 0 0 12px;
}

.section-note {
  color: #595f69;
  margin-bottom: 26px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--hero-border);
  border-radius: var(--hero-radius);
  padding: 24px;
  box-shadow: var(--hero-shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: #50545b;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--hero-shadow);
  background: var(--gf-gd-primary);
  margin-bottom: 12px;
}

.badge-mini {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  background: var(--hero-muted);
}

/* Palette preview */
.swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.swatch {
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--hero-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swatch .color {
  height: 54px;
  border-radius: 8px;
}

.swatch code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #2b2b2b;
}

@media (max-width: 960px) {
  .swatches {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg,
                              rgba(0, 191, 255, 0.12),
                              rgba(228, 0, 124, 0.12));
  border-top: 1px solid var(--hero-border);
  border-bottom: 1px solid var(--hero-border);
}

.cta-box {
  background: #ffffff;
  border: 1px solid var(--hero-border);
  border-radius: var(--hero-radius);
  padding: 28px;
  box-shadow: var(--hero-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background: var(--gf-ink);
  color: rgba(255, 255, 255, 0.9);
  padding: 38px 0;
}

footer a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.footer-note {
  color: rgba(255, 255, 255, 0.7);
}

/* Simple utilities */
.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

.center {
  text-align: center;
}
