/* Eric VERKEYN SRL – compléments à Tailwind */

html { scroll-padding-top: 5.5rem; }

:focus-visible {
  outline: 3px solid #D98E04;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: #16232B;
  color: #F5F3EE;
  padding: .75rem 1.1rem;
  border-radius: .4rem;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

#contenu:focus { outline: none; }

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(31, 78, 95, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 78, 95, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}

.nav-link { color: #16232B; position: relative; padding: .25rem 0; }
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: #D98E04;
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.section-kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #1F4E5F; margin-bottom: .75rem;
}
.section-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700; letter-spacing: -.01em; line-height: 1.15;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  color: #16232B;
}

.service-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(22, 35, 43, .1);
  border-top: 4px solid #1F4E5F;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: 0 14px 30px -18px rgba(22, 35, 43, .45); transform: translateY(-2px); }

.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: .8rem;
  background: #EAF1F3; color: #1F4E5F;
}

.check { position: relative; padding-left: 1.6rem; }
.check::before {
  content: "";
  position: absolute; left: .1rem; top: .45em;
  width: .55rem; height: .55rem;
  border: 2px solid #D98E04; transform: rotate(45deg);
}

.fact { background: #16232B; padding: 1.75rem 1.5rem; }
.fact-value {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.1rem; font-weight: 700; color: #F2C66B; line-height: 1.1;
}
.fact-label { margin-top: .6rem; color: rgba(245, 243, 238, .8); line-height: 1.55; }

.step { display: flex; gap: .9rem; align-items: flex-start; color: #4B575C; line-height: 1.6; }
.step-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 999px;
  background: #1F4E5F; color: #fff; font-weight: 700; font-size: .9rem;
}

.footer-link { color: rgba(245, 243, 238, .85); text-decoration: underline; text-decoration-color: rgba(245, 243, 238, .3); text-underline-offset: 3px; }
.footer-link:hover { color: #F2C66B; text-decoration-color: #F2C66B; }

/* Dialogues légaux */
.legal-dialog {
  width: min(46rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0; border: 0; border-radius: 1rem;
  background: #F5F3EE; color: #16232B;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.legal-dialog::backdrop { background: rgba(22, 35, 43, .65); }
.legal-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.5rem; background: #F5F3EE;
  border-bottom: 1px solid rgba(22, 35, 43, .12);
}
.dialog-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: .5rem; color: #16232B;
}
.dialog-close:hover { background: rgba(31, 78, 95, .1); }
.legal-body { padding: 1.25rem 1.5rem 2rem; line-height: 1.65; color: #2C3A42; }
.legal-body h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600; font-size: 1.15rem; color: #16232B;
  margin: 1.5rem 0 .5rem;
}
.legal-body p + p { margin-top: .6rem; }
.legal-body ul { list-style: disc; padding-left: 1.3rem; margin: .5rem 0; }
.legal-body a { color: #1F4E5F; text-decoration: underline; text-underline-offset: 2px; }
.legal-dl > div { display: grid; grid-template-columns: 1fr; gap: .1rem; padding: .55rem 0; border-bottom: 1px solid rgba(22, 35, 43, .1); }
.legal-dl dt { font-size: .9rem; color: #4B575C; }
.legal-dl dd { font-weight: 600; }
@media (min-width: 640px) {
  .legal-dl > div { grid-template-columns: 14rem 1fr; gap: 1rem; }
}

body.dialog-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .service-card:hover { transform: none; }
}
