/* Bouth Automatisation : site vitrine. Basé sur le design "Cadence Site" (Claude Design) et le système "Modernist". */
/* Police hébergée sur le site (aucun appel à Google Fonts, donc aucune adresse IP transmise à un tiers). Archivo, licence SIL OFL. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #140d1f;
  --color-surface: #1d1530;
  --color-text: #f4effb;
  --color-accent: #8f4dff;
  --color-divider: rgba(244, 239, 251, .18);
  --color-accent-100: #f4edff;
  --color-accent-200: #e6d8ff;
  --color-accent-300: #d3baff;
  --color-accent-400: #b48aff;
  --color-accent-500: #9a63ff;
  --color-accent-600: #7a35f0;
  --color-accent-700: #6224cc;
  --color-accent-800: #47199a;
  --color-accent-900: #2c1260;
  --shadow-lg: 0 0 0 1px rgba(244, 239, 251, .08), 0 24px 60px rgba(0, 0, 0, .5);
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; min-height: 100vh; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; margin: 0; }
h6 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
p { margin: 0; }
a { color: var(--color-accent-400); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-300); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--color-accent-300); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #140d1f; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Boutons, champs, étiquettes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: 14px; line-height: 1.2; color: var(--color-text); background: transparent; border: 1px solid transparent; padding: 10px 14px; border-radius: 0; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-600); color: #fff; }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: rgba(244, 239, 251, .07); color: var(--color-text); }
.btn-lg { padding: 16px 20px; font-size: 16px; gap: 28px; justify-content: space-between; min-width: 260px; white-space: nowrap; }
.field > label { display: block; font-size: 13px; margin-bottom: 5px; color: rgba(244, 239, 251, .78); }
.input { width: 100%; min-height: 46px; padding: 6px 10px; font: inherit; font-size: 16px; color: var(--color-text); caret-color: var(--color-accent); background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 0; }
.input:hover { border-color: rgba(244, 239, 251, .45); }
.input:focus-visible { border-color: var(--color-accent-300); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .02em; padding: 3px 10px; }
.tag-outline { border: 1px solid var(--color-accent-400); color: var(--color-accent-300); }
.tag-accent { background: var(--color-accent-900); color: var(--color-accent-200); font-weight: 600; }
.kicker { color: var(--color-accent-300); }

/* Structure */
.wrap { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px); }
.sec { border-bottom: 2px solid var(--color-divider); scroll-margin-top: 64px; }
.sec-head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.03em; text-wrap: balance; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 13, 31, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 2px solid var(--color-divider); }
.nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: var(--space-6); padding: var(--space-3) clamp(16px, 4vw, 40px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--color-text); }
.brand-logo { display: block; height: 40px; width: auto; }
@media (max-width: 420px) { .brand-logo { height: 32px; } }
.nav-links { display: none; gap: var(--space-6); font-size: 14px; }
.nav-links a { color: var(--color-text); text-decoration: none; }
.nav-links a:hover { color: var(--color-accent-300); }
.nav-cta { white-space: nowrap; flex: none; gap: 10px; }
.cta-long { display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } .cta-long { display: inline; } .cta-short { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--color-divider); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(244, 239, 251, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 239, 251, .05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%); }
.hero-glow { position: absolute; width: 720px; height: 720px; right: -160px; top: -180px; background: radial-gradient(circle, rgba(143, 77, 255, .32), transparent 62%); pointer-events: none; }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(48px, 9vw, 120px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 104px); display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.hero-copy .tag { align-self: flex-start; font-size: 12px; line-height: 1.4; padding: 6px 10px; letter-spacing: .08em; text-transform: uppercase; width: max-content; max-width: 100%; }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 span { color: var(--color-accent-300); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 34em; color: rgba(244, 239, 251, .78); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-note { font-size: 14px; color: rgba(244, 239, 251, .6); }
.hero-visual { flex: 1 1 360px; min-width: 0; max-width: 520px; }
.visual { position: relative; aspect-ratio: 1/1; width: 100%; border: 2px solid var(--color-divider); background: rgba(29, 21, 48, .55); backdrop-filter: blur(10px); overflow: hidden; }
.visual-glow { position: absolute; left: 10%; right: 10%; bottom: -20%; height: 60%; background: radial-gradient(ellipse, rgba(143, 77, 255, .5), transparent 70%); }
.visual-lines { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(244, 239, 251, .06) 1px, transparent 1px); background-size: 25% 100%; }
.bars { position: absolute; left: 8%; right: 8%; top: 14%; bottom: 18%; display: flex; align-items: flex-end; gap: 4px; }
.bars span { flex: 1; transform-origin: bottom; animation: cad-bar 2.4s ease-in-out infinite; }
.visual-base { position: absolute; left: 8%; right: 8%; bottom: 18%; height: 2px; background: rgba(244, 239, 251, .5); }
.visual-labels { position: absolute; left: 8%; right: 8%; bottom: 7%; display: flex; justify-content: space-between; font: 600 11px/1 var(--font-body); letter-spacing: .1em; color: rgba(244, 239, 251, .55); }
@keyframes cad-bar { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }

/* Problème */
.pain { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--color-divider); border-left: 2px solid var(--color-divider); }
.pain > div { padding: var(--space-8) var(--space-6); border-right: 2px solid var(--color-divider); border-bottom: 2px solid var(--color-divider); display: flex; flex-direction: column; gap: var(--space-4); }
.pain .num { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--color-accent-400); }
.pain p { font-size: 19px; line-height: 1.35; font-weight: 600; text-wrap: pretty; }
.punch { margin-top: clamp(28px, 4vw, 40px); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.3; max-width: 30em; text-wrap: pretty; }
.punch span { color: var(--color-accent-300); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; background: var(--color-divider); border: 2px solid var(--color-divider); }
.service { background: var(--color-surface); padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.service .icon { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(143, 77, 255, .16); color: var(--color-accent-300); margin-bottom: var(--space-2); }
.service h3 { font-size: 21px; }
.service p { color: rgba(244, 239, 251, .78); text-wrap: pretty; }
.service .ex { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--color-divider); font-size: 14px; color: rgba(244, 239, 251, .66); }
.service .ex strong { color: var(--color-accent-300); font-weight: 600; }
.service-cta { background: var(--color-accent-600); color: #fff; text-decoration: none; padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); justify-content: space-between; min-height: 240px; }
.service-cta:hover { background: var(--color-accent-700); color: #fff; }
.service-cta h3 { font-size: 24px; line-height: 1.15; text-wrap: balance; }
.service-cta span { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; font-size: 16px; padding-top: var(--space-4); border-top: 2px solid rgba(255, 255, 255, .4); }

/* Démarche */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 var(--space-6); }
.steps li { padding: var(--space-6) 0 var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.steps li:nth-child(1) { border-top: 4px solid var(--color-accent); }
.steps li:nth-child(2) { border-top: 4px solid var(--color-accent-500); }
.steps li:nth-child(3) { border-top: 4px solid var(--color-accent-400); }
.steps li:nth-child(4) { border-top: 4px solid var(--color-accent-300); }
.steps .big { font-family: var(--font-heading); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.04em; color: var(--color-accent-300); }
.steps h3 { font-size: 20px; }
.steps p { color: rgba(244, 239, 251, .74); text-wrap: pretty; }
.steps .tag { align-self: flex-start; }

/* À propos */
.about { background: linear-gradient(180deg, rgba(143, 77, 255, .07), transparent 60%); }
.about .wrap { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { flex: 1 1 320px; max-width: 480px; margin: 0; position: relative; }
.portrait::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--color-accent-500); }
.portrait img { position: relative; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.about-copy h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.03em; text-wrap: balance; }
.about-text { display: flex; flex-direction: column; gap: var(--space-4); font-size: 17px; color: rgba(244, 239, 251, .82); max-width: 36em; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--color-divider); }
.checks li { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); }
.checks svg { flex: none; margin-top: 2px; }
.checks .muted { color: rgba(244, 239, 251, .74); }

/* Exemples */
.examples-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-4) var(--space-8); margin-bottom: clamp(32px, 5vw, 56px); }
.examples-head .sec-head { margin-bottom: 0; max-width: 640px; }
.examples-head .note { font-size: 14px; color: rgba(244, 239, 251, .62); max-width: 22em; }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.example { border: 2px solid var(--color-divider); background: rgba(29, 21, 48, .6); display: flex; flex-direction: column; }
.example .top { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.example .card-kicker { color: var(--color-accent-300); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.example h3 { font-size: 21px; line-height: 1.2; text-wrap: balance; }
.example dl { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 2px solid var(--color-divider); font-size: 14px; }
.example dt { padding: var(--space-3) var(--space-4); font-weight: 600; color: rgba(244, 239, 251, .6); border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.example dd { margin: 0; padding: var(--space-3) var(--space-4); color: rgba(244, 239, 251, .78); border-bottom: 1px solid var(--color-divider); }
.example dt:last-of-type { color: var(--color-accent-300); border-bottom: 0; }
.example dd:last-of-type { color: var(--color-text); border-bottom: 0; }

/* FAQ */
.faq .wrap { display: flex; flex-wrap: wrap; gap: var(--space-8) clamp(32px, 6vw, 80px); }
.faq .sec-head { flex: 1 1 280px; margin-bottom: 0; }
.faq-list { flex: 2 1 460px; min-width: 0; border-top: 2px solid var(--color-divider); }
.faq-item { border-bottom: 2px solid var(--color-divider); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-6) 0; background: none; border: 0; color: var(--color-text); font-family: var(--font-heading); font-weight: 600; font-size: clamp(17px, 1.8vw, 20px); text-align: left; cursor: pointer; }
.faq-q:hover { color: var(--color-accent-300); }
.faq-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; font-size: 24px; font-weight: 400; line-height: 1; border: 2px solid var(--color-divider); color: var(--color-accent-300); transition: transform .25s; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 0 var(--space-6); max-width: 40em; color: rgba(244, 239, 251, .78); text-wrap: pretty; }
.faq-a[hidden] { display: none; }

/* Contact */
.contact { background: var(--color-accent-600); color: #fff; position: relative; overflow: hidden; scroll-margin-top: 64px; }
.contact::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 56px 56px; }
.contact-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 72px); align-items: flex-start; }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.contact h2 { font-size: clamp(44px, 7vw, 88px); line-height: .98; letter-spacing: -.04em; }
.contact .lead { color: #fff; max-width: 28em; }
.btn-white { align-self: flex-start; background: #fff; color: var(--color-accent-800); padding: 18px 22px; font-size: 17px; gap: 32px; justify-content: space-between; min-width: 280px; white-space: nowrap; }
.btn-white:hover { background: var(--color-accent-100); color: var(--color-accent-800); }
.contact-person { display: flex; align-items: center; gap: var(--space-4); padding-top: var(--space-6); border-top: 2px solid rgba(255, 255, 255, .35); }
.contact-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid #fff; flex: none; }
.contact-person p { font-size: 15px; line-height: 1.4; }
.form-card { flex: 1 1 380px; min-width: 0; background: var(--color-bg); color: var(--color-text); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.form-card form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-card h3 { font-size: 22px; margin-bottom: var(--space-2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.form-note { font-size: 12px; color: rgba(244, 239, 251, .6); }
.form-card .btn-primary { padding: 16px 20px; font-size: 16px; justify-content: space-between; }
.form-status { display: flex; flex-direction: column; gap: var(--space-4); min-height: 280px; justify-content: center; }
.form-status[hidden] { display: none; }
.form-status .ok { width: 48px; height: 48px; display: grid; place-items: center; background: var(--color-accent); color: #fff; }
.form-status h3 { font-size: 24px; }
.form-status p { color: rgba(244, 239, 251, .78); }

/* Pied de page */
.site-footer { border-top: 2px solid var(--color-divider); }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: var(--space-8) clamp(16px, 4vw, 40px) clamp(32px, 5vw, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-6) var(--space-8); font-size: 14px; }
.footer-grid > div { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-grid h6 { color: rgba(244, 239, 251, .55); margin-bottom: var(--space-1); }
.footer-grid a { color: var(--color-text); }
.footer-grid .muted { color: rgba(244, 239, 251, .62); }
.footer-logo { display: block; height: 88px; width: auto; margin-bottom: var(--space-2); }

/* Page légale */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px); }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: var(--space-6); }
.legal h2 { font-size: 22px; margin: var(--space-8) 0 var(--space-3); }
.legal p, .legal li { color: rgba(244, 239, 251, .82); margin-bottom: var(--space-3); }
.legal .draft { border: 2px solid var(--color-accent-400); background: rgba(143, 77, 255, .12); padding: var(--space-4); margin-bottom: var(--space-6); }
.legal ul { margin: 0 0 var(--space-3); padding-left: 1.2em; }
.legal li { margin-bottom: var(--space-2); }
.legal .updated { font-size: 14px; color: rgba(244, 239, 251, .6); margin-bottom: var(--space-6); }
.legal .contact-box { border: 2px solid var(--color-divider); padding: var(--space-4) var(--space-6); margin: var(--space-4) 0; }
.legal .contact-box p { margin-bottom: var(--space-1); }

/* Apparition au défilement */
[data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].pending { opacity: 0; transform: translateY(18px); }

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