/* Assoc-IA — design system du site vitrine (marketing) */

:root {
  --cream: #fbf6ee;
  --cream-deep: #f2e9d8;
  --paper: #ffffff;
  --ink: #23281f;
  --ink-soft: #55594e;
  --ink-faint: #8a8c7c;
  --line: #e6dcc6;
  --terracotta: #c1602e;
  --terracotta-dark: #9c4c22;
  --terracotta-tint: #f5e2d3;
  --sage: #4f6b4a;
  --sage-dark: #3b5137;
  --sage-tint: #e3ead9;
  --gold: #c9932f;
  --shadow-sm: 0 1px 2px rgba(35, 40, 31, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(35, 40, 31, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(35, 40, 31, 0.28);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.visually-hidden:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto;
  padding: 10px 16px; background: var(--ink); color: var(--cream);
  border-radius: 8px; z-index: 999;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 246, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem;
  color: var(--ink);
}
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.85rem;
}
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav-cta-mobile { display: none; }
.main-nav a:not(.btn) {
  color: var(--ink-soft); font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.main-nav a:not(.btn):hover, .main-nav a.is-active {
  color: var(--ink); border-color: var(--terracotta);
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 40px; height: 40px; padding: 0;
  align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn--accent { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--terracotta-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sage { background: var(--sage); color: #fff; }
.btn--sage:hover { background: var(--sage-dark); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta__login { font-weight: 500; color: var(--ink-soft); font-size: 0.9rem; }
.nav-cta__login:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage-dark); background: var(--sage-tint);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-dark); }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); color: var(--ink); max-width: 15ch; }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero__actions .link-arrow { font-weight: 600; color: var(--ink); }
.hero__note { margin-top: 22px; font-size: 0.9rem; color: var(--ink-faint); }
.hero__note a { color: var(--terracotta-dark); font-weight: 600; }
.hero__note a:hover { text-decoration: underline; }

.hero__media { position: relative; }
.hero__media-shape {
  position: absolute; inset: -6% -8% -8% -6%;
  background: linear-gradient(160deg, var(--terracotta-tint), var(--sage-tint));
  border-radius: 40px; z-index: 0; transform: rotate(-2deg);
}
.hero__media img {
  position: relative; z-index: 1; border-radius: 32px;
  box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
.hero__badge {
  position: absolute; z-index: 2; left: -18px; bottom: 22px;
  background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; max-width: 240px;
}
.hero__badge-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--terracotta-tint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.hero__badge strong { display: block; font-size: 0.85rem; color: var(--ink); }
.hero__badge span { font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- Trust band (logos défilants) ---------- */
.trust-band {
  padding: 30px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-band__label {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 22px;
}
.trust-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.trust-marquee__track {
  display: flex; align-items: center; gap: 56px; width: max-content;
  animation: trust-scroll 34s linear infinite;
}
.trust-marquee:hover .trust-marquee__track,
.trust-marquee:focus-within .trust-marquee__track { animation-play-state: paused; }
.trust-marquee__group { display: flex; align-items: center; gap: 56px; flex-shrink: 0; }
.trust-marquee__item {
  display: inline-block; white-space: nowrap;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem;
  letter-spacing: -0.01em; color: var(--ink-faint); opacity: 0.85;
  transition: color .2s, opacity .2s;
}
a.trust-marquee__item:hover, a.trust-marquee__item:focus-visible {
  color: var(--terracotta-dark); opacity: 1;
}
.trust-marquee__item--gov {
  font-family: var(--font-sans); font-weight: 700; font-size: 0.88rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .trust-marquee__group:last-child { display: none; }
}
@media (max-width: 760px) {
  .trust-marquee__item { font-size: 1.05rem; }
  .trust-marquee__track { gap: 40px; }
  .trust-marquee__group { gap: 40px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--cream-deep); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head.is-left { margin: 0 0 48px; text-align: left; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); color: var(--ink); }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.two-col h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.feature-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.feature-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--sage-dark); margin-top: 2px; }

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

.f-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s;
}
.f-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.f-card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 18px;
}
.f-card__icon--terracotta { background: var(--terracotta-tint); }
.f-card__icon--sage { background: var(--sage-tint); }
.f-card__icon--gold { background: #f6ecd6; }
.f-card h3 { font-size: 1.12rem; color: var(--ink); }
.f-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 0; }
.f-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.92rem; }
.f-card ul li { margin-bottom: 4px; }

/* ---------- Team cards ---------- */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.team-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; text-align: left;
}
.team-card img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 16px;
}
.team-card h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; }
.team-card__role { color: var(--sage-dark); font-size: 0.88rem; font-weight: 600; margin-bottom: 10px; }
.team-card p.team-card__bio { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 0; line-height: 1.5; }

.team-card--featured {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px; border: 1px solid var(--sage); box-shadow: var(--shadow-md);
}
.team-card--featured img { width: 104px; height: 104px; margin-bottom: 22px; }
.team-card--featured h3 { font-size: 1.5rem; }
.team-card--featured .team-card__role { font-size: 1rem; }
.team-card--featured .team-card__bio { font-size: 0.98rem; }

@media (min-width: 901px) {
  .team-grid { grid-template-columns: 1.3fr 1fr; grid-auto-rows: 1fr; }
  .team-card--featured { grid-row: span 2; }
}

/* ---------- Feature spotlight (image + text) ---------- */
.spotlight { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.spotlight__media { position: relative; }
.spotlight__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.spotlight__tag {
  position: absolute; top: -14px; left: 24px; background: var(--ink); color: var(--cream);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
}
.spotlight h2 { font-size: clamp(1.6rem, 3vw, 2.05rem); }
.spotlight .lede { color: var(--ink-soft); font-size: 1.02rem; }
.spotlight-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.spotlight-list li {
  display: flex; gap: 12px; align-items: flex-start; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 0.93rem;
}
.spotlight-list strong { color: var(--ink); }
.spotlight-list span { color: var(--ink-soft); }
.spotlight-list .num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--terracotta);
  color: #fff; font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num {
  font-family: var(--font-serif); font-size: 2.4rem; color: var(--terracotta-tint);
  -webkit-text-stroke: 1.5px var(--terracotta); font-weight: 600; line-height: 1; margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; color: var(--ink); }
.step p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 999px;
}
.badge--available { background: var(--sage-tint); color: var(--sage-dark); }
.badge--dev { background: #f6ecd6; color: #8a6a1e; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 34px 30px; position: relative;
}
.pricing-card--highlight { border: 2px solid var(--terracotta); box-shadow: var(--shadow-md); }
.pricing-card__tag {
  position: absolute; top: -13px; left: 28px; background: var(--terracotta); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 6px 12px; border-radius: 999px;
}
.pricing-card h3 { font-size: 1.2rem; }
.pricing-card p { color: var(--ink-soft); font-size: 0.94rem; }
.pricing-card__cta { margin-top: 20px; display: inline-block; font-weight: 700; color: var(--terracotta-dark); font-size: 0.92rem; }
.pricing-card__cta:hover { text-decoration: underline; }
.pricing-note { text-align: center; color: var(--ink-faint); font-size: 0.88rem; margin-top: 40px; }

/* ---------- CTA banner ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 0.85fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-split__text { background: var(--ink); color: var(--cream); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.cta-split__text h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2rem); }
.cta-split__text p { color: #d8d7c9; font-size: 1.02rem; }
.cta-split__media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd0c2; padding: 64px 0 32px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.site-footer a { color: #cfd0c2; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.site-footer .text-muted { color: #a3a496; font-size: 0.92rem; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 28px; font-size: 0.85rem; color: #8c8d80; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-md);
}
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.input, .form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.95rem; font-family: var(--font-sans); background: var(--cream); color: var(--ink);
}
.input:focus, .form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px var(--terracotta-tint);
}
.form-field .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: #b3411f; font-size: 0.85rem; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 0.92rem; }
.alert--success { background: var(--sage-tint); color: var(--sage-dark); border: 1px solid #cfe0c4; }

.text-muted { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .two-col, .spotlight, .cta-split { grid-template-columns: 1fr; }
  .spotlight__media { order: -1; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-split__media { min-height: 220px; }
}
@media (max-width: 760px) {
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 16px 24px 24px; gap: 14px; display: none; box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .main-nav .nav-cta-mobile { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 64px; }
  .section { padding: 56px 0; }
  .hero__badge { left: 12px; bottom: 14px; max-width: 200px; padding: 10px 14px; }
  .hero__media-shape { inset: -3% -3% -4% -3%; }
}

/* ---------- Blog ---------- */
.blog-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.blog-header h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--ink); }
.blog-header p { color: var(--ink-soft); font-size: 1.05rem; }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; }
.blog-card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card h2 a { color: var(--ink); }
.blog-card h2 a:hover { color: var(--terracotta); }
.blog-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 16px; }
.blog-card .link-arrow { margin-top: auto; }
.blog-card__date { font-size: 0.8rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.blog-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

.article { max-width: 720px; margin: 0 auto; }
.article-header { margin-bottom: 40px; }
.article-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--ink); }
.article-meta { font-size: 0.85rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 18px; }
.article-body { font-size: 1.05rem; color: var(--ink); }
.article-body h2 { font-size: 1.5rem; margin-top: 2em; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.6em; }
.article-body p { margin-bottom: 1.2em; color: var(--ink-soft); }
.article-body ul, .article-body ol { color: var(--ink-soft); padding-left: 22px; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote {
  border-left: 3px solid var(--sage); margin: 1.6em 0; padding: 4px 0 4px 20px;
  color: var(--ink-soft); font-style: italic;
}
.article-cta { margin-top: 56px; padding: 32px; background: var(--sage-tint); border-radius: var(--radius-md); text-align: center; }
.article-cta p { color: var(--sage-dark); margin-bottom: 16px; font-weight: 600; }
.article-back { display: inline-block; margin-bottom: 32px; }

.article-related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-related h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); margin-bottom: 16px; }
.article-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.article-related a { color: var(--terracotta-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
}
