/* ============================================
   Swisspod Key — Design tokens & base styles
   ============================================ */

/* Inter, self-hosted (2 subset files, variable weight 100-900) instead of a
   Google Fonts <link> — removes a render-blocking third-party round trip. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-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;
}

:root {
  /* Brand colors */
  --color-red: #DA291C;
  --color-white: #FFFFFF;
  --color-ink: #1A1A1A;

  /* Neutral tones derived for surfaces/borders (kept close to ink/white, no new hues) */
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5F4F3;
  --color-border: #E4E2E0;
  --color-text-muted: #5C5C5C;

  /* Typography */
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-hero: clamp(2rem, 3vw + 1rem, 3.25rem);
  --lh-tight: 1.15;
  --lh-base: 1.6;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  /* Layout */
  --container-max: 1180px;
  --radius: 4px;
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-ink);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

h1, h2, h3, h4 {
  line-height: var(--lh-tight);
  font-weight: 600;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* On-brand focus ring: a white gap ring keeps it visible against dark
   backgrounds (hero photo, footer), the red outer ring gives it 4.87:1
   contrast against light backgrounds — works everywhere without per-context
   overrides. Replaces each browser's own default (a thin blue ring that
   clashed with the red/ink brand palette). */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-red);
  border-radius: var(--radius);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-6);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 1000;
  padding: 0.75em 1.2em;
  background: var(--color-white);
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: var(--space-2);
}

/* Visually hidden but present for screen readers / document outline. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Compensates for the fixed header so anchor-link scrolling (nav, CTAs,
   the hero scroll cue) doesn't land with the section title tucked behind it. */
.section[id] {
  scroll-margin-top: 7rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #b8210f;
}

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.btn-secondary:hover {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.6em 1.3em;
  font-size: var(--fs-sm);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-white);
}

.btn-secondary-on-dark {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary-on-dark:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--color-surface);
  border-bottom-color: var(--color-border);
}

.site-header.is-scrolled .site-header__baseline {
  color: var(--color-text-muted);
}

.site-header.is-scrolled .btn-ghost {
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.site-header.is-scrolled .btn-ghost:hover {
  background: var(--color-ink);
  color: var(--color-white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.site-header__logo {
  width: 96px;
  height: auto;
}

.site-header__baseline {
  font-size: var(--fs-sm);
  color: var(--color-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  display: none;
  transition: color 0.25s ease;
}

@media (min-width: 640px) {
  .site-header__baseline {
    display: inline;
  }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh; /* dvh accounts for mobile browser chrome; vh is the fallback */
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media-img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* YouTube/Vimeo background embed: iframes can't use object-fit, so the
   iframe is oversized to a 16:9 box and centered to cover the container. */
.hero__media-embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media-embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* YouTube briefly shows its own title/uploader card before real playback
   starts (~3-4s). Covering the iframe with the static hero photo for that
   window hides it entirely, and doubles as a deliberate photo->video reveal
   rather than an ad-hoc fix. */
.hero__media-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: hero-mask-fade 0.8s ease 3.4s both;
}

@keyframes hero-mask-fade {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 9, 0.75) 0%, rgba(10, 9, 9, 0.45) 42%, rgba(10, 9, 9, 0.15) 68%),
    linear-gradient(180deg, rgba(10, 9, 9, 0.15) 0%, rgba(10, 9, 9, 0.1) 55%, rgba(10, 9, 9, 0.75) 100%),
    linear-gradient(0deg, rgba(218, 41, 28, 0.25) 0%, rgba(218, 41, 28, 0) 12%);
}

.hero__inner {
  max-width: 580px;
  position: relative;
  z-index: 1;
  padding-block: calc(var(--space-7) + 3rem) var(--space-6);
}

/* Phones: the desktop top padding leaves a lot of dead air below the fixed
   header (99px tall) before anything appears — tighten it so the CTAs sit
   closer to the top of a small viewport instead of needing an early scroll. */
@media (max-width: 640px) {
  .hero__inner {
    padding-block: calc(var(--space-6) + 2.5rem) var(--space-5);
  }
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: var(--space-3);
  color: var(--color-white);
  perspective: 400px;
}

.hero__subtitle {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
  margin-bottom: var(--space-4);
  animation: hero-rise 0.7s ease both 0.12s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  animation: hero-rise 0.7s ease both 0.24s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__stat {
  max-width: 320px;
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.97);
  border-top: 3px solid var(--color-red);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  animation: hero-rise 0.7s ease both 0.36s;
}

@media (min-width: 768px) {
  .hero__stat {
    position: absolute;
    z-index: 1;
    right: var(--space-3);
    bottom: var(--space-4);
    max-width: 260px;
    margin-top: 0;
  }
}

.hero__stat-figure {
  display: block;
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--color-red);
}

.hero__stat-detail {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.hero__scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: var(--space-2);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-1);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: var(--fs-sm);
}

.hero__scroll-cue svg {
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Short viewports (landscape phones): compact the hero so the CTAs aren't
   pushed below the fold by desktop-scale spacing/type. Placed last in the
   Hero block so it wins over the same-specificity rules defined above it. */
@media (max-height: 500px) {
  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding-block: calc(var(--space-5) + 2.5rem) var(--space-4);
  }

  .hero__title {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
    margin-bottom: var(--space-2);
  }

  .hero__subtitle,
  .hero__stat,
  .hero__scroll-cue {
    display: none;
  }
}

/* ============================================
   Comment ça marche
   ============================================ */

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

@media (min-width: 1024px) {
  /* Extra clearance so the pinned "Comment ça marche" section (see main.js)
     isn't tucked under the fixed header while pinned at the viewport top. */
  .how {
    padding-top: 9.5rem;
  }
}

.how__title {
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--space-6);
}

.how__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
  counter-reset: none;
}

@media (min-width: 768px) {
  .how__list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.how__step {
  position: relative;
  padding-top: var(--space-3);
  border-top: 2px solid var(--color-border);
}

.how__step-line {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left center;
}

.how__number {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: var(--space-2);
}

.how__step-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-1);
}

.how__step-text {
  color: var(--color-text-muted);
  max-width: 38ch;
}

/* ============================================
   Offres & Tarifs
   ============================================ */

.pricing__title {
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--space-1);
}

.pricing__note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-5);
}

.pricing__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 700px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .pricing__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card:not(.pricing-card--featured):hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.pricing-card--featured {
  border-color: var(--color-red);
  border-width: 2px;
  box-shadow: 0 16px 40px rgba(218, 41, 28, 0.12);
}

@media (min-width: 1080px) {
  .pricing-card--featured {
    padding-block: calc(var(--space-4) + var(--space-2));
  }
}

.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: var(--space-4);
  background: var(--color-red);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.25em 0.9em;
  border-radius: 999px;
}

.pricing-card__name {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-1);
}

.pricing-card__sub {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.pricing-card__price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--space-3);
}

.pricing-card__period {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing-card__list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  color: var(--color-text-muted);
  flex-grow: 1;
}

.pricing-card__list li {
  padding-block: 0.4em;
  border-top: 1px solid var(--color-border);
}

.pricing-card__list li:first-child {
  border-top: none;
}

.pricing-card__optional {
  display: flex;
  align-items: center;
  gap: 0.6em;
  border-top-style: dashed;
}

.pricing-card__optional-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.2em 0.65em;
}

.pricing-card__cta {
  width: 100%;
}

/* ============================================
   Secteurs
   ============================================ */

.sectors__title {
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--space-5);
}

.sectors__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .sectors__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .sectors__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sector-card {
  padding: var(--space-3);
  border-radius: var(--radius);
  transition: transform 0.25s ease;
}

.sector-card:hover {
  transform: translateY(-4px);
}

.sector-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-red);
  margin-bottom: var(--space-2);
}

.sector-card__name {
  font-size: var(--fs-lg);
  margin-bottom: 0.35rem;
}

.sector-card__text {
  color: var(--color-text-muted);
}

/* ============================================
   Exemple d'épisode
   ============================================ */

.episode__title {
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--space-4);
}

.episode__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 78% 8%, rgba(218, 41, 28, 0.35) 0%, rgba(218, 41, 28, 0) 45%),
    linear-gradient(135deg, #232323 0%, var(--color-ink) 55%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.episode__tag {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35em 0.8em;
  border-radius: 999px;
}

.episode__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.episode__play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-red);
  text-decoration: none;
  transition: transform 0.2s ease;
  z-index: 1;
}

.episode__play:hover {
  transform: scale(1.05);
}

.episode__play svg {
  margin-left: 3px;
}

.episode__play-ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  animation: episode-pulse 2.4s ease-out infinite;
}

@keyframes episode-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.episode__caption {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* ============================================
   Formats courts (extraits verticaux)
   ============================================ */

.clips__title {
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--space-2);
}

.clips__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0 auto var(--space-5);
}

.clips__grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: var(--space-4);
}

/* A hard cutover to exactly 3 columns (matching .pricing__grid's own first
   breakpoint) instead of natural flex-wrap — with exactly 3 fixed-width
   items, organic wrapping produces an orphaned 3rd card alone on its own
   row anywhere from ~600px to ~768px. Grid tracks shrink below 220px as
   needed so nothing overflows right at the breakpoint. */
@media (min-width: 700px) {
  .clips__grid {
    grid-template-columns: repeat(3, minmax(0, 220px));
    justify-content: center;
  }
}

.clips__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 220px;
}

.clips__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(ellipse at 78% 8%, rgba(218, 41, 28, 0.35) 0%, rgba(218, 41, 28, 0) 45%),
    linear-gradient(135deg, #232323 0%, var(--color-ink) 55%);
  border-radius: 20px;
  border: 6px solid var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.clips__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.clips__label {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* ============================================
   Questions fréquentes
   ============================================ */

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

.faq__title {
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--space-5);
}

.faq__list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-weight: 600;
  padding-block: 0.4rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--color-red);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  color: var(--color-text-muted);
  padding-top: var(--space-1);
  padding-bottom: 0.4rem;
  max-width: 65ch;
}

/* ============================================
   Contact / Devis
   ============================================ */

.contact__inner {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-5);
  }
}

.contact__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-2);
}

.contact__lead {
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
  max-width: 40ch;
}

.contact__details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact__detail dt {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.contact__detail dd {
  margin: 0;
  font-weight: 600;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact__field--full {
  grid-column: 1 / -1;
}

.contact__field label {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.contact__optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.contact__field input,
.contact__field textarea {
  font: inherit;
  padding: 0.7em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
}

.contact__field textarea {
  resize: vertical;
}

.contact__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact__submit {
  grid-column: 1 / -1;
  justify-self: start;
}

.contact__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact__status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.75em 1em;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.contact__status--success {
  background: rgba(43, 138, 62, 0.1);
  color: #1e6b31;
}

.contact__status--error {
  background: rgba(218, 41, 28, 0.08);
  color: var(--color-red);
}

.contact__privacy {
  grid-column: 1 / -1;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 480px) {
  .contact__form {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   À propos
   ============================================ */

.about {
  background: var(--color-ink);
  color: var(--color-white);
  text-align: center;
}

.about__inner {
  max-width: 780px;
}

.about__quote {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.about__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-lg);
}

/* ============================================
   Clôture (avant / après)
   ============================================ */

.closing__grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .closing__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

.closing__col {
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.closing__col p {
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
}

.closing__col--after {
  border-color: var(--color-red);
  background: rgba(218, 41, 28, 0.04);
}

.closing__col--after p {
  color: var(--color-ink);
}

.closing__label {
  display: block;
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

.closing__col--after .closing__label {
  color: var(--color-red);
}

.closing__cta {
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--space-6);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

.site-footer__logo {
  width: 100px;
  height: auto;
  margin-bottom: var(--space-2);
}

.site-footer__baseline {
  color: rgba(255, 255, 255, 0.6);
  max-width: 32ch;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
}

.site-footer__nav a {
  display: inline-block;
  padding-block: 0.5rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__nav a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-weight: 600;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal a {
  color: inherit;
  text-decoration: underline;
}

.site-footer__legal a:hover {
  color: var(--color-white);
}

/* ============================================
   Bandeau cookies
   ============================================ */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.9);
  border-top: 3px solid var(--color-red);
  animation: hero-rise 0.4s ease both;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
}

.cookie-banner__inner p {
  margin: 0;
  font-size: var(--fs-sm);
  flex: 1 1 240px;
  max-width: 60ch;
}

.cookie-banner__inner a {
  color: var(--color-white);
  text-decoration: underline;
}

#cookie-accept {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .cookie-banner__inner {
    padding: var(--space-2);
    gap: var(--space-1) var(--space-2);
  }

  .cookie-banner__inner p {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  #cookie-accept {
    padding: 0.5em 1.1em;
  }
}

/* Short viewports (landscape phones): same breakpoint as the hero's own
   compact mode. Without this the banner's default padding/font is tall
   enough to overlap the hero CTAs, which sit close to the bottom edge
   there too (see .hero__inner in the Hero section). */
@media (max-height: 500px) {
  .cookie-banner__inner {
    padding: 0.5rem var(--space-2);
    gap: 0.5rem var(--space-2);
  }

  .cookie-banner__inner p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  #cookie-accept {
    padding: 0.4em 1em;
  }
}

/* ============================================
   Custom cursor follower (desktop only, added by main.js)
   ============================================ */

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--color-red);
  opacity: 0.5;
  pointer-events: none;
  z-index: 200;
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
}

.cursor-follower.is-active {
  width: 36px;
  height: 36px;
  margin-left: -18px;
  margin-top: -18px;
  opacity: 0.2;
}

/* ============================================
   Pages légales (cookies.html)
   ============================================ */

/* .site-header is position:fixed (~100px tall) and out of normal flow —
   index.html's hero has its own large top padding to clear it, but a legal
   page has no hero, so its first section needs that clearance instead. */
.legal-section {
  padding-top: calc(var(--space-6) + 2.5rem);
}

.legal {
  max-width: 70ch;
  margin-inline: auto;
}

.legal h1 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
}

.legal h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal p,
.legal li {
  color: var(--color-text-muted);
}

.legal p + p {
  margin-top: var(--space-2);
}

.legal ul {
  margin: var(--space-2) 0;
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: 0.4em;
}

.legal__back {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.legal__updated {
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
}

/* ============================================
   Page 404
   ============================================ */

.error-page {
  text-align: center;
}

.error-page__code {
  color: var(--color-red);
  font-weight: 700;
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.error-page__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
