@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Variables et styles communs aux deux pages */

:root {
  --ink: #171717;
  --paper: #f5efdf;
  --yellow: #f7e548;
  --orange: #ff654f;
  --purple: #c1a7ef;
  --white: #fffdf5;
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

:focus-visible {
  outline: 3px dashed var(--orange);
  outline-offset: 5px;
}

/* Page d’accueil */

.home-page a {
  color: inherit;
  text-decoration: none;
}

.home-page button, .home-page a {
  -webkit-tap-highlight-color: transparent;
}

.home-page .container {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

.home-page .mono {
  font-family: "DM Mono", monospace;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.home-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 17px 23px;
  border: var(--border);
  background: var(--yellow);
  box-shadow: var(--shadow);
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
}

.home-page .button:hover {
  transform: translate(4px, 4px);
  box-shadow: 3px 3px 0 var(--ink);
}

.home-page .button:active {
  transform: translate(7px, 7px);
  box-shadow: none;
}

/* Navigation */

.home-page header {
  border-bottom: var(--border);
  background: var(--paper);
}

.home-page .nav {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-page .logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
}

.home-page .logo span {
  padding: 4px 6px;
  background: var(--ink);
  color: var(--yellow);
  font-size: .78rem;
  letter-spacing: .015em;
}

.home-page .nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
  font-weight: 700;
}

.home-page .nav-links > a:hover {
  text-decoration: underline;
}

.home-page .nav-contact {
  border: var(--border);
  padding: 12px 17px;
  background: var(--orange);
}

/* Hero */

.home-page .hero {
  background: var(--yellow);
  padding-block: 65px 85px;
}

.home-page .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 55px;
}

.home-page .hero-copy {
  min-width: 0;
}

.home-page .hero .hero-portrait {
  width: calc(100% - 18px);
  max-width: 360px;
  justify-self: center;
  padding: 22px;
}

.home-page .hero .hero-portrait .mono {
  margin: 0;
}

.home-page .hero-photo {
  aspect-ratio: 4 / 5;
  margin-block: 18px;
  border: var(--border);
  background: var(--paper);
  overflow: hidden;
}

.home-page .hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-page .hero-photo-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.home-page .hero-photo-placeholder svg {
  width: 55%;
  height: auto;
}

.home-page .hero-portrait-name {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.04em;
}

.home-page .hero-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 38px;
}

.home-page .hero-topline p {
  margin: 0;
  font-size: clamp(.85rem, 2vw, 1.3rem);
  font-weight: 500;
  text-transform: uppercase;
}

.home-page .asterisk {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--ink);
}

.home-page h1 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  letter-spacing: -.06em;
  line-height: 1.05;
  margin: 0 0 28px;
  font-weight: 700;
}

.home-page h1 span {
  display: block;
}

.home-page h1 .brand-highlight {
  display: table;
  margin-top: 6px;
  padding: .05em .18em .1em;
  background: var(--ink);
  color: var(--yellow);
}

.home-page .hero-services {
  margin: 0 0 35px;
  font-size: clamp(.9rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.6;
  text-transform: uppercase;
}

.home-page .hero-services span {
  display: inline-block;
}

.home-page .hero-services span + span::before {
  content: "/";
  margin-inline: .35em;
}

.home-page .hero-description {
  max-width: 650px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  margin: 0 0 33px;
}

.home-page .hero-description strong {
  display: block;
}

.home-page .hero .button {
  background: var(--paper);
}

/* Bandeau */

.home-page .ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 0;
  border-block: var(--border);
}

.home-page .ticker-content {
  display: flex;
  justify-content: center;
  gap: 45px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .05em;
}

.home-page .ticker span:nth-child(even) {
  color: var(--yellow);
}

.home-page .ticker-content > span {
  display: inline-flex;
  align-items: center;
  gap: .5em;
}

.home-page .ticker-asterisk {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Services */

.home-page .services {
  padding-block: 105px;
}

.home-page .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 50px;
}

.home-page .section-heading h2 {
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -.075em;
  line-height: .95;
  margin: 10px 0 0;
}

.home-page .section-heading p {
  max-width: 250px;
  line-height: 1.5;
}

.home-page .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.home-page .service {
  min-height: 390px;
  padding: 30px;
  border: var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.home-page .service:nth-child(1) {
  background: var(--yellow);
}

.home-page .service:nth-child(2) {
  background: var(--orange);
}

.home-page .service:nth-child(3) {
  background: var(--purple);
}

.home-page .service-number {
  font-family: "DM Mono", monospace;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

.home-page .service-symbol {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin: 30px 0 12px;
}

.home-page .service h3 {
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -.055em;
  margin: 0 0 18px;
}

.home-page .service p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.home-page .service-bottom {
  margin-top: auto;
  padding-top: 35px;
  font-family: "DM Mono", monospace;
  font-size: .75rem;
  text-transform: uppercase;
  font-weight: 500;
}

/* Approche */

.home-page .approach {
  background: var(--white);
  border-block: var(--border);
  padding-block: 95px;
}

.home-page .approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 90px;
}

.home-page .approach h2 {
  font-size: clamp(3rem, 6vw, 5.3rem);
  line-height: 1;
  letter-spacing: -.075em;
  margin: 18px 0 25px;
}

.home-page .approach p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.home-page .approach-note {
  background: var(--purple);
  padding: 45px;
  border: var(--border);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(2deg);
}

.home-page .approach-note strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.06em;
}

.home-page .approach-note .mono {
  display: block;
  margin-top: 30px;
}

/* Contact */

.home-page .contact {
  padding-block: 105px;
  background: var(--yellow);
}

.home-page .contact h2 {
  max-width: 900px;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: .95;
  letter-spacing: -.08em;
  margin: 20px 0 35px;
}

.home-page .contact p {
  max-width: 570px;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 35px;
}

.home-page .contact .button {
  background: var(--paper);
}

/* Footer */

.home-page footer {
  background: var(--ink);
  color: var(--paper);
  padding: 30px 0;
}

.home-page .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-page .footer-inner small {
  line-height: 1.5;
}

.home-page .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid currentColor;
  line-height: 1.5;
}

.home-page .footer-legal a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-page footer .logo span {
  background: var(--yellow);
  color: var(--ink);
}

@media (max-width: 900px) {
  .home-page .ticker-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    padding-inline: 24px;
    white-space: normal;
  }

  .home-page .ticker-content > span {
    min-width: 0;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .home-page .ticker-content > span:nth-child(3) {
    color: var(--yellow);
  }

  .home-page .ticker-content > span:nth-child(4) {
    color: var(--paper);
  }

  .home-page .hero {
    padding-block: 50px 65px;
  }

  .home-page .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .home-page h1 {
    font-size: clamp(2.3rem, 8.1vw, 6.6rem);
  }

  .home-page .nav-links {
    gap: 20px;
  }

  .home-page .service-grid {
    grid-template-columns: 1fr;
  }

  .home-page .service {
    min-height: 320px;
  }

  .home-page .approach-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .home-page .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .home-page .container {
    width: min(100% - 32px, 1180px);
  }

  .home-page .nav {
    min-height: 75px;
  }

  .home-page .nav-links {
    gap: 10px;
  }

  .home-page .nav-links > a:not(.nav-contact) {
    display: none;
  }

  .home-page .nav-contact {
    font-size: .75rem;
    padding: 10px;
  }

  .home-page .logo {
    font-size: 1.2rem;
  }

  .home-page .logo span {
    font-size: .66rem;
  }

  .home-page .hero-topline {
    margin-bottom: 28px;
  }

  .home-page .asterisk {
    width: 1.5rem;
    height: 1.5rem;
  }

  .home-page .hero-services {
    max-width: 340px;
  }

  .home-page .ticker-content {
    gap: 12px 16px;
    padding-inline: 16px;
    font-size: clamp(.75rem, 3vw, .875rem);
    letter-spacing: .03em;
  }

  .home-page .services, .home-page .contact {
    padding-block: 70px;
  }

  .home-page .approach {
    padding-block: 70px;
  }

  .home-page .approach-note {
    padding: 28px;
  }

  .home-page .footer-inner {
    flex-direction: column;
    align-items: start;
  }
}

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

.home-page .text-orange {
  color: var(--orange);
}

/* Page des mentions légales */

.legal-page a {
  color: inherit;
  text-underline-offset: 4px;
}

.legal-page .container {
  width: min(960px, calc(100% - 48px));
  margin-inline: auto;
}

.legal-page .mono {
  font-family: "DM Mono", monospace;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.legal-page header {
  border-bottom: var(--border);
}

.legal-page nav {
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-page .logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  text-decoration: none;
}

.legal-page .logo span {
  padding: 4px 6px;
  background: var(--ink);
  color: var(--yellow);
  font-size: .78rem;
  letter-spacing: .015em;
}

.legal-page .heading {
  padding-block: 55px;
  background: var(--yellow);
  border-bottom: var(--border);
}

.legal-page h1 {
  margin: 14px 0 0;
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.legal-page main {
  padding-block: 45px 75px;
}

.legal-page .draft-note {
  padding: 18px 22px;
  background: var(--purple);
  border: var(--border);
  line-height: 1.6;
}

.legal-page section {
  margin-top: 40px;
}

.legal-page h2 {
  font-size: 1.6rem;
  letter-spacing: -.04em;
}

.legal-page dl {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr);
  margin: 0;
}

.legal-page dt, .legal-page dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.legal-page dt {
  padding-right: 24px;
  font-weight: 700;
}

.legal-page address {
  font-style: normal;
}

.legal-page mark {
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 4px;
}

.legal-page p {
  line-height: 1.65;
}

.legal-page footer {
  padding-block: 28px;
  background: var(--ink);
  color: var(--paper);
}

.legal-page .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .legal-page .container {
    width: calc(100% - 32px);
  }

  .legal-page nav {
    gap: 16px;
  }

  .legal-page nav > a:last-child {
    max-width: 105px;
    font-size: .85rem;
  }

  .legal-page dl {
    grid-template-columns: 1fr;
  }

  .legal-page dt {
    padding-bottom: 4px;
    border: 0;
  }

  .legal-page dd {
    padding-top: 0;
  }
}
