/* Base + page layout. Exact values come from docs/design/maquette-hifi.html. */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--color-rose);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-rose-deep);
}

:focus-visible {
  outline: 2px solid var(--color-rose);
  outline-offset: 3px;
  border-radius: 2px;
}

.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;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--page-x);
  max-width: calc(var(--container-max) + 2 * var(--page-x));
  margin-inline: auto;
}

.site-header__logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.site-nav {
  display: flex;
  gap: 36px;
  align-items: center;
  font-weight: 300;
  font-size: var(--text-small);
}

.site-nav a:not(.btn) {
  color: var(--color-ink);
}

.burger { display: none; }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  gap: 32px;
  padding: 48px var(--page-x) 0;
  align-items: flex-start;
  max-width: calc(var(--container-max) + 2 * var(--page-x));
  margin-inline: auto;
}

.hero__text {
  flex: 1;
  padding-top: 36px;
}

.hero__title {
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 4px 0 26px;
}

.hero__lead {
  font-size: var(--text-lead);
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 440px;
  margin: 0 0 34px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero__visual {
  flex: 1;
  position: relative;
  height: 600px;
}

.hero__ornament {
  position: absolute;
  font-family: var(--font-script);
  font-size: 30px;
  color: var(--color-champagne);
  right: 40px;
  top: -6px;
}

/* ---------- Brand strip ---------- */

.brands {
  width: min(var(--container-max), calc(100% - 2 * var(--page-x)));
  margin: 8px auto 0;
  border-top: 1px solid var(--color-champagne);
  border-bottom: 1px solid var(--color-champagne);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.brands__list {
  display: flex;
  gap: 52px;
  align-items: baseline;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ---------- À propos ---------- */

.about {
  background: var(--color-cream);
  margin-top: 72px;
  padding: var(--section-y) var(--page-x);
}

.about__inner {
  display: flex;
  gap: 80px;
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
}

/* The arch is the section's grid-breaker: anchored to the bottom edge,
   it dips ~60px past the cream boundary into the next section. */
.about__visual {
  align-self: flex-end;
  margin-bottom: calc(-1 * var(--section-y) - 60px);
  position: relative;
  z-index: 2;
}

.about__text {
  flex: 1.2;
}

.about .section-title { margin-bottom: 24px; }

.about__text > p {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 0 36px;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-weight: 400;
  font-size: var(--text-body);
}

.values li::before {
  content: '✳';
  color: var(--color-champagne);
  font-size: 18px;
  flex: none;
}

.values strong {
  font-weight: 500;
}

/* ---------- Média kit — centered editorial band ---------- */

.mediakit {
  background: var(--color-blush);
  padding: 120px var(--page-x) var(--section-y);
  text-align: center;
}

.mediakit__inner {
  max-width: var(--container-max);
  margin-inline: auto;
}

.mediakit__title {
  font-size: clamp(1.875rem, 1.65rem + 0.8vw, 2.5rem);  /* 30 -> 40 */
  margin-bottom: 64px;
}

.mediakit__figures {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(28px, 4vw, 56px);
}

.mediakit__figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mediakit__number {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 1.9rem + 4.5vw, 6rem);  /* 52 -> 96 */
  line-height: 1;
  letter-spacing: var(--tracking-heading);
  font-variant-numeric: tabular-nums;
}

.mediakit__caption {
  font-weight: 300;
  font-size: var(--text-small);
  color: var(--color-muted);
}

.mediakit__sep {
  align-self: center;
  color: var(--color-champagne);
  font-size: 24px;
}

.mediakit__rule {
  width: 50%;
  border: 0;
  border-top: 1px solid var(--color-champagne);
  margin: 56px auto 28px;
}

.mediakit__demo {
  font-weight: 300;
  color: var(--color-muted);
  margin-bottom: 40px;
}

/* ---------- Offres ---------- */

.offers {
  background: var(--color-blush);
  padding: var(--section-y) var(--page-x);
}

.offers__head {
  text-align: center;
  margin-bottom: 56px;
}

.offers__grid {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  max-width: var(--content-max);
  margin: 0 auto;
}

.offers__cta {
  text-align: center;
  margin-top: 48px;
}

.offers__cta-note {
  font-weight: 300;
  font-size: var(--text-caption);
  color: var(--color-muted);
  margin-top: 14px;
}

/* ---------- Feed ---------- */

.feed {
  padding: var(--section-y) var(--page-x);
}

.feed__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto 48px;
}

.feed__grid {
  display: flex;
  gap: 20px;
  max-width: var(--container-max);
  margin-inline: auto;
}

.feed__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.feed__col--offset {
  padding-top: 56px;
}

.feed__more {
  display: none;
  text-align: center;
  margin-top: 20px;
}

/* ---------- Témoignages ---------- */

.testimonials {
  background: var(--color-cream);
  padding: var(--section-y) var(--page-x);
}

.testimonials__stars {
  text-align: center;
  color: var(--color-champagne);
  font-size: 20px;
  letter-spacing: 0.4em;
  margin-bottom: 44px;
}

.testimonials__grid {
  display: flex;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--color-blush);
  padding: var(--section-y) var(--page-x) 72px;
}

.contact__inner {
  display: flex;
  gap: 80px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.contact__text {
  flex: 1;
  padding-top: 8px;
}

.contact .section-title { margin: 8px 0 24px; }

.contact__text > p {
  font-weight: 300;
  color: var(--color-muted);
  max-width: 400px;
  margin: 0 0 32px;
}

.contact__socials {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  font-weight: 400;
  font-size: var(--text-small);
}

.contact__socials a {
  color: var(--color-muted);
}

.contact__socials a:hover {
  color: var(--color-rose-deep);
}

/* ---------- Footer ---------- */

.footer {
  max-width: var(--content-max);
  margin: 64px auto 0;
  border-top: 1px solid var(--color-champagne);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-weight: 300;
  font-size: var(--text-caption);
  color: var(--color-muted);
}

.footer__script {
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--color-rose-deep);
}

.footer a {
  color: var(--color-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero { gap: 28px; }
  .about__inner, .contact__inner { gap: 48px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .burger { display: flex; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 28px;
    gap: 0;
  }

  .hero__text { padding-top: 0; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; margin-bottom: 34px; }

  .hero__visual {
    height: auto;
    align-self: center;
    padding-bottom: 24px;
  }

  .hero__ornament { display: none; }

  .brands {
    margin-top: 36px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .brands::-webkit-scrollbar { display: none; }
  .brands__label { display: none; }
  .brands__list { gap: 32px; }

  .about {
    margin-top: 44px;
    text-align: center;
  }

  .about__inner {
    flex-direction: column-reverse;
  }

  .about__visual {
    align-self: center;
    margin-bottom: 0;
  }
  .about__text > p { text-align: left; }
  .values { text-align: left; }

  .mediakit { padding-top: var(--section-y); }

  .offers__grid { flex-direction: column; align-items: stretch; }

  .feed__head { flex-direction: column; align-items: flex-start; gap: 12px; }

  .testimonials__grid { flex-direction: column; }

  .contact__inner { flex-direction: column; gap: 40px; }
  .contact__text { padding-top: 0; }
}

@media (max-width: 700px) {
  .mediakit__figures { flex-direction: column; align-items: center; gap: 20px; }
  .mediakit__number { font-size: 3.5rem; }
  .mediakit__sep { font-size: 20px; }
  .mediakit__rule { width: 70%; }
  .mediakit__demo { line-height: 1.9; }
  .mediakit__title { margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .site-header { padding: 18px var(--page-x); }
  .site-header__logo { font-size: 18px; }

  .brands { overflow: visible; justify-content: center; padding: 18px 0; }
  .brands__list {
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
    row-gap: 10px;
    column-gap: 28px;
  }

  .feed__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .feed__col { display: contents; }
  .feed__col--offset { padding-top: 0; }
  .feed__head { margin-bottom: 24px; }
  .feed__more { display: block; }
  .feed__external { display: none; }
}
