:root {
  --red: #ce0205;
  --red-dark: #a90003;
  --ink: #1d1d1d;
  --dark: #373737;
  --muted: #676767;
  --paper: #f5f4f1;
  --white: #fff;
  --line: #deddd9;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 12px; }

.site-header { position: absolute; z-index: 10; width: 100%; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.18); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; padding: 5px; border-radius: 50%; color: transparent; background: var(--red) url("logo-boulistenaute-officiel-blanc.png") center / 82% auto no-repeat; overflow: hidden; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name, .footer-brand { font-family: "Bebas Neue", Impact, sans-serif; font-size: 30px; letter-spacing: .045em; }
nav { display: flex; gap: 30px; }
nav a { font-size: .82rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
nav a:hover, nav a:focus-visible { color: #ff6769; }

.hero { position: relative; min-height: 570px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: radial-gradient(circle at 78% 35%, #4d4d4d 0, #292929 30%, #151515 72%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(115deg, transparent 0 48%, #fff 48.1% 48.3%, transparent 48.4%); }
.hero-content { position: relative; z-index: 2; padding-top: 90px; }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .19em; }
.hero .eyebrow { color: #ff5659; }
h1, h2, h3 { margin-top: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; line-height: .96; letter-spacing: .025em; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(4rem, 8vw, 7.6rem); }
h1 span { color: var(--red); }
.hero h1 span { white-space: nowrap; }
.hero-text { max-width: 620px; margin: 0 0 34px; color: #d6d6d6; font-size: clamp(1rem, 2vw, 1.2rem); }
.button { display: inline-flex; align-items: center; gap: 20px; padding: 15px 22px; border-radius: 3px; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--red); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: var(--red-dark); }
.hero-decoration { position: absolute; right: 4vw; bottom: -90px; width: min(42vw, 510px); aspect-ratio: 1; opacity: .16; }
.hero-decoration span { position: absolute; inset: 0; border: 2px solid var(--white); border-radius: 50%; }
.hero-decoration span:nth-child(2) { inset: 15%; }
.hero-decoration span:nth-child(3) { inset: 31%; background: var(--red); border: 0; }

.services { padding: 78px 0 84px; background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.section-heading h2, .about h2 { margin-bottom: 0; font-size: clamp(2.8rem, 5vw, 4.6rem); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; min-height: 330px; display: flex; flex-direction: column; padding: 32px; overflow: hidden; background: var(--white); border-top: 4px solid var(--dark); box-shadow: 0 8px 28px rgba(0,0,0,.055); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.1); }
.card-featured { border-top-color: var(--red); }
.card-number { position: absolute; right: 18px; top: 4px; color: #eeeeeb; font-family: "Bebas Neue", Impact, sans-serif; font-size: 7rem; line-height: 1; }
.card-icon { position: relative; width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 50%; color: var(--red); background: #f9e8e8; }
.card-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-label { margin: 0 0 8px; color: var(--red); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.card h3 { margin-bottom: 16px; font-size: 2.25rem; }
.card > p:not(.card-label) { margin: 0 0 28px; color: var(--muted); }
.card > a { margin-top: auto; color: var(--red); font-weight: 700; text-decoration: none; }
.card > a span { margin-left: 12px; }
.card > a:hover, .card > a:focus-visible { text-decoration: underline; }

.about { padding: 105px 0; color: var(--white); background: var(--red); }
.about .eyebrow { color: var(--white); opacity: .7; }
.about-inner { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 70px; }
.about-inner .eyebrow { grid-column: 1 / -1; }
.about p:last-child { max-width: 500px; margin: 7px 0 0; font-size: 1.12rem; }
.about-copy p { margin: 0 0 16px; }
.about-copy a { display: inline-block; margin-top: 8px; color: var(--white); font-weight: 700; }
footer { padding: 28px 0; color: #bdbdbd; background: #181818; font-size: .82rem; }
.editorial { padding: 105px 0; background: var(--white); }
.editorial-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.editorial h2, .guide h2 { margin-bottom: 25px; font-size: clamp(2.8rem, 5vw, 4.6rem); }
.editorial-intro > p:last-child, .guide-copy { color: var(--muted); }
.editorial-points { border-top: 1px solid var(--line); }
.editorial-points article { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.editorial-points h3 { margin: 3px 0 0; font-size: 1.75rem; }
.editorial-points p { margin: 0; color: var(--muted); }
.guide { padding: 90px 0; background: #eceae5; }
.guide-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.guide-copy p { margin: 0 0 18px; }
.questions { padding: 100px 0; background: var(--white); }
.questions h2 { margin-bottom: 38px; font-size: clamp(2.8rem, 5vw, 4.6rem); }
.questions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.question { padding: 30px; border: 1px solid var(--line); background: var(--paper); }
.question h3 { margin-bottom: 12px; font-size: 1.8rem; }
.question p { margin: 0; color: var(--muted); }
.question a { color: var(--red); font-weight: 700; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; }
.footer-brand { margin-right: 4px; color: var(--white); font-size: 22px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #d2d2d2; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--white); text-decoration: underline; }

.page-header { padding: 150px 0 70px; color: var(--white); background: var(--dark); }
.page-header h1 { margin: 0; font-size: clamp(3.5rem, 7vw, 6rem); }
.content-page { padding: 70px 0 100px; }
.prose { max-width: 820px; }
.prose h2 { margin: 48px 0 16px; font-size: 2.3rem; }
.prose h3 { margin: 32px 0 12px; font-size: 1.7rem; }
.prose p, .prose li { color: #4e4e4e; }
.prose a { color: var(--red); }
.prose .button-primary { color: var(--white); text-decoration: none; }
.prose .button-primary:hover,
.prose .button-primary:focus-visible { color: var(--white); background: var(--red-dark); text-decoration: none; }
.contact-card { margin-top: 30px; padding: 28px; border-left: 4px solid var(--red); background: var(--paper); }
.contact-card p { margin: 5px 0; }

@media (max-width: 800px) {
  nav { display: none; }
  .hero { min-height: 630px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 340px; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .editorial-layout, .guide-layout { grid-template-columns: 1fr; gap: 38px; }
  .questions-grid { grid-template-columns: 1fr; }
  .editorial-points article { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 70px; }
  .brand-name { font-size: 26px; }
  .hero-content { padding-top: 70px; }
  h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .services, .about { padding-block: 72px; }
  .card { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
