/* ============================================================
   Dentiq — thème clair, neutre & chaleureux
   Palette : ivoire / sable / encre verte profonde / framboise
   ============================================================ */
:root {
  --bg: #FAF7F2;          /* ivoire */
  --bg-2: #F1EBE2;        /* sable */
  --card: #FFFFFF;
  --ink: #1E2B27;         /* encre verte très sombre */
  --ink-soft: #58635E;    /* texte secondaire */
  --line: #E5DDD1;        /* bordures chaudes */
  --accent: #C7437A;      /* framboise Dentiq */
  --accent-dark: #A83263;
  --accent-soft: #FBEAF1;
  --ok: #1D8A63;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Albert Sans', system-ui, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(30,43,39,.16);
  --ease: cubic-bezier(.2,.8,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; }

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(199,67,122,.55);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(199,67,122,.6); }
.btn-soft {
  background: var(--card); color: var(--ink); border-color: var(--line);
  box-shadow: 0 4px 14px -8px rgba(30,43,39,.15);
}
.btn-soft:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #10201B; transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============ Nav ============ */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,247,242,.85); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-color: var(--line); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 18px;
}
.nav-inner .nav-links { margin-left: auto; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 27px; height: 27px; color: var(--accent); }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.lang-switch {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; transition: color .2s, border-color .2s;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }
.nav-burger { display: none; }

/* ============ Hero ============ */
.hero { padding: 76px 24px 90px; overflow: hidden; }
.hero-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.chip {
  display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); border: 1px solid #F3D3E1;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; line-height: 1.06; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 480px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { margin-top: 26px; display: flex; gap: 20px; flex-wrap: wrap; }
.hero-proof li { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

/* Mock produit */
.hero-visual { position: relative; }
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-top { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-domain { margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--bg-2); padding: 4px 12px; border-radius: 6px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 20px 8px; }
.mock-stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.mock-stat--ai { background: var(--accent-soft); border-color: #F3D3E1; }
.mock-stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.mock-stat-num small { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.mock-stat--ai .mock-stat-num { color: var(--accent); }
.mock-stat-label { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.mock-list { padding: 12px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.mock-item { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; }
.mock-time { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.mock-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--bg-2); position: relative; overflow: hidden; }
.mock-bar::after { content: ''; position: absolute; inset: 0; border-radius: 4px; background: var(--line); }
.b1::after { width: 72%; } .b2::after { width: 48%; } .b3::after { width: 60%; }
.mock-pill { font-size: 11.5px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; }
.mock-pill.p2 { color: #8A6A1D; background: #FAF0DB; }
.mock-pill.p3 { color: var(--ok); background: #E3F4EC; }

.float-card {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow);
  font-size: 12.5px; font-weight: 600; padding: 10px 16px;
  animation: bob 5.5s ease-in-out infinite;
}
.f1 { top: -22px; right: -8px; }
.f2 { bottom: -20px; left: -14px; animation-delay: 1.4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ Bandeau confiance ============ */
.trust { background: var(--ink); padding: 34px 24px; }
.trust-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.trust-item { text-align: center; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 17px; color: #fff; font-weight: 700; }
.trust-item span { font-size: 13px; color: rgba(255,255,255,.65); font-weight: 500; }

/* ============ Sections communes ============ */
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; padding: 0 24px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.12; }
.section-sub { margin-top: 14px; font-size: 16.5px; color: var(--ink-soft); }

/* ============ Fonctionnalités ============ */
.features { padding: 96px 0 90px; }
.feature-grid {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature--hero { background: linear-gradient(150deg, #fff, var(--accent-soft)); border-color: #F0C9DB; }
.f-icon {
  width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  font-size: 22px; background: var(--bg-2); margin-bottom: 18px;
}
.f-icon--accent { background: var(--accent); }
.f-tag {
  position: absolute; top: 26px; right: 24px;
  font-size: 11px; font-weight: 700; color: var(--accent-dark);
  background: #fff; border: 1px solid #F0C9DB; padding: 4px 11px; border-radius: 999px;
}
.feature h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ============ Étapes ============ */
.steps { background: var(--bg-2); padding: 54px 24px; }
.steps-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.step { display: flex; gap: 16px; align-items: flex-start; flex: 1; }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  background: var(--ink); color: #fff;
}
.step h3 { font-size: 16.5px; font-weight: 700; }
.step p { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.step-arrow { font-size: 22px; color: var(--ink-soft); opacity: .5; flex-shrink: 0; }

/* ============ Tarifs ============ */
.pricing { padding: 96px 0 90px; }
.plans {
  max-width: 1060px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start;
}
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--best {
  border: 2px solid var(--accent);
  box-shadow: 0 28px 60px -24px rgba(199,67,122,.35);
  transform: scale(1.03);
}
.plan--best:hover { transform: scale(1.03) translateY(-4px); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700;
  padding: 6px 18px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 22px; font-weight: 800; }
.plan-for { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.plan-price { margin: 22px 0 20px; display: flex; align-items: baseline; gap: 5px; }
.plan-price .num { font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1; }
.plan-price .cur { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink-soft); }
.plan-price .per { font-size: 14px; color: var(--ink-soft); }
.plan ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; min-height: 132px; }
.plan li { font-size: 14.5px; color: var(--ink-soft); padding-left: 26px; position: relative; }
.plan li strong { color: var(--ink); }
.plan li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800;
  background: var(--accent-soft); color: var(--accent-dark);
}
.plan-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-soft); }

/* ============ FAQ ============ */
.faq { background: var(--bg-2); padding: 90px 24px; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 24px; overflow: hidden; transition: border-color .2s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 20px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after {
  content: ''; position: absolute; background: var(--accent); border-radius: 2px;
  transition: transform .25s var(--ease);
}
.faq-plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq details[open] .faq-plus::after { transform: scaleY(0); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); font-size: 15px; max-width: 620px; }

/* ============ Contact ============ */
.contact { padding: 96px 24px; }
.contact-inner {
  max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start;
}
.contact-copy .section-sub { max-width: 380px; }
.contact-copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.contact-copy .kicker { margin-bottom: 12px; }
.contact-links { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-links a { font-weight: 700; font-size: 15.5px; }
.contact-links a:hover { color: var(--accent); }

.contact-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 34px; display: flex; flex-direction: column; gap: 18px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; }
.contact-form label span { font-size: 13px; font-weight: 700; }
.contact-form input, .contact-form textarea, .contact-form select {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s; resize: vertical;
  appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2358635E' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(199,67,122,.14); background: #fff;
}
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { font-size: 14px; font-weight: 600; min-height: 20px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #C0392B; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 48px 24px 28px; background: var(--bg); }
.footer-inner {
  max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 30px;
}
.footer-brand p { margin-top: 12px; font-size: 14px; color: var(--ink-soft); max-width: 300px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { max-width: 1160px; margin: 0 auto; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 22px; }
.footer-bottom a:hover { color: var(--ink); }

/* ============ Animations ============ */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .1s); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .scroll-reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .float-card { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 440px; }
  .plan--best { transform: none; }
  .plan--best:hover { transform: translateY(-4px); }
  .steps-inner { flex-direction: column; align-items: stretch; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 12px; border-radius: 8px; }
  .nav-links a:hover { background: var(--bg-2); }
  .nav-cta { display: none; }
  .lang-switch { margin-left: auto; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; padding: 8px; cursor: pointer;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
  .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero { padding-top: 48px; }
  .float-card { display: none; }
}
