/* ============================================================
   Laboratoire dentaire Antoine Pequignot
   Design : industriel premium, minimaliste, médical
   Palette : blanc, gris clair, anthracite, bleu médical, bleu nuit
   ============================================================ */

:root {
  /* Couleurs */
  --white: #ffffff;
  --light: #f4f6f9;       /* gris clair / fond alterné */
  --line: #e2e7ee;        /* séparateurs */
  --anthracite: #1c232e;  /* texte principal */
  --slate: #5a6675;       /* texte secondaire */
  --med-blue: #1d6fe0;    /* bleu médical (accent) */
  --med-blue-dark: #1559b5;
  --night: #0b1f3a;       /* bleu nuit (fonds sombres) */
  --night-2: #11294d;

  /* Tokens sémantiques */
  --bg: var(--white);
  --fg: var(--anthracite);
  --muted: var(--slate);
  --brand: var(--med-blue);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,31,58,.06), 0 4px 14px rgba(11,31,58,.05);
  --shadow-md: 0 10px 30px rgba(11,31,58,.10);
  --shadow-lg: 0 24px 60px rgba(11,31,58,.16);
  --max: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; color: var(--anthracite); font-weight: 700; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 820px; }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--night); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--med-blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn-sm { --pad-y: 10px; --pad-x: 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--med-blue); color: #fff;
  box-shadow: 0 8px 22px rgba(29,111,224,.32);
}
.btn-primary:hover { background: var(--med-blue-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29,111,224,.40); }
.btn-ghost { background: transparent; color: var(--anthracite); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--med-blue); color: var(--med-blue); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--night), var(--med-blue));
  color: #fff; border-radius: 11px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-size: .74rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a { font-size: .95rem; color: var(--slate); font-weight: 500; position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--med-blue); transition: width .25s var(--ease); }
.main-nav a:hover { color: var(--anthracite); }
.main-nav a:hover::after { width: 100%; }
.header-cta { display: none; }

.nav-toggle { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--anthracite); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav ul { display: flex; flex-direction: column; padding: 8px 20px 18px; }
.mobile-nav a { display: block; padding: 13px 4px; font-family: var(--font-head); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav li:last-child a { border-bottom: 0; }

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--med-blue); margin-bottom: 16px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--med-blue); box-shadow: 0 0 0 4px rgba(29,111,224,.16); }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: var(--light); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-wrap: balance; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; text-wrap: pretty; }

/* Séparations inclinées */
.skew-top { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(29,111,224,.14), transparent 60%),
    radial-gradient(800px 460px at -6% 8%, rgba(11,31,58,.07), transparent 55%),
    linear-gradient(180deg, #fbfcfe, #f4f6f9);
}
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-content h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); font-weight: 800; text-wrap: balance; }
.hero-sub { color: var(--slate); font-size: 1.12rem; margin-top: 20px; max-width: 56ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero-badges li { position: relative; padding-left: 24px; color: var(--slate); font-size: .92rem; font-weight: 500; }
.hero-badges li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--med-blue) 38%, transparent 40%), rgba(29,111,224,.16);
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg);
  object-fit: cover; aspect-ratio: 4/3; border: 1px solid rgba(255,255,255,.6);
}
.hero-float-card {
  position: absolute; left: -8px; bottom: -22px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; max-width: 220px;
}
.hero-float-card strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--night); line-height: 1; }
.hero-float-card span { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--night); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 30px 20px; }
.trust-grid > div { display: flex; flex-direction: column; gap: 2px; position: relative; padding-left: 16px; }
.trust-grid > div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--med-blue); }
.trust-grid strong { font-family: var(--font-head); font-size: 1.05rem; }
.trust-grid span { color: #aebdd4; font-size: .88rem; }

/* ---------- Cards grids ---------- */
.cards-grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: 1fr; }

.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(29,111,224,.35); }
.feature-ico {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; margin-bottom: 18px;
  background: linear-gradient(150deg, rgba(29,111,224,.12), rgba(11,31,58,.08)); color: var(--med-blue);
}
.feature-ico svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .98rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.service-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 22px 22px 22px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--med-blue);
  transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(29,111,224,.3); }
.service-card:hover::before { transform: scaleY(1); }
.svc-num { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--med-blue); letter-spacing: .08em; }
.service-card h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.service-card p { color: var(--muted); font-size: .92rem; }
.service-card.feature { background: linear-gradient(150deg, var(--night), var(--night-2)); border-color: transparent; }
.service-card.feature h3, .service-card.feature .svc-num { color: #fff; }
.service-card.feature p { color: #b9c6dc; }

/* ---------- Workflow ---------- */
.workflow { display: grid; gap: 18px; counter-reset: step; position: relative; }
.workflow li {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 26px 84px; box-shadow: var(--shadow-sm);
}
.workflow .step-n {
  position: absolute; left: 24px; top: 24px; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff;
  background: linear-gradient(150deg, var(--med-blue), var(--night)); box-shadow: 0 6px 16px rgba(29,111,224,.3);
}
.workflow h3 { font-size: 1.1rem; margin-bottom: 4px; }
.workflow p { color: var(--muted); font-size: .96rem; }

/* ---------- Réalisations ---------- */
.real-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
.real-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; }
.real-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.real-card:hover img { transform: scale(1.05); }
.real-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 16px;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  background: linear-gradient(transparent, rgba(11,31,58,.82));
}

.beforeafter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.beforeafter h3 { font-size: 1.2rem; margin-bottom: 18px; }
.beforeafter .juxtapose { border-radius: var(--radius-sm); overflow: hidden; }
.ba-hint { color: var(--muted); font-size: .88rem; margin-top: 12px; text-align: center; }

/* ---------- Témoignages ---------- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.testimonial .stars { color: #f5a623; letter-spacing: 2px; font-size: 1.05rem; }
.testimonial p { color: var(--anthracite); font-size: 1.02rem; }
.testimonial footer { margin-top-: auto; display: flex; flex-direction: column; }
.testimonial footer strong { font-family: var(--font-head); font-size: .98rem; }
.testimonial footer span { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 54px 20px 22px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; color: var(--anthracite);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(29,111,224,.1); color: var(--med-blue); font-size: 1.2rem; transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 30px; }
.contact-info h3 { font-size: 1.2rem; margin-bottom: 18px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--slate); }
.contact-list a { color: var(--anthracite); font-weight: 500; }
.contact-list a:hover { color: var(--med-blue); }
.ci-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(29,111,224,.1); color: var(--med-blue); }
.ci-ico svg { width: 20px; height: 20px; }
.map-wrap { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { filter: grayscale(.2) contrast(1.02); }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-md); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field label { font-size: .88rem; font-weight: 600; font-family: var(--font-head); color: var(--anthracite); }
.field label span { color: var(--med-blue); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--anthracite);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--med-blue); background: #fff; box-shadow: 0 0 0 4px rgba(29,111,224,.12); }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #d83a3a; background: #fff7f7; }
.error { color: #d83a3a; font-size: .8rem; min-height: 1em; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#submit-btn { position: relative; margin-top: 6px; }
#submit-btn .btn-loader {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  display: none; animation: spin .7s linear infinite;
}
#submit-btn.loading { pointer-events: none; opacity: .85; }
#submit-btn.loading .btn-loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { font-size: .92rem; min-height: 1.2em; font-weight: 500; }
.form-status.success { color: #1a8a4a; }
.form-status.fail { color: #d83a3a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #c4d0e3; }
.footer-grid { display: grid; gap: 34px; padding: clamp(48px, 7vw, 76px) 20px 40px; grid-template-columns: 1fr; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text em { color: #8fa2bf; }
.footer-brand p { margin-top: 16px; color: #9fb0c9; font-size: .95rem; max-width: 38ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #c4d0e3; transition: background .25s, color .25s, transform .25s; }
.socials a:hover { background: var(--med-blue); color: #fff; transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; font-size: .85rem; color: #8fa2bf; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .real-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: .95fr 1.05fr; align-items: start; }
}

@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card.feature { grid-column: span 1; }
}

/* ---------- Préférences de mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
