:root {
  color-scheme: light;
  --text: #334155;
  --heading: #1e293b;
  --link: #046bd2;
  --link-hover: #045cb4;
  --background: #f0f5fa;
  --border: #d1d5db;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
main:focus-visible {
  outline: 3px solid var(--link-hover);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
  padding: 0.65rem 1rem;
  transform: translateY(-180%);
  background: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 3rem, 75rem);
  min-height: 5rem;
  margin: 0 auto;
  padding: 1rem 0;
}

.brand {
  display: block;
  flex-shrink: 0;
  max-width: 100%;
}

.brand img {
  display: block;
  width: 9.5rem;
  max-width: 100%;
  height: auto;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  color: var(--heading);
  text-decoration: none;
}

.navigation a:hover,
.navigation a[aria-current="page"] {
  border-bottom-color: var(--link);
  color: var(--link);
}

.page {
  width: min(100% - 3rem, 75rem);
  margin: 2rem auto 0;
  padding: 2rem 3rem;
  background: #fff;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.3;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 600;
}

h2 {
  margin: 1.75rem 0 1.25rem;
  font-size: clamp(1.4rem, 2.3vw, 1.875rem);
  font-weight: 600;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

p {
  margin: 0 0 1.25rem;
}

.feature p {
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 5rem;
}

.feature img {
  display: block;
  width: 9.375rem;
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.feature h3 {
  font-size: 1.5rem;
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  width: min(100% - 3rem, 75rem);
  margin: 1rem auto 2rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem;
}

@media (max-width: 64rem) {
  .page {
    padding: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 2rem;
    margin-top: 3rem;
  }
}

@media (max-width: 43rem) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: calc(100% - 2rem);
    min-height: 0;
    padding: 1rem 0 0.5rem;
  }

  .navigation {
    gap: 0.25rem;
  }

  .navigation a {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .page {
    width: calc(100% - 2rem);
    margin-top: 1rem;
    padding: 1.5rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid {
    margin-top: 2.5rem;
  }

  .feature img {
    margin-bottom: 1rem;
  }

  .feature h3 {
    font-size: 1.25rem;
  }

  .site-footer {
    width: calc(100% - 2rem);
  }
}

/* Adaptations propres à Mes Tournées, sur une copie indépendante du CSS Vidalice. */
:root {
  --text: #2d3748;
  --heading: #335837;
  --link: #335837;
  --link-hover: #244329;
  --background: #fff;
  --panel: #f4f6f4;
}

.brand { display: flex; align-items: center; gap: 1rem; color: var(--heading); text-decoration: none; }
.brand img { width: 3.125rem; flex-shrink: 0; }
.brand span { font-size: 1.625rem; font-weight: 500; }
.hero { text-align: center; }
.hero h2 { margin-top: 1.5rem; }
.application-image { display: block; width: 35rem; max-width: 100%; height: auto; margin: 1.5rem auto; }
.hero-actions { margin: 1.5rem 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.5rem 1.5rem; border: 1px solid var(--heading); border-radius: 2rem; font-weight: 600; text-decoration: none; }
.button:hover { color: #fff; background: var(--heading); }
.home-page .features-grid { margin-top: 4rem; }
.home-page .feature p { font-size: 1.125rem; }
.panel { border-radius: 1.75rem; background: var(--panel); padding: 2rem; }
.audience { margin-top: 3rem; }
.audience h2, .referral h2, .price-card h2 { margin-top: 0; }
.audience ul, .referral ul { margin-bottom: 0; }
.pricing-page > h1 { text-align: center; margin-bottom: 3rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.price-card h2 { font-size: clamp(1.4rem, 2.3vw, 1.875rem); }
.price { font-weight: 700; }
.price-card ul { margin: 1.5rem 0 0; padding-left: 1.25rem; }
.price-card li + li { margin-top: 0.25rem; }
.promotion { font-style: italic; }
.pricing-note { margin: 2.5rem 0; text-align: center; }
.pricing-note p { margin-bottom: 0.25rem; }
.referral p, .referral-conditions { margin-bottom: 0; }

@media (max-width: 64rem) {
  .panel { padding: 1.5rem; }
}

@media (max-width: 43rem) {
  .brand { gap: 0.75rem; }
  .brand img { width: 3rem; }
  .brand span { font-size: 1.375rem; }
  .hero h1 { text-align: left; }
  .hero h2 { font-size: 1.4rem; }
  .home-page .features-grid { margin-top: 3rem; }
  .home-page .feature p { font-size: 1rem; }
  .panel { padding: 1.25rem; border-radius: 1rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-page > h1 { text-align: left; margin-bottom: 2rem; }
  .pricing-note { text-align: left; margin: 2rem 0; }
}

/* Contact : liens uniquement, sans intégration de ressources des réseaux sociaux. */
.contact-page > h1 { text-align: center; }
.contact-intro { max-width: 45rem; margin: 1.5rem auto 2.5rem; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.contact-grid h2 { margin-top: 0; }
.contact-note { margin-top: 2rem; font-size: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 43rem) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-page > h1, .contact-intro { text-align: left; }
}
