/* Dentispace public site. Direction « Bloc couleur »: one turquoise block,
   very large Unbounded type, dark ink, and quiet white sections around it.
   The hero carries a working demonstration set in ink on the turquoise. */
:root {
  --teal: #12b5b0;
  --teal-wash: #e2f6f5;
  --ink: #0b1d21;
  --ink-2: #48595d;        /* secondary text on white */
  --on-ink: #c3d3d6;       /* secondary text on ink, tinted from the teal */
  --ink-raised: #17343a;   /* surfaces raised on ink */
  --line: #d6e0e2;
  --paper: #ffffff;
  --act-0: #5fe0d6;        /* demo: composite */
  --act-1: #f2b84b;        /* demo: couronne */
  --act-2: #ff9a8b;        /* demo: extraction */
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --top-h: 68px;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top-h); scrollbar-color: var(--ink) var(--teal-wash); }
body { font: 400 17px/1.6 var(--text); color: var(--ink); background: var(--paper); accent-color: var(--teal); caret-color: var(--teal); }
::selection { background: var(--ink); color: #fff; }
.hero ::selection, .closing ::selection, .page-head ::selection { background: var(--ink); color: var(--teal); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; fill: currentColor; }
.defs { position: absolute; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.how :focus-visible, .foot :focus-visible, .demo :focus-visible { outline-color: var(--teal); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
td, .price, time { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 740px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.pill { display: inline-block; border-radius: 99px; padding: 13px 24px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background-color .2s, color .2s, transform .2s var(--ease-out); }
.pill:active { transform: scale(0.97); }
.pill-ink { background: var(--ink); color: #fff; }
.pill-ink:hover { background: var(--ink-raised); }
.pill-teal { background: var(--teal); color: var(--ink); }
.pill-teal:hover { background: #3fd0ca; }
.pill-line { border-color: var(--ink); color: var(--ink); }
.pill-line:hover { background: var(--ink); color: #fff; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); background: var(--paper); border-bottom: 1px solid var(--line); }
.is-home .top { background: var(--teal); border-color: transparent; }
.top-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 7px; font: 800 1.05rem var(--display); letter-spacing: -0.03em; text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.top nav { margin-left: auto; display: flex; gap: 26px; font-weight: 500; }
.top nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { border-color: currentColor; }
.top .pill { padding: 9px 20px; }

/* ---------- film d'ouverture ---------- */
.film { position: relative; overflow: hidden; background: var(--ink); color: #fff; min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.film-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Ink laid over the film where the text sits, so it reads on any frame. */
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(11 29 33 / .88) 0%, rgb(11 29 33 / .62) 46%, rgb(11 29 33 / .18) 100%), linear-gradient(0deg, rgb(11 29 33 / .55), transparent 45%); }
.film-in { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 40px; }
.film h1 { font-size: clamp(2.1rem, 5.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; max-width: 13em; }
.film-in > p { margin-top: 20px; max-width: 34em; font-size: 1.15rem; color: #e3eeef; }
.film .hero-cta { justify-content: flex-start; }
.film .pill-ink { background: var(--teal); color: var(--ink); }
.film .pill-ink:hover { background: #3fd0ca; }
.pill-light { border-color: #fff; color: #fff; }
.pill-light:hover { background: #fff; color: var(--ink); }
.film :focus-visible { outline-color: #fff; }
.film ::selection { background: var(--teal); color: var(--ink); }
.film-tags { list-style: none; padding: 22px 0 0; margin-top: 44px; border-top: 1.5px solid rgb(255 255 255 / .28); display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: .97rem; color: #e3eeef; }
.film-tags b { color: #fff; font-variant-numeric: tabular-nums; }
.film-toggle { position: absolute; z-index: 2; right: 20px; top: 20px; padding: 8px 14px; border-radius: 99px; font-size: .85rem; font-weight: 500; color: #fff; background: rgb(11 29 33 / .6); border: 1px solid rgb(255 255 255 / .35); }
.film-toggle:hover { background: var(--ink); }

/* ---------- hero ---------- */
.hero { background: var(--teal); }
.hero-stage { position: relative; overflow: hidden; padding: 44px 0 64px; }
.hero-in { position: relative; text-align: center; }
.words { display: block; font: 800 clamp(2rem, 6.4vw, 4.75rem)/1.05 var(--display); letter-spacing: -0.04em; }
.words span { display: block; }
.words-sub { display: block; margin-top: 14px; font: 500 1.1rem/1.4 var(--text); letter-spacing: 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.shape { position: absolute; color: var(--ink); }
.s1 { width: 54px; left: 5%; top: 12%; }
.s2 { width: 84px; right: 5%; top: 16%; transform: rotate(-35deg); }
.s3 { width: 44px; right: 7%; bottom: 12%; }
.s4 { width: 74px; left: 6%; bottom: 10%; transform: rotate(18deg); }

/* The demonstration: an ink panel on the turquoise. */
.demo { max-width: 860px; margin: 28px auto 0; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 12px; text-align: left; box-shadow: 0 30px 60px -28px rgb(11 29 33 / .55); }
.demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.demo-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 8px; border-radius: 14px; font-weight: 700; font-size: .95rem; color: var(--on-ink); transition: background-color .2s, color .2s; }
.demo-tabs button:hover { color: #fff; background: var(--ink-raised); }
.demo-tabs button[aria-selected="true"] { background: var(--teal); color: var(--ink); }
.demo-tabs svg { width: 17px; height: 17px; flex: none; }
.demo-body { padding: 16px 12px 6px; }
.demo-view + .demo-view { margin-top: 28px; }
.demo-hint { color: var(--on-ink); font-size: .95rem; margin-bottom: 14px; max-width: 60ch; }
.demo-note { color: var(--on-ink); font-size: .8rem; padding: 6px 12px 4px; }

.slots { list-style: none; padding: 0; }
.slots li { display: grid; grid-template-columns: 4.2em 9em 1fr auto; gap: 14px; align-items: baseline; padding: 11px 12px; border-radius: 12px; }
.slots li + li { margin-top: 2px; }
.slots time { color: var(--on-ink); }
.slots span, .slots small { color: var(--on-ink); font-size: .93rem; }
.slots .now { background: var(--ink-raised); }
.slots .now time, .slots .now span { color: #fff; }
.slots .free b { color: var(--act-0); font-weight: 500; }

.arch { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.arch + .arch { margin-top: 6px; }
.tooth { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; border-radius: 9px; font-size: .68rem; color: var(--on-ink); }
.arch-low .tooth { flex-direction: column-reverse; }
.tooth svg { width: 100%; max-width: 34px; height: auto; color: #2b4f57; transition: color .15s, transform .25s var(--ease-out); }
.arch-low .tooth svg { transform: scaleY(-1); }
.tooth:hover svg { color: #3d6b75; }
.tooth[data-act] svg { transform: scale(1.08); }
.arch-low .tooth[data-act] svg { transform: scale(1.08, -1.08); }
.tooth[data-act="0"] svg { color: var(--act-0); }
.tooth[data-act="1"] svg { color: var(--act-1); }
.tooth[data-act="2"] svg { color: var(--act-2); }
.tooth[data-act] { color: #fff; }
.legend { list-style: none; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: .85rem; color: var(--on-ink); }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; background: var(--act-0); }
.legend li[data-act="1"]::before { background: var(--act-1); }
.legend li[data-act="2"]::before { background: var(--act-2); }

.lines { width: 100%; border-collapse: collapse; }
.lines td, .lines th { padding: 10px 12px; text-align: left; font-weight: 400; }
.lines td:last-child { text-align: right; white-space: nowrap; }
.lines tbody tr + tr { border-top: 1px solid var(--ink-raised); }
.lines tfoot th, .lines tfoot td { font: 600 1.15rem var(--display); letter-spacing: -0.03em; padding-top: 14px; border-top: 2px solid var(--teal); }

/* With JS, one moment shows at a time. Where the screen is large enough to hold the
   whole stage, the hero is several screens tall and its stage sticks while the visitor
   scrolls through the moments. On phones and short windows it flows normally and the
   four tabs alone drive the demonstration. */
@media (min-width: 561px) and (min-height: 701px) {
  .js .hero { height: 340vh; }
  .js .hero-stage { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); padding: 0; display: flex; align-items: center; }
}
.js .words { display: grid; }
.js .words span { grid-area: 1 / 1; opacity: 0; transform: translateY(0.3em); filter: blur(10px); transition: opacity .3s, transform .5s var(--ease-out), filter .5s var(--ease-out); }
.js .words span.on { opacity: 1; transform: none; filter: none; }
.js .demo-body { min-height: 268px; }
.js .demo-view { display: none; margin-top: 0; }
.js .demo-view.on { display: block; animation: view-in .45s var(--ease-out); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- le constat ---------- */
.why { padding: 96px 0; }
.why h2, .how h2, .plans h2, .faq h2, .latest h2 { font-size: clamp(1.6rem, 3.6vw, 2.7rem); max-width: 17em; margin-bottom: 38px; }
.why-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 40px; align-items: baseline; padding: 22px 0; border-top: 1.5px solid var(--line); }
.why-list > div:last-child { border-bottom: 1.5px solid var(--line); }
.why-list dt { font: 600 clamp(1.1rem, 2.1vw, 1.5rem)/1.2 var(--display); letter-spacing: -0.03em; }
.why-list dd { color: var(--ink-2); max-width: 46ch; }
.why-close { margin-top: 40px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.why-close strong { font: 600 1.05rem var(--display); letter-spacing: -0.03em; }

/* ---------- comment ça marche ---------- */
.how { background: var(--ink); color: #fff; padding: 96px 0; }
.how-film { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--teal); margin-bottom: 44px; }
.how-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.how-list li { display: flex; gap: 22px; padding: 28px 0; border-top: 1.5px solid rgb(255 255 255 / .22); }
.how-list svg { flex: none; width: 46px; height: 46px; color: var(--teal); }
.how-list h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.how-list p { color: var(--on-ink); }
.how-more { margin-top: 30px; max-width: 44em; color: var(--on-ink); }

/* ---------- tarifs : un seul tableau, pas trois cartes ---------- */
.plans { background: var(--teal-wash); padding: 96px 0; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.plan { padding: 30px 28px; }
.plan + .plan { border-left: 1.5px solid var(--line); }
.plan h3 { font-size: 1.05rem; font-weight: 600; }
.plan .price { margin: 14px 0 18px; }
.plan .price strong { display: block; font: 800 2.2rem/1.1 var(--display); letter-spacing: -0.04em; }
.plan .price span { color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line); }

/* ---------- articles : une liste, pas une grille de cartes ---------- */
.latest { padding: 96px 0; }
.latest-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.latest-head a { font-weight: 700; }
.entry { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; gap: 8px 40px; align-items: baseline; padding: 24px 0; border-top: 1.5px solid var(--line); }
.entry:last-child { border-bottom: 1.5px solid var(--line); }
.entry h3 { font-size: clamp(1.02rem, 1.7vw, 1.25rem); font-weight: 600; line-height: 1.25; }
.entry h3 a { text-decoration: none; }
.entry h3 a::after { content: ""; position: absolute; inset: 0; }
.entry:hover h3 a { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 3px; }
.entry p { color: var(--ink-2); font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.entry .meta { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.entry-pillar { background: var(--teal); border: 0; border-radius: var(--radius); padding: 30px 28px; margin-bottom: 14px; }
.entry-pillar + .entry { border-top: 0; }
.entry-pillar h3 { font-size: clamp(1.25rem, 2.6vw, 1.9rem); }
.entry-pillar h3 a::after { border-radius: var(--radius); }
.entry-pillar:hover h3 a { text-decoration-color: var(--ink); }
.entry-pillar p, .entry-pillar .meta { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; border-top: 1px solid var(--line); }
.faq-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
details { border-top: 1.5px solid var(--line); }
details:last-of-type { border-bottom: 1.5px solid var(--line); }
summary { cursor: pointer; padding: 18px 44px 18px 0; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
/* A drawn plus that folds into a minus when the answer opens. */
summary::before, summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: none; }
summary:hover { color: var(--ink-2); }
details p { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }

/* ---------- appel final ---------- */
.closing { background: var(--teal); padding: 110px 0; text-align: center; }
.closing h2 { font-size: clamp(1.9rem, 5.4vw, 4rem); letter-spacing: -0.04em; max-width: 14em; margin: 0 auto 30px; }

/* ---------- pied de page ---------- */
.foot { background: var(--ink); color: #fff; padding: 56px 0 28px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { color: var(--on-ink); margin-top: 10px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .18); color: var(--on-ink); font-size: .9rem; }

/* ---------- pages blog ---------- */
.page-head { background: var(--teal); padding: 64px 0 60px; }
.page-head h1 { font-size: clamp(1.8rem, 4.6vw, 3.3rem); letter-spacing: -0.04em; max-width: 18em; }
.page-head p { margin-top: 16px; max-width: 38em; font-size: 1.1rem; }
.page-head .hero-cta { justify-content: flex-start; margin-top: 26px; }
.blog-list { padding: 64px 0 96px; }
.empty { font-size: 1.1rem; }
.crumbs { display: flex; gap: 8px; font-size: .92rem; font-weight: 500; margin-bottom: 18px; }
.crumbs a + a::before { content: "/"; margin-right: 8px; }
.post .meta { font-size: .95rem; }
.answer { margin: 44px 0 8px; padding: 24px 26px; background: var(--teal-wash); border-radius: 16px; font-size: 1.15rem; font-weight: 500; }

.prose { font-size: 1.08rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4em; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.9em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--teal); font-weight: 700; }
.prose a { text-decoration-color: var(--teal); text-decoration-thickness: 2px; font-weight: 500; }
.prose a:hover { background: var(--teal-wash); }
.prose strong { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.prose blockquote { background: var(--teal-wash); border-radius: 14px; padding: 16px 20px; font-weight: 500; }
.prose .note { background: #fdf4e3; border-radius: 14px; padding: 16px 20px; font-size: 1rem; }
.prose .sources { font-size: .95rem; color: var(--ink-2); }

.post-faq { margin-top: 56px; }
.post-faq h2 { font-size: 1.5rem; margin-bottom: 18px; }
.post-cta { margin: 56px 0 80px; background: var(--teal); border-radius: var(--radius); padding: 30px; }
.post-cta strong { font: 600 1.2rem/1.3 var(--display); letter-spacing: -0.03em; display: block; }
.post-cta p { margin: 10px 0 20px; max-width: 34em; }

@media (max-width: 1100px) {
  .shape { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .top nav { gap: 16px; font-size: .95rem; }
  .top nav a:first-child { display: none; }
  .why, .how, .plans, .latest, .faq { padding: 64px 0; }
  .why-list > div, .entry { grid-template-columns: 1fr; }
  .how-list, .faq-in { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1.5px solid var(--line); }
  .slots li { grid-template-columns: 3.6em 1fr; }
  .slots li span, .slots li small { grid-column: 2; }
  .slots li small { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .top .pill { display: none; }
  .demo { margin-top: 20px; padding: 8px; border-radius: 18px; }
  .demo-tabs svg { display: none; }
  .demo-tabs { gap: 2px; }
  .demo-tabs button { font-size: .8rem; padding: 13px 2px; white-space: nowrap; }
  .demo-body { padding: 14px 8px 4px; }
  .js .demo-body { min-height: 292px; }
  /* Sixteen teeth across would be too small to touch: eight per row. */
  .arch { grid-template-columns: repeat(8, 1fr); gap: 4px; }
  .film { min-height: 0; }
  .film-in { padding-top: 96px; padding-bottom: 52px; }
  .film-tags { gap: 6px 0; flex-direction: column; margin-top: 30px; }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .js .demo-view.on { transition: none !important; animation: none !important; }
}
