/* partenaire.odratta.com : une seule page, du texte, le noir et les polices
   d'odratta.com (jetons repris de src/styles/base.css du dépôt odratta-com). */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/hanken-grotesk-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Secours calés sur les métriques des deux polices : pendant le chargement,
   la ligne a déjà sa largeur finale. */
@font-face {
  font-family: 'Titre secours';
  src: local('Arial Bold'), local('Helvetica Neue Bold'), local('Roboto Bold'), local('Arial');
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Texte secours';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('Roboto');
  size-adjust: 100.3%;
  ascent-override: 98%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  --paper: #0a0b0e;
  --ink: #f4f3ef;
  --ink-2: #c8c6bf;
  --ink-3: #9b988f;
  --blue: #2d5bff;
  --blue-text: #8ea6ff;
  --rule: rgba(255, 255, 255, 0.1);
  --f-display: 'Bricolage Grotesque', 'Titre secours', system-ui, sans-serif;
  --f-text: 'Hanken Grotesk', 'Texte secours', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --mesure: 34em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: rgba(255, 255, 255, 0.22) var(--paper);
  accent-color: var(--blue);
  caret-color: var(--blue-text);
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: var(--blue);
  color: #ffffff;
}
a {
  color: inherit;
  text-decoration-color: var(--blue-text);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
  transition: text-decoration-color 160ms ease;
}
a:hover {
  text-decoration-color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--blue-text);
  outline-offset: 4px;
  border-radius: 2px;
}

.evite {
  position: absolute;
  left: var(--gutter);
  top: -100%;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.evite:focus {
  top: 12px;
}

.haut {
  padding: 28px var(--gutter) 0;
}
.marque {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.marque:hover {
  text-decoration: underline;
}

main {
  flex: 1;
  padding: clamp(3.5rem, 12vh, 8rem) var(--gutter) clamp(4rem, 10vh, 7rem);
}
h1 {
  margin: 0;
  max-width: 14em;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.1rem + 5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
  hyphens: manual;
  font-synthesis: none;
}
/* Le trait bleu sous un mot du titre, comme sur chaque page d'odratta.com. */
.mark {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}
.lead {
  margin: clamp(1.5rem, 4vh, 2.5rem) 0 0;
  max-width: 30em;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

section {
  margin-top: clamp(3.5rem, 9vh, 6rem);
  max-width: var(--mesure);
}
h2 {
  margin: 0 0 1.1rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
section p {
  margin: 0 0 1.15em;
  color: var(--ink-2);
  text-wrap: pretty;
}
section p:last-child {
  margin-bottom: 0;
}
section p strong {
  color: var(--ink);
  font-weight: 600;
}

.contact h2 {
  margin-bottom: 0.6rem;
}
.mail {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.9375rem;
}
footer a {
  color: var(--ink-3);
}
footer a:hover {
  color: var(--ink);
}

/* Un seul mouvement : la page se pose à l'arrivée. */
@media (prefers-reduced-motion: no-preference) {
  main {
    animation: arrive 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
