/* ═══════════════════════════════════════════════════════════
   ANYSEARCH — style.css v1
   Inspired by Jonite · Suisse Intl / DM Sans · Conteneur 83%
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --accent: #1a1a1a;
  --accent-soft: rgba(26, 26, 26, .06);

  --black: #0c0c0c;
  --dark: #1a1a1a;
  --text-light: #e4e4e4;
  --muted: #737373;
  --line: #d8d6d2;
  --card-bg: #f0efeb;
  --bg: #e8e6e1;
  --bg-warm: #dfddd8;
  --white: #fff;

  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --v-space: 140px;
  --ease: cubic-bezier(.25, .46, .45, .94);
  --ease-out: cubic-bezier(.77, 0, .175, 1);
  --speed: .4s;
  --speed-fast: .25s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--muted); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--speed-fast); }
ul { list-style: none; }

.wrap { width: 91.667%; max-width: 83.333%; margin: 0 auto; }
@media (max-width: 768px) { .wrap { max-width: 91.667%; } }


/* ═══════════ HEADER CTA ═══════════ */
.cta-wrap { display: inline-flex; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 0; border: 1px solid var(--dark);
  background: var(--dark); color: var(--white);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: all .3s ease;
  letter-spacing: .02em;
}
.cta-btn:hover { background: transparent; color: var(--dark); }
.cta-btn .arrow { display: inline-block; transition: transform var(--speed-fast); font-size: 13px; }
.cta-btn:hover .arrow { transform: translate(3px, -3px); }


/* ═══════════ HEADER ═══════════ */
.header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h); z-index: 1000;
  background: rgba(232, 230, 225, .88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent; transition: border-color var(--speed);
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--black); text-transform: uppercase; letter-spacing: .08em; }
.logo-icon { height: 28px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 16px; font-weight: 400; color: var(--muted); padding: 4px 0; transition: color var(--speed-fast); letter-spacing: .01em; }
.nav-link:hover { color: var(--black); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--black); transition: transform var(--speed), opacity var(--speed); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ═══════════ HERO ═══════════ */
.hero { padding-top: calc(var(--header-h) + 120px); padding-bottom: 0; }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; padding-bottom: var(--v-space);
}
.hero-content { max-width: 600px; }
.hero-tag { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; margin-bottom: 24px; font-weight: 500; }
.hero h1 {
  font-family: var(--display); font-size: clamp(52px, 7vw, 100px); font-weight: 700;
  line-height: 1.0; color: var(--black); letter-spacing: -.04em; margin-bottom: 32px;
}
.hero h1 .accent { color: var(--muted); }
.hero-desc { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }


/* ═══════════ SEARCH DEMO WINDOW ═══════════ */
.hero-visual { display: flex; justify-content: center; align-items: flex-start; position: relative; }

.search-window {
  width: 520px; height: 540px; background: var(--white);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
  display: flex; flex-direction: column;
}
.sw-topbar {
  display: flex; align-items: center; padding: 14px 20px;
  border-bottom: 1px solid var(--line); background: var(--card-bg);
  flex-shrink: 0;
}
.sw-dots { display: flex; gap: 6px; }
.sw-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.sw-title { margin-left: 16px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.sw-search-bar {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px;
  border-bottom: 1px solid var(--line); color: var(--muted);
  min-height: 56px; flex-shrink: 0;
}
.sw-typing { display: flex; align-items: center; flex: 1; min-width: 0; }
.typing-text { font-size: 14px; color: var(--black); font-weight: 400; }
.typing-cursor {
  font-size: 14px; color: var(--black); font-weight: 300;
  animation: blink 1s step-end infinite; margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* Scrollable content area below the fixed search bar */
.sw-body { padding: 0; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sw-content { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; background: var(--card-bg); }
.sw-content::-webkit-scrollbar { width: 0; }

/* Document preview — grows into the fixed space */
.sw-doc-preview {
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .6s ease, max-height .6s ease;
}
.sw-doc-preview.visible { opacity: 1; max-height: 280px; }

.sw-doc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  color: var(--muted); height: 40px; flex-shrink: 0;
}
.sw-doc-name { font-size: 13px; font-weight: 600; color: var(--black); flex: 1; }
.sw-doc-badge {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); background: var(--card-bg); padding: 3px 10px;
}
.sw-doc-image {
  width: 100%; height: 240px; overflow: hidden;
  background: var(--card-bg); position: relative; flex-shrink: 0;
}
.sw-doc-image img {
  width: 100%; height: 240px; object-fit: cover; object-position: top;
  display: block;
}
.sw-doc-image.sw-doc-placeholder {
  display: flex; align-items: center; justify-content: center;
}
.sw-doc-image.sw-doc-placeholder::after {
  content: 'Document'; font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em;
}

/* AI Answer — fills remaining space */
.sw-answer {
  padding: 0; background: var(--card-bg); border-top: 1px solid var(--line);
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity .5s ease, max-height .5s ease, flex .5s ease;
}
.sw-answer.visible { opacity: 1; max-height: 200px; padding: 16px 20px; flex: 1; }

.sw-answer-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin-bottom: 8px;
}
.sw-answer-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; } 50% { opacity: .4; }
}
.sw-answer-text { font-size: 13px; color: var(--black); line-height: 1.6; }


/* ═══════════ SHARED ═══════════ */
.rule { width: 100%; height: 1px; background: var(--line); }
.tag { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.section-title { font-family: var(--display); font-size: clamp(32px, 4.5vw, 64px); font-weight: 700; color: var(--black); line-height: 1.05; letter-spacing: -.03em; }
.section-title .faded { color: var(--muted); }
.section-desc { font-size: 18px; color: var(--muted); max-width: 560px; line-height: 1.7; }
.section-head { margin-bottom: 56px; }
.section-head .section-title { margin-bottom: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 16px;
  font-weight: 400; border: 1px solid rgba(0,0,0,.15); cursor: pointer; padding: 16px 36px; transition: all var(--speed-fast);
}
.btn:hover { opacity: .8; }
.btn > * { position: relative; z-index: 1; }
.btn--dark { background: var(--black); color: var(--text-light); border-color: rgba(255,255,255,.15); }
.btn--dark:hover { background: #333; opacity: 1; }
.btn--outline { background: transparent; color: var(--dark); border-color: rgba(0,0,0,.2); }
.btn--outline:hover { border-color: var(--black); color: var(--black); opacity: 1; }
.btn--accent { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--accent:hover { background: var(--card-bg); border-color: var(--card-bg); opacity: 1; }
.arrow { display: inline-block; transition: transform var(--speed-fast); }
.btn:hover .arrow { transform: translate(3px, -3px); }


/* ═══════════ PROFESSIONS ═══════════ */
.professions { background: var(--white); padding: var(--v-space) 0; }

.professions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.profession-card {
  background: var(--white); padding: 44px 36px;
  transition: background var(--speed);
}
.profession-card:hover { background: var(--card-bg); }
.profession-icon { margin-bottom: 20px; color: var(--black); }
.profession-card h4 { font-size: 22px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.profession-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }


/* ═══════════ FEATURES ═══════════ */
.features { background: var(--bg); padding: var(--v-space) 0; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feat-card {
  background: var(--white); border: 1px solid var(--line); padding: 40px;
  transition: all .3s ease;
}
.feat-card:hover { border-color: rgba(0,0,0,.25); }
.feat-card h3 { font-size: clamp(24px, 2.5vw, 40px); font-weight: 700; color: var(--black); margin-bottom: 8px; letter-spacing: -.02em; }
.feat-subtitle { font-size: 18px; font-weight: 500; color: var(--black); margin-bottom: 8px; }
.feat-card p { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; max-width: 540px; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-tag { border: 1px solid var(--line); padding: 4px 12px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }


/* ═══════════ DEPLOYMENT ═══════════ */
.deployment { background: var(--bg); padding: 0 0 var(--v-space); }

.deployment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.deploy-card {
  padding: 48px 44px; border: 1px solid var(--line);
  transition: all .3s ease;
}
.deploy-card--cloud { background: var(--white); }

.deploy-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  border: 1px solid var(--line); padding: 4px 12px; margin-bottom: 24px;
}
.deploy-card h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 700; color: var(--black); margin-bottom: 16px; letter-spacing: -.02em; }
.deploy-desc { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 28px; }
.deploy-list { display: flex; flex-direction: column; gap: 12px; }
.deploy-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--muted);
}
.deploy-list svg { flex-shrink: 0; }

/* Local (dark) card — placed AFTER general rules for correct cascade */
.deploy-card.deploy-card--local { background: var(--black); border-color: var(--black); }
.deploy-card.deploy-card--local h3 { color: var(--white); }
.deploy-card.deploy-card--local .deploy-badge { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.2); }
.deploy-card.deploy-card--local .deploy-desc { color: rgba(255,255,255,.7); }
.deploy-card.deploy-card--local li { color: rgba(255,255,255,.85); }
.deploy-card.deploy-card--local .deploy-list svg { stroke: rgba(255,255,255,.7); }


/* ═══════════ APPROACH / TECHNOLOGIE ═══════════ */
.approach {
  background: var(--white); padding: var(--v-space) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.approach .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.approach-intro h2 { font-family: var(--display); font-size: clamp(28px, 3.5vw, 56px); font-weight: 700; color: var(--black); line-height: 1.1; margin-bottom: 20px; letter-spacing: -.03em; }
.approach-intro > p { font-size: 16px; color: var(--muted); line-height: 1.7; }
.steps { display: flex; flex-direction: column; gap: 40px; }
.step { display: flex; gap: 24px; align-items: flex-start; }
.step-n { font-size: 18px; color: var(--line); min-width: 36px; padding-top: 2px; font-weight: 600; }
.step h4 { font-size: 20px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.step p { font-size: 16px; color: var(--muted); line-height: 1.6; }


/* ═══════════ STATS ═══════════ */
.stats-section { background: var(--white); padding: var(--v-space) 0; }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.stat { background: var(--white); padding: 48px 32px; text-align: center; transition: background var(--speed); }
.stat:hover { background: var(--card-bg); }
.stat .n { font-family: var(--display); font-size: clamp(36px, 4vw, 56px); font-weight: 700; color: var(--black); line-height: 1; margin-bottom: 12px; letter-spacing: -.02em; }
.stat p { font-size: 15px; color: var(--muted); line-height: 1.5; }


/* ═══════════ DÉMO CTA ═══════════ */
.demo { background: var(--black); padding: var(--v-space) 0; text-align: center; overflow: hidden; position: relative; }
.demo::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }
.demo-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.demo-logo {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  margin: 0 auto 32px; display: flex; align-items: center; justify-content: center;
}
.demo .tag { color: rgba(255,255,255,.35); }
.demo .section-title { color: var(--white); margin-bottom: 24px; }
.demo .section-desc { color: rgba(255,255,255,.4); margin: 0 auto 48px; text-align: center; }


/* ═══════════ FAQ ═══════════ */
.faq { background: var(--bg); padding: var(--v-space) 0; }
.faq-grid { display: flex; flex-direction: column; gap: 0; margin-top: 48px; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0; cursor: pointer; background: none; border: none;
  font-family: var(--sans); font-size: 20px; font-weight: 600;
  color: var(--black); text-align: left; width: 100%;
  transition: color var(--speed-fast);
}
.faq-q:hover { color: var(--muted); }
.faq-q .plus {
  font-size: 24px; font-weight: 300; color: var(--muted);
  transition: transform var(--speed); flex-shrink: 0; margin-left: 20px;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 28px; }
.faq-a p { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 700px; }


/* ═══════════ CONTACT ═══════════ */
.contact { background: var(--bg); padding: var(--v-space) 0; }
.contact .wrap { max-width: 640px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white); border: 1px solid var(--line); padding: 14px 18px;
  color: var(--black); font-family: var(--sans); font-size: 16px; outline: none;
  transition: border-color var(--speed-fast), box-shadow var(--speed-fast);
}
.form-group select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
  padding-right: 44px; cursor: pointer;
}
.form-group select:invalid { color: #aaa; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #aaa; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-msg { padding: 16px 20px; font-size: 15px; margin-bottom: 20px; }
.form-msg--ok { background: rgba(0,0,0,.03); border: 1px solid rgba(0,0,0,.1); color: var(--dark); }
.form-msg--err { background: rgba(220,53,69,.05); border: 1px solid rgba(220,53,69,.18); color: #c0392b; }


/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--black); padding: 48px 0 0; color: rgba(255,255,255,.35); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; padding-bottom: 48px; }
.footer .logo { color: var(--white); }
.footer .logo-icon { color: var(--white); }
.footer-copy { font-size: 14px; color: rgba(255,255,255,.25); }
.footer-address { font-size: 14px; color: rgba(255,255,255,.35); letter-spacing: .02em; }
.footer-rule { width: 100%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }


/* ═══════════ ANIMATIONS ═══════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
.anim { animation: fadeUp .8s var(--ease) both; }
.anim-d1 { animation-delay: .12s; }
.anim-d2 { animation-delay: .24s; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }


/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1100px) {
  :root { --v-space: 100px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content { margin: 0 auto; max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .professions-grid { grid-template-columns: repeat(2, 1fr); }
  .deployment-grid { grid-template-columns: 1fr; }
  .approach .wrap { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --v-space: 72px; --header-h: 64px; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; width: 100%;
    height: calc(100vh - var(--header-h)); background: rgba(232, 230, 225, .98);
    backdrop-filter: blur(20px); flex-direction: column; align-items: center;
    justify-content: center; gap: 24px; opacity: 0; pointer-events: none; transition: opacity var(--speed);
  }
  .nav.open { opacity: 1; pointer-events: all; }
  .nav-link { font-size: 22px; }
  .menu-toggle { display: flex; }
  .search-window { width: 100%; height: 480px; }
  .stats-row { grid-template-columns: 1fr; }
  .professions-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer .wrap { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 420px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; width: 100%; }
}
