/* =========================================================================
   Polices Inter, hébergées sur notre propre domaine.
   Aucune requête vers fonts.googleapis.com ni fonts.gstatic.com : le
   navigateur du visiteur ne communique son adresse IP qu'à business-ia.net.
   Source : @fontsource/inter 5.3.0 (licence SIL Open Font License 1.1).
   ========================================================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-500-normal.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-700-normal.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-800-normal.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;
}

/* =========================================================================
   style.css — Feuille de style du site.
   Palette reprise de la feuille de route (navy / vert), même esprit
   graphique pour une identité cohérente entre les documents et le site.
   ========================================================================= */

:root {
  --navy: #1f3a5f;
  --navy-dark: #16293f;
  --accent: #2e6f5e;
  --accent-light: #3f8b74;
  --light: #eaf1ee;
  --grey: #5b6670;
  --border: #dfe6e2;
  --bg: #ffffff;
  --bg-muted: #f6f9f8;
  --text: #1c2327;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(31, 58, 95, 0.08);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 680px; }

/* ---- Typographie générale --------------------------------------------- */

h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 16px; }
a { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow--center { display: block; text-align: center; }

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--large { padding: 15px 32px; font-size: 1.02rem; }
.btn--small { padding: 8px 18px; font-size: 0.85rem; }
.btn--full { display: block; width: 100%; text-align: center; }

/* ---- En-tête / navigation ---------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
}
.logo__mark { display: block; flex-shrink: 0; }
.logo__text { line-height: 1; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.main-nav a.is-active { color: var(--accent); }
.main-nav a:hover { color: var(--accent); }

.lang-switch { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; color: var(--text-muted, #6b7280); }
.lang-switch__link { color: var(--text-muted, #6b7280); text-decoration: none; font-weight: 600; }
.lang-switch__link.is-active { color: var(--accent); }
.lang-switch__link:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

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

.hero {
  background: linear-gradient(180deg, var(--light) 0%, #ffffff 100%);
  padding: 88px 0 72px;
}
.hero--niche { padding: 72px 0 56px; }
.hero__inner { max-width: 780px; }
.hero__lead { font-size: 1.1rem; color: var(--grey); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* ---- Sections génériques -------------------------------------------------- */

.section { padding: 72px 0; }
.section--muted { background: var(--bg-muted); }
.section__title { text-align: center; max-width: 640px; margin: 0 auto 16px; }
.section__title--left { text-align: left; margin: 0 0 16px; }
.section__lead { text-align: center; max-width: 640px; margin: 0 auto 40px; color: var(--grey); }
.section__cta { text-align: center; margin-top: 44px; }

.page-header {
  padding: 64px 0 40px;
  background: var(--light);
}

/* ---- Cartes d'offres -------------------------------------------------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.offer-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.offer-card--highlight { border-color: var(--accent); background: var(--light); }
.offer-card__icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.offer-card p { color: var(--grey); margin-bottom: 0; font-size: 0.95rem; }

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

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.step p { color: var(--grey); font-size: 0.95rem; }

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

.section--cta-final {
  background: var(--navy);
  color: #fff;
}
.section--cta-final h2 { color: #fff; }
.section--cta-final p { color: #cdd9e8; }
.section--cta-final__inner { text-align: center; max-width: 620px; }

/* ---- Deux colonnes (landing niche) -------------------------------------- */

.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--grey);
}
.check-list li:last-child { border-bottom: none; }
.check-list--pain li::before { content: "✕"; position: absolute; left: 0; color: #b3542e; font-weight: 700; }
.check-list--gain li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---- Grille de tarifs ---------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}
.pricing-card--highlight {
  border-color: var(--accent);
  transform: scale(1.02);
  background: var(--light);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.pricing-card__desc { color: var(--grey); min-height: 48px; }
.pricing-card__price { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.pricing-card__price span { font-size: 0.85rem; font-weight: 500; color: var(--grey); }
.pricing-card__price-sub { color: var(--grey); font-size: 0.9rem; margin-bottom: 20px; }
.pricing-card__features { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.pricing-card__features li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text);
}
.pricing-card__features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-note { text-align: center; color: var(--grey); margin-top: 40px; }
.pricing-note--muted { margin-top: 8px; font-size: 0.85rem; }
.pricing-note a { color: var(--accent); font-weight: 600; }

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

.lead-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 111, 94, 0.15);
}

/* Champ anti-spam invisible : masqué visuellement mais accessible dans
   le DOM (les robots le remplissent, un humain ne le voit jamais). */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  background: #fbeaea;
  border: 1px solid #e2b4b4;
  color: #8a2f2f;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.form-alert ul { margin: 0; padding-left: 18px; }
.form-alert--success {
  background: #eaf6f0;
  border-color: #b7ddc7;
  color: #1f6f47;
}
.form-alert--success p { margin: 0; }

.account-info p { margin: 0 0 10px; }

.form-section__title {
  font-size: 1.05rem;
  margin: 10px 0 -4px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.lead-form > .form-section__title:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.form-hint { color: var(--grey); font-size: 0.85rem; margin: 0; }
.form-hint--center { text-align: center; }
.form-row--radio { flex-direction: row; flex-wrap: wrap; gap: 14px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}
.radio-option input { width: auto; }
.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
}
.checkbox-option input { width: auto; margin-top: 3px; }

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

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 18px;
}
.faq-item__question {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::before { content: "+"; display: inline-block; width: 1.2em; color: var(--accent); font-weight: 700; }
.faq-item[open] .faq-item__question::before { content: "–"; }
.faq-item__answer { padding: 0 0 16px; color: var(--grey); }
.faq-item__answer p { margin: 0; }

/* ---- Confirmation ---------------------------------------------------------- */

.confirmation-icon { font-size: 2.6rem; display: block; margin-bottom: 16px; }

/* ---- Démo chatbot ---------------------------------------------------------- */

.demo-frame {
  max-width: 420px;
  margin: 0 auto;
}
.chatbot-demo {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 460px;
}
.chatbot-demo__header {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chatbot-demo__header::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #57d38c;
  display: inline-block;
}
.chatbot-demo__messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-muted);
}
.chatbot-demo__bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: bubble-in 0.25s ease;
}
.chatbot-demo__bubble--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chatbot-demo__bubble--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chatbot-demo__typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chatbot-demo__typing span {
  width: 6px;
  height: 6px;
  background: var(--grey);
  border-radius: 50%;
  display: inline-block;
  animation: typing-bounce 1s infinite ease-in-out;
}
.chatbot-demo__typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-demo__typing span:nth-child(3) { animation-delay: 0.3s; }

.chatbot-demo__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chatbot-demo__cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.chatbot-demo__replay {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ---- Pied de page ---------------------------------------------------------- */

.site-footer {
  background: var(--navy-dark);
  color: #cdd9e8;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 20px;
}
.site-footer__brand { color: #fff; font-weight: 800; margin-bottom: 4px; }
.site-footer__tagline { margin: 0; font-size: 0.9rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__links a { color: #cdd9e8; text-decoration: none; font-size: 0.9rem; }
.site-footer__links a:hover { color: #fff; }
.site-footer__legal { font-size: 0.78rem; color: #92a3b8; margin: 0; }

/* ---- Responsive ------------------------------------------------------------ */

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; }
  .pricing-card--highlight { transform: none; }
}
