/* DUPAIN — feuille de style unique du site statique (HTML + CSS uniquement). */

/* Polices auto-hébergées (mêmes fichiers que Google Fonts, servies localement
   pour éviter l'appel tiers vers fonts.gstatic.com). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.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: "Sora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/sora-latin.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;
}

:root {
  --radius: 0.375rem;

  --background: oklch(0.972 0.006 92);
  --foreground: oklch(0.235 0.024 248);
  --hero-blue: oklch(0.3 0.08 252);
  --surface: oklch(0.982 0.005 92);

  --card: oklch(0.995 0.003 92);
  --primary: oklch(0.235 0.024 248);
  --primary-foreground: oklch(0.985 0.004 92);

  --secondary: oklch(0.948 0.006 230);
  --secondary-foreground: oklch(0.235 0.024 248);
  --muted-foreground: oklch(0.52 0.018 240);
  --accent: oklch(0.93 0.008 230);

  --destructive: oklch(0.52 0.19 27);
  --warning: oklch(0.6 0.16 75);
  --border: oklch(0.87 0.008 230);
  --input: oklch(0.84 0.009 230);
  --ring: oklch(0.42 0.025 245);

  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Sora", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Layout helpers */

.site-container {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.product-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.section {
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

.section--surface {
  background-color: var(--surface);
}

.section__inner {
  padding-block: 6rem;
}

@media (min-width: 48rem) {
  .section__inner {
    padding-block: 8rem;
  }
}

@media (min-width: 64rem) {
  .section__inner {
    padding-block: 9rem;
  }
}

.section__title {
  margin-top: 1.25rem;
  max-width: 56rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

.section__lead {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

@media (min-width: 48rem) {
  .section__title {
    font-size: 3rem;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--hero-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.btn-primary:hover::before {
  transform: scaleX(1);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--input);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
}

.btn-secondary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--card);
  color: var(--primary);
  transition: color 0.35s ease;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--hero-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.btn-secondary:hover {
  color: var(--primary-foreground);
}

.btn-secondary:hover::before {
  transform: scaleX(1);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--accent);
}

.btn-link {
  background-color: transparent;
  color: var(--foreground);
  padding: 0;
  font-weight: 500;
  text-underline-offset: 4px;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-lg {
  height: 3rem;
  padding-inline: 2rem;
  font-size: 1rem;
}

.btn-sm {
  height: 2.25rem;
  padding-inline: 0.9rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklch, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.wordmark {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--foreground);
  text-decoration: none;
}

.wordmark .wordmark__underline {
  color: var(--hero-blue);
}

.wordmark__underline {
  padding-bottom: 1px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  /* letter-spacing adds a trailing tracking gap after the last letter even
     though it isn't the end of the line; trim exactly that much so the
     underline stops at "I", not partway into the gap before "N". */
  background-size: calc(100% - 0.12em) 1px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 48rem) {
  .main-nav {
    display: flex;
  }
}

.main-nav a,
.nav-dropdown__trigger {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.nav-dropdown__trigger:hover {
  color: var(--foreground);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.nav-dropdown__panel {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.5rem;
  min-width: 14rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown__panel-inner {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding-block: 0.25rem;
}

.nav-dropdown__panel-inner a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
}

.nav-dropdown__panel-inner a:hover {
  background-color: var(--accent);
  color: var(--foreground);
}

.header-cta {
  display: none;
}

@media (min-width: 48rem) {
  .header-cta {
    display: block;
  }
}

/* Mobile nav (checkbox hack, no JS) */

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  cursor: pointer;
}

@media (min-width: 48rem) {
  .nav-toggle-label {
    display: none;
  }
}

.nav-toggle-label .icon-close {
  display: none;
}

.nav-toggle:checked ~ .site-header__bar .nav-toggle-label .icon-menu {
  display: none;
}

.nav-toggle:checked ~ .site-header__bar .nav-toggle-label .icon-close {
  display: block;
}

/* display:grid + grid-template-rows 0fr→1fr anime l'ouverture vers une hauteur de
   contenu variable (liste + accordéon Ressources éventuellement déplié), sans avoir
   à deviner une valeur de max-height fixe. */
.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  background-color: var(--background);
  transition: grid-template-rows 0.3s ease;
}

@media (min-width: 48rem) {
  .mobile-nav {
    display: none !important;
  }
}

.nav-toggle:checked ~ .mobile-nav {
  grid-template-rows: 1fr;
  border-top: 1px solid var(--border);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  padding-block: 0.75rem;
  overflow: hidden;
  min-height: 0;
}

.mobile-nav__list > a:not(.btn) {
  border-bottom: 1px solid var(--border);
  padding-block: 0.75rem;
  font-size: 1rem;
  color: var(--foreground);
  text-decoration: none;
}

.mobile-nav__resources {
  border-bottom: 1px solid var(--border);
}

.mobile-nav__resources > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  font-size: 1rem;
  color: var(--foreground);
  cursor: pointer;
  list-style: none;
}

.mobile-nav__resources > summary::-webkit-details-marker {
  display: none;
}

.mobile-nav__resources > summary .icon {
  transition: transform 0.25s ease;
}

.mobile-nav__resources[open] > summary .icon {
  transform: rotate(180deg);
}

/* Même technique que .faq-item__panel : grid-template-rows 0fr→1fr sur un
   panneau unique, dont display:grid outrepasse aussi le display:none natif de
   <details> fermé. */
/* grid-auto-rows (pas grid-template-rows) : il y a 5 liens, donc 5 pistes de
   grille auto-générées à animer de façon uniforme, pas une seule piste
   explicite qui laisserait les 4 autres en dimensionnement "auto" figé. */
/* Même constat que .faq-item__panel : grid-auto-rows gère le show/hide en soi,
   seule l'opacité s'anime réellement puisque le déclencheur est l'attribut
   natif [open] de <details>. */
.mobile-nav__resources-panel {
  display: grid;
  grid-auto-rows: 0fr;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav__resources[open] .mobile-nav__resources-panel {
  grid-auto-rows: 1fr;
  opacity: 1;
}

.mobile-nav__resources-panel > a {
  display: block;
  overflow: hidden;
  min-height: 0;
  padding-block: 0.5rem;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Hero */

.hero {
  display: flex;
  min-height: calc(100vh - 4rem);
  flex-direction: column;
  justify-content: center;
  padding-block: 6rem;
}

@media (min-width: 48rem) {
  .hero {
    padding-block: 8rem;
  }
}

.hero__title {
  max-width: 64rem;
  font-size: 2.25rem;
  line-height: 1.08;
}

@media (min-width: 48rem) {
  .hero__title {
    font-size: 3.75rem;
  }
}

@media (min-width: 64rem) {
  .hero__title {
    font-size: 4.5rem;
  }
}

.hero__rotator {
  position: relative;
  display: grid;
}

.hero__message {
  grid-area: 1 / 1;
  color: var(--hero-blue);
  opacity: 0;
  transform: translateY(4px);
  animation: hero-cycle 36s infinite;
}

.hero__message span {
  color: var(--foreground);
}

.hero__message:nth-child(1) { animation-delay: 0s; }
.hero__message:nth-child(2) { animation-delay: -6s; }
.hero__message:nth-child(3) { animation-delay: -12s; }
.hero__message:nth-child(4) { animation-delay: -18s; }
.hero__message:nth-child(5) { animation-delay: -24s; }
.hero__message:nth-child(6) { animation-delay: -30s; }

@keyframes hero-cycle {
  0% { opacity: 0; transform: translateY(4px); }
  2% { opacity: 1; transform: translateY(0); }
  14.5% { opacity: 1; transform: translateY(0); }
  16.5% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__message {
    animation: none;
    opacity: 0;
  }
  .hero__message:first-child {
    opacity: 1;
    transform: none;
  }
}

.hero__body {
  margin-top: 2rem;
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

@media (min-width: 48rem) {
  .hero__body {
    font-size: 1.25rem;
  }
}

.hero__tagline {
  margin-top: 2rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
}

.text-hero-blue {
  color: var(--hero-blue);
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 40rem) {
  .hero__actions {
    flex-direction: row;
  }
}

/* Comparison section */

.compare {
  margin-top: 4rem;
  display: grid;
  border-block: 1px solid var(--border);
  padding-block: 2rem;
}

@media (min-width: 48rem) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .compare {
    padding-block: 3rem;
  }
}

.compare__heading {
  font-size: 1.25rem;
  padding-bottom: 1.75rem;
}

.compare__item {
  border-top: 1px solid var(--border);
  padding-block: 1rem;
  color: var(--muted-foreground);
}

.compare__item--right {
  color: var(--foreground);
  font-weight: 500;
}

@media (min-width: 48rem) {
  .compare__heading--left,
  .compare__item--left {
    padding-right: 3rem;
  }
  .compare__heading--right,
  .compare__item--right {
    border-left: 1px solid var(--border);
    padding-left: 3rem;
  }
}

@media (min-width: 64rem) {
  .compare__heading--left,
  .compare__item--left {
    padding-right: 5rem;
  }
  .compare__heading--right,
  .compare__item--right {
    padding-left: 5rem;
  }
}

/* Value props */

.values {
  margin-top: 5rem;
}

.value {
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}

@media (min-width: 48rem) {
  .value {
    grid-template-columns: 8rem 1fr 1fr;
    gap: 2.5rem;
    padding-block: 3.5rem;
  }
}

.value h3 {
  max-width: 28rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

@media (min-width: 48rem) {
  .value h3 {
    font-size: 1.875rem;
  }
}

.value p {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Product mockups */

.product-scroll {
  margin-top: 4rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
}

@media (max-width: 47.9375rem) {
  .product-scroll {
    mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
  }
}

.review-queue,
.fact-review {
  border: 1px solid var(--border);
  background-color: var(--card);
}

.review-queue {
  min-width: 44rem;
}

.review-queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.review-queue__head h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.review-queue__head p:last-child {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.review-queue__cols {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.review-queue__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.review-queue__row .icon {
  color: var(--muted-foreground);
}

.review-queue__row p:first-child {
  font-weight: 500;
}

.review-queue__row p:last-child {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.review-queue__count {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.review-queue__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
}

.review-queue__foot span:first-child {
  color: var(--muted-foreground);
}

.review-queue__foot span:last-child {
  font-weight: 500;
}

.fact-review {
  min-width: 48rem;
}

.fact-review__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
}

.fact-review__head h3 {
  margin-top: 0.75rem;
  max-width: 40rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.fact-review__badge {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.fact-review__grid {
  display: grid;
}

@media (min-width: 48rem) {
  .fact-review__grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.fact-review__side {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem;
}

@media (min-width: 48rem) {
  .fact-review__side {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.fact-review__field {
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem;
}

.fact-review__side .fact-review__field:first-child {
  padding-top: 0;
}

.fact-review__side .fact-review__field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-review__field p:last-child {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.fact-review__main {
  padding: 1.75rem;
}

.source {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
}

.fact-review__main > .product-label + .source {
  margin-top: 1rem;
}

.source__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.source__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.source__label .icon-warning {
  color: var(--destructive);
}

.source__ref {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.source blockquote {
  margin: 0.75rem 0 0;
  border-left: 1px solid var(--border);
  padding-left: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.source .btn-link {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.fact-review__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding: 1.25rem 1.75rem;
}

.fact-review__foot p:last-child {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.fact-review__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.closing {
  margin-top: 5rem;
  max-width: 48rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.closing h3 {
  font-size: 1.5rem;
}

@media (min-width: 48rem) {
  .closing h3 {
    font-size: 1.875rem;
  }
}

.closing p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Security */

.security-grid {
  margin-top: 4rem;
  display: grid;
  border-block: 1px solid var(--border);
}

.security-grid > div:not(:first-child) {
  border-top: 1px solid var(--border);
}

@media (min-width: 48rem) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-grid > div {
    border-top: 1px solid var(--border);
  }
  .security-grid > div:nth-child(-n + 2) {
    border-top: none;
  }
  .security-grid > div:nth-child(2n) {
    border-left: 1px solid var(--border);
  }
}

@media (min-width: 64rem) {
  .security-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .security-grid > div {
    border-left: none;
    border-top: none;
  }
  .security-grid > div:nth-child(n + 5) {
    border-top: 1px solid var(--border);
  }
  .security-grid > div:not(:nth-child(4n + 1)) {
    border-left: 1px solid var(--border);
  }
}

.security-grid > div {
  padding-block: 2rem;
}

@media (min-width: 48rem) {
  .security-grid > div {
    padding: 2.5rem;
  }
}

.security-grid h3 {
  font-size: 1.125rem;
}

.security-grid p {
  margin-top: 0.75rem;
  max-width: 32rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.security-footnote {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Pricing */

.pricing-simple {
  margin-top: 4rem;
  max-width: 30rem;
}

.pricing-simple__tier {
  padding-block: 2.5rem;
}

.pricing-simple__tier:first-child {
  padding-top: 0;
}

.pricing-simple__tier + .pricing-simple__tier {
  border-top: 1px solid var(--border);
}

.pricing-simple__amount {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
}

@media (min-width: 48rem) {
  .pricing-simple__amount {
    font-size: 3.75rem;
  }
}

.pricing-simple__unit {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.pricing-simple__tagline {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.pricing-simple__tier h3 {
  font-size: 1.25rem;
}

.pricing-simple__tier:first-child h3 {
  text-transform: uppercase;
}

.pricing-simple__tier--launch .pricing-simple__amount {
  color: var(--hero-blue);
}

.pricing-simple .btn {
  margin-top: 2.5rem;
}

.pricing-simple__footnote {
  margin-top: 1rem;
  max-width: 26rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
}

/* FAQ */

.faq {
  margin-top: 3rem;
  max-width: 56rem;
}

.faq-group + .faq-group {
  margin-top: 2rem;
}

.faq-group__title {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

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

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item .icon {
  transition: transform 0.25s ease;
}

.faq-item[open] > summary .icon {
  transform: rotate(45deg);
}

/* Les navigateurs ne transitionnent pas les propriétés qui affectent la mise en
   page (height, grid-template-rows, max-height…) quand le changement est
   déclenché par l'attribut natif [open] de <details> : vérifié, la hauteur
   saute instantanément quelle que soit la transition déclarée. Seules les
   propriétés de composition (opacity, transform) s'animent correctement dans
   ce cas — c'est ce qui fait déjà marcher la rotation de l'icône ci-dessus.
   grid-template-rows reste donc utile pour le "show/hide" en soi (0fr replié,
   1fr ouvert, display:grid outrepassant le display:none natif), mais seul le
   fondu en opacité apporte une vraie douceur perceptible à l'ouverture. */
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item[open] .faq-item__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item__panel > p {
  overflow: hidden;
  min-height: 0;
  max-width: 48rem;
  padding-bottom: 1.25rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* CTA */

.cta {
  border-top: 1px solid var(--border);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.cta h2 {
  max-width: 56rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

@media (min-width: 48rem) {
  .cta h2 {
    font-size: 3rem;
  }
}

.cta p {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: color-mix(in oklch, var(--primary-foreground) 75%, transparent);
}

.cta .btn {
  margin-top: 2.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid p {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.footer-grid ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-grid a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--foreground);
}

.footer-grid .footnote {
  margin-top: 1.5rem;
  font-size: 0.75rem;
}

.footer-grid__brand {
  display: flex;
  flex-direction: column;
}

.footer-grid__brand .footnote {
  margin-top: auto;
  padding-top: 1.5rem;
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
}

.site-footer__bottom p {
  padding-block: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Simple content pages (mentions légales, confidentialité, ressources) */

.page-main {
  margin-inline: auto;
  max-width: 48rem;
  padding: 5rem 1.25rem;
}

.page-main h1 {
  font-size: 2.25rem;
}

.legal-section {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  line-height: 1.6;
}

.legal-section h2 {
  font-size: 1.25rem;
}

.legal-section h3 {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
}

.legal-section p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

.legal-section ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--muted-foreground);
}

.legal-section li + li {
  margin-top: 0.5rem;
}

.legal-section strong {
  color: var(--foreground);
  font-weight: 600;
}

.legal-section a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.legal-section a:hover {
  color: var(--hero-blue);
}

.legal-doc {
  margin-inline: auto;
  max-width: 60rem;
  padding: 5rem 1.25rem;
}

.legal-doc h1 {
  font-size: 2.25rem;
}

.legal-doc__disclaimer {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--destructive);
  border-radius: var(--radius);
  background-color: color-mix(in oklch, var(--destructive) 8%, var(--background));
  color: var(--destructive);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal-doc__callout {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  background-color: color-mix(in oklch, var(--warning) 12%, var(--background));
  color: var(--foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal-doc__updated {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.legal-doc__intro {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.legal-doc__table-scroll {
  margin-top: 0.75rem;
  overflow-x: auto;
}

@media (max-width: 47.9375rem) {
  .legal-doc__table-scroll {
    mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
  }
}

.legal-section table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.legal-section th,
.legal-section td {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-section thead th {
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--foreground);
}

.legal-section td {
  color: var(--muted-foreground);
}

.resource-main {
  padding-block: 6rem;
}

@media (min-width: 48rem) {
  .resource-main {
    padding-block: 9rem;
  }
}

.resource-main h1 {
  margin-top: 1.5rem;
  max-width: 48rem;
  font-size: 2.25rem;
  line-height: 1.08;
}

@media (min-width: 48rem) {
  .resource-main h1 {
    font-size: 3.75rem;
  }
}

.lead {
  margin-top: 2rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.resource-main .soon {
  margin-top: 4rem;
  color: var(--muted-foreground);
}

/* Blog listing: card grid, reuses existing tokens (border, card, product-label). */

.blog-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background-color: var(--card);
}

.blog-card__image {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__image svg {
  width: 34%;
  height: 34%;
  color: var(--muted-foreground);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.blog-card__title {
  font-size: 1.1875rem;
  line-height: 1.35;
}

.blog-card__excerpt {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.blog-card__meta .btn-link {
  font-size: 0.8125rem;
}

/* Case studies: wider two-up cards, same visual language as the blog grid. */

.case-study-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.case-study-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background-color: var(--card);
}

.case-study-card__image {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-card__image svg {
  width: 28%;
  height: 28%;
  color: var(--muted-foreground);
}

.case-study-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.case-study-card__title {
  font-size: 1.375rem;
  line-height: 1.3;
}

.case-study-card__text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.case-study-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.case-study-card__meta .btn-link {
  font-size: 0.875rem;
}

/* Legal framework resource: use the site's existing typography and palette. */

.legal-framework {
  max-width: 56rem;
  margin-top: 2.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.legal-framework__section {
  margin-top: 3.5rem;
}

.legal-framework__section h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.3;
}

.legal-framework__section > p,
.legal-framework__section > ol {
  margin-top: 1.25rem;
}

.legal-framework__topic {
  margin-top: 2rem;
}

.legal-framework__topic h3 {
  font-size: 1.125rem;
  line-height: 1.4;
}

.legal-framework__topic p {
  margin-top: 1.25rem;
}

.legal-framework a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.legal-framework a:hover {
  color: var(--hero-blue);
}

.legal-framework sup a {
  text-decoration: none;
  font-size: 0.75em;
}

.article-checklist {
  margin-top: 1.25rem;
  padding-left: 1.5rem;
  list-style: decimal;
}

.article-checklist li + li {
  margin-top: 0.85rem;
}

.article-checklist li::marker {
  font-weight: 600;
  color: var(--hero-blue);
}

/* Article footnotes */

.article-notes {
  max-width: 56rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.article-notes h2 {
  font-size: 1.125rem;
}

.article-notes ol {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.article-notes li {
  margin-top: 0.75rem;
}

.article-notes li:first-child {
  margin-top: 0;
}

.article-notes a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.article-notes a:hover {
  color: var(--hero-blue);
}

/* Founder profile — existing DUPAIN palette and inherited typography. */

.founder-profile {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.founder-profile__photo {
  width: 14rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.founder-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-profile__content {
  min-width: 0;
}

.founder-profile__content h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

.founder-profile__content p {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

@media (min-width: 48rem) {
  .founder-profile {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 2.5rem;
  }

  .founder-profile__photo {
    aspect-ratio: auto;
  }
}

/* Pricing comparison — shared DUPAIN typography and colors. */

.pricing-comparison {
  max-width: 64rem;
  margin-top: 5rem;
}

.pricing-comparison h3 {
  max-width: 48rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.3;
}

.pricing-comparison__intro {
  max-width: 48rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.pricing-comparison__scroll {
  margin-top: 1.5rem;
  overflow-x: auto;
}

@media (max-width: 47.9375rem) {
  .pricing-comparison__scroll {
    mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
  }
}

.pricing-comparison table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  line-height: 1.5;
}

.pricing-comparison th,
.pricing-comparison td {
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
}

.pricing-comparison thead th {
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.pricing-comparison th:first-child {
  width: 40%;
  text-align: left;
}

.pricing-comparison tbody th {
  font-weight: 500;
}

.pricing-comparison td {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.pricing-comparison tr > :last-child {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 600;
}

/* Page Avocats */

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta .btn-outline {
  border-color: color-mix(in oklch, var(--primary-foreground) 35%, transparent);
  color: var(--primary-foreground);
}

.cta .btn-outline:hover {
  background-color: color-mix(in oklch, var(--primary-foreground) 12%, transparent);
}

.cta__email {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--primary-foreground) 75%, transparent);
}

.cta__email strong {
  color: var(--primary-foreground);
  font-weight: 600;
  -webkit-user-select: all;
  user-select: all;
}

