:root {
  color-scheme: light;
  --red: #df0914;
  --red-dark: #b60009;
  --ink: #1e1e1e;
  --muted: #626262;
  --line: #dedede;
  --soft: #f5f5f3;
  --white: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: var(--white);
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 1px;
  font-size: 0.78rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-text strong {
  color: var(--red);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.location {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.hero {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding-block: clamp(64px, 9vw, 120px);
}

.eyebrow,
.aside-label {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1,
.legal-main h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.hero h1 span,
.legal-main h1 span {
  display: block;
  color: var(--red);
}

.hero-slogan {
  margin: 24px 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
}

.intro {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.commitment {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 22px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 20px 45px rgb(134 0 8 / 18%);
}

.commitment .aside-label {
  color: rgb(255 255 255 / 72%);
}

.aside-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.values li {
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.contact-section {
  padding-block: clamp(64px, 8vw, 100px);
  background: var(--soft);
}

.section-inner {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.contact-card:hover {
  transform: translateY(-2px);
  border-color: #bdbdbd;
  box-shadow: 0 10px 26px rgb(0 0 0 / 7%);
}

.contact-card.featured {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-size: 1.25rem;
  font-weight: 800;
}

.featured .icon {
  color: var(--red);
  background: var(--white);
}

.card-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.card-copy small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured .card-copy small,
.featured .card-copy > span {
  color: rgb(255 255 255 / 78%);
}

.card-copy strong {
  overflow-wrap: anywhere;
  font-size: 1.22rem;
  line-height: 1.2;
}

.card-copy > span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.arrow {
  color: var(--red);
  font-size: 1.2rem;
}

.featured .arrow {
  color: var(--white);
}

.schedule-card {
  grid-template-columns: 46px minmax(0, 1fr);
}

.schedule-card details {
  grid-column: 2;
  width: 100%;
  margin-top: 8px;
}

.schedule-card summary {
  width: fit-content;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.schedule-card table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.schedule-card th,
.schedule-card td {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.schedule-card td {
  text-align: right;
}

footer {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-links a:hover,
.back-link:hover,
.legal-main a:hover {
  color: var(--red);
}

/* Page de confidentialité */
.legal-header {
  border-bottom: 1px solid var(--line);
}

.legal-header .site-header {
  width: min(100% - 40px, 980px);
}

.back-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-main {
  width: min(100% - 40px, 860px);
  margin-inline: auto;
  padding-block: clamp(52px, 8vw, 90px);
}

.legal-main h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
}

.legal-lead {
  margin: 34px 0 0;
  color: #444444;
  font-size: clamp(1.08rem, 2.5vw, 1.3rem);
  line-height: 1.65;
}

.legal-meta {
  margin: 18px 0 52px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-section {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: #484848;
  line-height: 1.7;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-main a {
  color: var(--red-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.legal-table {
  width: 100%;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal-table th,
.legal-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.legal-table thead th {
  color: var(--white);
  background: var(--ink);
}

.legal-table tbody th {
  width: 30%;
  background: var(--soft);
}

/* Page de téléchargement */
.download-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.download-page main {
  width: min(100%, 420px);
  text-align: center;
}

.download-page .logo {
  width: 132px;
  height: auto;
  margin: 0 auto 24px;
}

.download-page h1 {
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  line-height: 1.08;
}

.download-page main > p {
  max-width: 34ch;
  margin: 16px auto 28px;
  color: #555555;
  font-size: 1rem;
  line-height: 1.5;
}

.download-button {
  display: block;
  width: 100%;
  padding: 17px 20px;
  border-radius: 10px;
  color: var(--white);
  background: var(--red);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 4px 12px rgb(223 9 20 / 20%);
}

.download-button + .download-button {
  margin-top: 12px;
}

.download-button-secondary {
  color: var(--ink);
  background: #f1f1f1;
  box-shadow: none;
}

.download-button:active {
  transform: translateY(1px);
  background: var(--red-dark);
}

.download-button-secondary:active {
  background: #dfdfdf;
}

.download-button:focus-visible,
.contact-card:focus-visible,
.brand:focus-visible,
.back-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.download-page .redirect-status {
  margin: 18px 0 0;
  color: #777777;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 42px;
    padding-block: 52px 64px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .section-heading {
    gap: 18px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table thead {
    display: none;
  }

  .legal-table tr + tr {
    border-top: 2px solid var(--ink);
  }

  .legal-table th,
  .legal-table td {
    border: 0;
  }

  .legal-table tbody th {
    padding-bottom: 8px;
  }

  .legal-table td {
    padding-top: 8px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .section-inner,
  footer,
  .legal-header .site-header,
  .legal-main {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  .brand-logo {
    width: 46px;
    height: 56px;
  }

  .brand-text {
    font-size: 0.68rem;
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  .location {
    max-width: 130px;
    font-size: 0.76rem;
  }

  .commitment {
    border-radius: 16px;
  }

  .contact-card {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 20px 16px;
  }

  .icon {
    width: 40px;
    height: 40px;
  }

  .schedule-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .schedule-card details {
    grid-column: 1 / -1;
  }

  footer {
    flex-direction: column;
  }

  .legal-header .site-header {
    align-items: center;
  }

  .legal-header .brand-text {
    display: none;
  }

  .back-link {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .contact-card,
  .download-button {
    transition: none;
  }

  .download-button:active {
    transform: none;
  }
}
