/* Page d'accueil publique — mêmes couleurs que l'application (styles.css). */
:root {
  --ink: #1d2831;
  --muted: #77828b;
  --text: #4b5a63;
  --line: #e8ecee;
  --canvas: #f5f7f8;
  --green: #146e5a;
  --green-dark: #105846;
  --mint: #e9f4f0;
  --navy: #1d2b35;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "DM Sans", Aptos, "Segoe UI", system-ui, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; padding: 8px 14px; background: #fff; border-radius: 6px; }
.skip-link:focus { left: 8px; z-index: 10; }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; transition: .18s ease; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 15px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary { border-color: #d5dde0; background: #fff; color: var(--navy); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

.site-header { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 6%; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font: 800 22px Aptos, "Segoe UI", sans-serif; letter-spacing: -1px; }
.brand svg { width: 30px; height: 30px; color: var(--green); }
.brand-light { color: var(--green); font-weight: 500; }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--text); }
.site-nav a:hover { color: var(--green); }
.header-actions { display: flex; gap: 10px; }

.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--green); }
h1, h2 { margin: 0; color: var(--navy); font-family: Aptos, "Segoe UI", "DM Sans", sans-serif; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -1.5px; }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 88px 6% 80px; background: #fff; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -2.5px; }
.hero-lead { margin: 0; max-width: 520px; color: var(--text); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.hero-proof li::before { content: "✓ "; color: var(--green); }

.hero-visual { flex: 1 1 400px; min-width: 0; }
.preview-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbf9; box-shadow: 0 8px 24px rgba(26, 45, 52, .06); }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.preview-head strong { color: var(--navy); font-size: 15px; }
.pill { padding: 4px 10px; border-radius: 20px; background: var(--mint); color: var(--green-dark); font-size: 12px; font-weight: 600; white-space: nowrap; }
.offer { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.offer + .offer { margin-top: 10px; }
.offer.best { border-color: var(--green); }
.offer-logo { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border-radius: 8px; background: #eef1f2; color: var(--text); font-weight: 700; }
.offer.best .offer-logo { background: var(--mint); color: var(--green); }
.offer-name { flex: 1; min-width: 0; }
.offer-name strong, .offer-price strong { display: block; color: var(--navy); font-size: 14px; }
.offer-name small, .offer-price small { color: var(--muted); font-size: 12px; }
.offer-price { text-align: right; }
.offer.best .offer-price small { color: var(--green); font-weight: 600; }
.preview-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--mint); color: var(--green-dark); font-size: 13px; font-weight: 500; }
.preview-note svg { width: 16px; height: 16px; flex: 0 0 16px; }

.section { padding: 88px 6%; display: flex; flex-direction: column; gap: 48px; }
.section-head { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.section-head p { margin: 0; color: var(--text); line-height: 1.6; }
.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.card h3 { margin: 0; color: var(--navy); font-size: 17px; }
.card p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.step { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; }

/* Acheteurs : thème vert. Fabricants : thème orange (thème « fabricant » de l'application). */
.section-buyer { background: #fff; }
.section-buyer .card { border-top: 3px solid var(--green); }
.section-maker { background: #f5f4f2; --accent: #a8560c; --accent-dark: #8a4608; --accent-soft: #fdf1e3; --accent-line: #e5a064; }
.section-maker .eyebrow { color: var(--accent); }
.section-maker .eyebrow::before { background: var(--accent); }
.section-maker h2 { color: #292d32; }
.section-maker .section-head p, .section-maker .card p { color: #65635f; }
.section-maker .card { border-color: #dcd9d3; border-top: 3px solid var(--accent-line); }
.section-maker .card h3 { color: #292d32; }
.btn-orange { background: var(--accent); color: #fff; }
.btn-orange:hover { background: var(--accent-dark); transform: translateY(-1px); }
.section-maker :focus-visible { outline-color: var(--accent); }

.member { gap: 14px; padding: 24px; }
.member-avatar { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 20px; font-weight: 700; }
.member-role { display: block; margin-top: 3px; color: var(--green); font-size: 13px; font-weight: 600; }
.member p { font-size: 13px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin: 0 6% 88px; padding: 56px; border-radius: 16px; background: var(--green); color: #fff; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); letter-spacing: -1px; }
.cta p { margin: 10px 0 0; color: #d4ece4; font-size: 15px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-outline-light { border-color: #7fb9aa; color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px 6%; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; }


/* Animations (désactivées si l'utilisateur préfère moins de mouvement). */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20, 110, 90, .35); } 70%, 100% { box-shadow: 0 0 0 9px rgba(20, 110, 90, 0); } }

.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(26, 45, 52, .08); }

.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-copy > :nth-child(5) { animation-delay: .4s; }
.hero-visual { animation: slide-in .9s cubic-bezier(.2, .7, .2, 1) .2s both; }
.preview-card { animation: float 6s ease-in-out 1.2s infinite; }
.preview-card .offer { animation: rise .6s ease both; }
.preview-card .offer.best { animation-delay: .7s; }
.preview-card .offer:not(.best) { animation-delay: .95s; }
.preview-card .pill { animation: pulse 2.4s ease-out 1.6s infinite; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
@media (hover: hover) { .card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(26, 45, 52, .09); } }
.js .reveal.card.in:hover { transition-delay: 0s; }
.step { transition: transform .3s ease; }
.card:hover .step { transform: scale(1.12) rotate(-6deg); }
.btn { transition: background .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease; }
.btn:hover { box-shadow: 0 8px 18px rgba(26, 45, 52, .14); }
.btn:active { transform: translateY(0) scale(.98); }
.member-avatar { transition: transform .3s ease; }
.member:hover .member-avatar { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tablette et mobile */
@media (max-width: 900px) {
  .hero { gap: 40px; padding: 64px 6% 56px; }
  .section { padding: 64px 6%; gap: 36px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 16px; }
  .site-header { position: static; flex-wrap: wrap; gap: 10px 12px; padding: 12px 5%; backdrop-filter: none; }
  .brand { font-size: 20px; }
  .brand svg { width: 26px; height: 26px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
  /* La navigation devient une rangée de pastilles défilante sous le logo. */
  .site-nav { order: 3; width: 100%; flex-wrap: nowrap; gap: 8px; margin: 0 -5%; padding: 2px 5% 4px; width: calc(100% + 10%); overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; font-size: 13px; }
  .site-header.scrolled { box-shadow: none; }

  .hero { padding: 36px 5% 44px; gap: 32px; }
  .hero-lead { font-size: 16px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn, .cta-actions .btn, .section > div > .btn { width: 100%; }
  .hero-proof { flex-direction: column; gap: 6px; }
  .hero-visual { flex-basis: 100%; }
  .preview-card { padding: 16px; animation: none; }
  .preview-head { flex-wrap: wrap; }
  .offer { padding: 12px; gap: 10px; }
  .offer-name small { display: block; }

  .section { padding: 48px 5%; gap: 28px; }
  .section-head { gap: 10px; }
  .card, .section-dark .card { padding: 20px; }
  .cards-4, .cards-3 { grid-template-columns: 1fr; gap: 14px; }
  .member { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .member-avatar { width: 52px; height: 52px; font-size: 17px; }
  .member p { flex-basis: 100%; }

  .cta { margin: 0 5% 48px; padding: 28px 22px; gap: 20px; }
  .site-footer { flex-direction: column; padding: 22px 5%; }
}
@media (max-width: 380px) {
  .brand span:last-child { font-size: 18px; }
  .header-actions .btn { padding: 0 11px; }
}

/* Illustrations et éléments animés */
.art-svg { display: block; width: 100%; height: auto; }
.art { margin: 0; }
.hero-visual { position: relative; padding-bottom: 56px; }
.hero-art { border-radius: 18px; box-shadow: 0 14px 34px rgba(26, 45, 52, .1); }
.hero-visual .preview-card { position: absolute; right: -14px; bottom: 0; width: min(310px, 66%); background: rgba(248, 251, 249, .97); }
.gear { animation: spin 26s linear infinite; }
.gear-b { animation-duration: 15s; animation-direction: reverse; }
.gear-c { animation-duration: 18s; }
.part { animation: bob 5s ease-in-out infinite; }
.dims { animation: dash 1.8s linear infinite; }
.blink { animation: blink 2s ease-in-out infinite; transform-origin: 46px 52px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translate(30px, 160px); } 50% { transform: translate(30px, 152px); } }
@keyframes dash { to { stroke-dashoffset: -18; } }
@keyframes blink { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .45; } }
@keyframes shuttle { 0%, 100% { transform: translateX(-62px); } 50% { transform: translateX(62px); } }
@keyframes chips { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-9px); opacity: .3; } }
@keyframes halo { from { transform: scale(1); opacity: .5; } to { transform: scale(1.3); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.split .section-head { max-width: none; }
.art-buyer, .art-maker { border-radius: 18px; box-shadow: 0 14px 34px rgba(26, 45, 52, .09); }
.art-buyer .sheet { animation: bob-sheet 6s ease-in-out infinite; }
@keyframes bob-sheet { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.art-buyer .halo { transform-origin: 300px 190px; animation: halo 2.4s ease-out infinite; }
.art-buyer .stamp { animation: bob-sheet 4.5s ease-in-out .6s infinite; }
.art-maker .spindle { animation: shuttle 5s ease-in-out infinite; }
.art-maker .chips { animation: chips 1.1s ease-in-out infinite; }

.step-head { display: flex; align-items: center; justify-content: space-between; }
.step-icon { width: 44px; height: 44px; color: var(--green); transition: transform .35s ease; }
.card:hover .step-icon { transform: translateY(-3px) scale(1.08); }
.step-icon .trend { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 2.4s ease-out .3s infinite alternate; }
.step-icon .ring { animation: halo-s 2.6s ease-out infinite; transform-origin: 24px 24px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes halo-s { from { transform: scale(.75); opacity: 1; } to { transform: scale(1.1); opacity: .15; } }

.marquee { display: flex; overflow: hidden; border-block: 1px solid var(--line); background: var(--canvas); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track { flex: 0 0 auto; min-width: 100%; display: flex; align-items: center; justify-content: space-around; gap: 14px; margin: 0; padding: 18px 14px 18px 0; list-style: none; animation: marquee 38s linear infinite; }
.marquee-track li { white-space: nowrap; padding: 8px 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--text); font-size: 13px; font-weight: 600; }
.marquee-track li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.marquee-track li:nth-child(even)::before { background: #e5a064; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .art-buyer, .art-maker { max-width: 440px; }
}
@media (max-width: 700px) {
  .hero-visual { padding-bottom: 0; }
  .hero-visual .preview-card { position: relative; right: auto; width: auto; margin: -36px 12px 0; }
  .marquee-track { padding-block: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

@media (min-width: 701px) { .hero-visual .preview-note { display: none; } .hero-visual .preview-card { padding: 16px; } }

/* Blocs acheteurs / fabricants : 2 colonnes, texte plus grand, icône. */
.cards-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card.feature { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px; }
.card.feature h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.25; letter-spacing: -.3px; }
.card.feature p { font-size: 15px; line-height: 1.6; }
.feature-icon { width: 54px; height: 54px; display: grid; flex: 0 0 54px; place-items: center; border-radius: 14px; background: var(--mint); color: var(--green); transition: transform .3s ease; }
.feature-icon svg { width: 28px; height: 28px; }
.section-maker .feature-icon { background: #fdf1e3; color: #a8560c; }
.card.feature:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.section-buyer .card.feature p { color: #3d4b53; }
.section-maker .card.feature p { color: #55534f; }

@media (max-width: 1100px) { .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cards-2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .card.feature { flex-direction: row; padding: 20px; gap: 14px; }
  .feature-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 12px; }
  .feature-icon svg { width: 24px; height: 24px; }
  .card.feature h3 { font-size: 18px; }
  .card.feature p { font-size: 15px; }
}

.site-footer a { color: var(--green); font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
