/* OMAD DIGITAL — main stylesheet */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #FAF9EE;
  --surface: #F2F0E1;
  --card: #FFFFFF;
  --sand: #EFE6C3;
  --ink: #1F1F1F;
  --ink-2: #57564E;
  --line: #E1DECB;
  --ok: #2F7A55;

  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --text: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--sand); }

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

[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

/* ---------- Typographie ---------- */

.display, h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: .94;
  margin: 0;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.9rem, 8.4vw, 7rem); }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.75rem); }

h3 {
  font-family: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 .5rem;
}

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
}

.muted { color: var(--ink-2); }

/* ---------- Boutons pilule ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--text);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pill--dark { background: var(--ink); color: var(--paper); }
.pill--dark:hover { background: #3a3a3a; border-color: #3a3a3a; }
.pill--light { background: var(--card); color: var(--ink); }
.pill--light:hover { box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }

.dot {
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(47, 122, 85, .18);
  flex: none;
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .25em;
}
.text-link:hover { text-decoration-thickness: 3px; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 238, .95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark__mark { width: 1.75rem; height: 1.75rem; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 2.5rem; }
.site-nav__list {
  display: flex; gap: 2.25rem; list-style: none; margin: 0; padding: 0;
}
.site-nav__list a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  padding-block: .4rem;
}
.site-nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 2.9rem; height: 2.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
  place-items: center;
  padding: 0;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 1.05rem; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    min-height: calc(100vh - 5rem);
    min-height: calc(100dvh - 5rem);
    background: var(--paper);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: block;
    padding-block: .9rem;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__cta { align-self: flex-start; }
}

/* ---------- Sections ---------- */

main { display: block; }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--sand {
  background: var(--sand);
  border-radius: var(--radius-l);
  margin-inline: clamp(.5rem, 1.5vw, 1.25rem);
}

.section-head { max-width: 48rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2 + p { margin-top: 1.5rem; }

/* ---------- Accueil : hero ---------- */

.hero {
  padding-top: clamp(3.5rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  text-align: center;
}
.hero .kicker { justify-content: center; }
.hero h1 {
  font-size: clamp(3.4rem, 13.5vw, 11.5rem);
  line-height: .86;
  letter-spacing: -0.03em;
}
.hero__tagline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.75rem auto 0;
  max-width: 26em;
  font-variation-settings: "opsz" 40;
}
.hero__intro {
  margin: 1.25rem auto 0;
  max-width: 36em;
  color: var(--ink-2);
}
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem;
  margin-top: 2.5rem;
}

/* ---------- Activité (deux piliers) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.pillar {
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.pillar__title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: .95;
  letter-spacing: -0.015em;
  margin: 0;
}
.pillar p { color: var(--ink-2); max-width: 32em; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Services : colonne collante + grille ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.split__aside { position: sticky; top: 7.5rem; }
.split__aside p { margin-top: 1.5rem; color: var(--ink-2); max-width: 26em; }
.split__aside > .text-link { display: inline-block; margin-top: 1.75rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.card__icon {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: var(--radius-s);
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.card__icon svg { width: 1.35rem; height: 1.35rem; }
.card p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Liste à lignes (pourquoi / valeurs) ---------- */

.rows { border-top: 1.5px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid rgba(31, 31, 31, .18);
}
.row__title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: .98;
  letter-spacing: -0.015em;
  margin: 0;
}
.row p { color: var(--ink-2); max-width: 34em; }
.section--sand .row p { color: #4a483f; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }

/* ---------- Démarche (séquence réelle) ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 1.5px solid var(--ink);
  padding-top: 1.25rem;
}
.steps li::before {
  content: "Step " counter(step);
  display: block;
  font-size: .9rem;
  color: var(--ink-2);
  margin-bottom: .75rem;
}
.steps p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA discret ---------- */

.cta {
  text-align: center;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.cta p { margin: 1.25rem auto 2rem; color: var(--ink-2); max-width: 32em; }

/* ---------- En-tête de page intérieure ---------- */

.page-hero {
  padding-top: clamp(3.5rem, 9vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.page-hero h1 { font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: .88; letter-spacing: -0.025em; }
.page-hero .lead { margin-top: 2rem; }

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

.prose { max-width: 42rem; }
.prose p { font-size: 1.125rem; }
.prose p + p { margin-top: 1.1em; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 4vw, 3rem);
  margin: 0;
  border-top: 1.5px solid var(--ink);
}
.facts div { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .9rem; color: var(--ink-2); }
.facts dd { margin: .2rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Services (page) ---------- */

.service-list { border-top: 1.5px solid var(--ink); }
.service {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr);
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.service .card__icon { margin: .15rem 0 0; }
.service h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: .98;
}
.service p { color: var(--ink-2); max-width: 34em; }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; }
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.contact-info__item { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.contact-info__label { display: block; font-size: .9rem; color: var(--ink-2); margin-bottom: .2rem; }
.contact-info__value { font-size: 1.2rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.contact-info__value:hover { text-decoration: underline; text-underline-offset: .2em; }
.contact-info address { font-style: normal; font-weight: 600; }

.form {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-weight: 600; margin-bottom: .45rem; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: .85rem 1rem;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #c9c5ad; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 31, 31, .08);
}
.field [aria-invalid="true"] { border-color: #A23B2A; }
.field__error { display: block; color: #A23B2A; font-size: .9rem; margin-top: .4rem; }
.form__note { font-size: .9rem; color: var(--ink-2); margin-top: 1.25rem; }
.form__status { margin-top: 1rem; font-weight: 600; }

/* ---------- Pages juridiques ---------- */

.legal { max-width: 46rem; }
.legal section + section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.legal h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.legal p, .legal li { color: #3b3a35; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li + li { margin-top: .4rem; }
.legal .facts { grid-template-columns: 1fr; }
.legal__updated { font-size: .95rem; color: var(--ink-2); margin-top: 3rem; }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--ink);
  color: #d9d7cb;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  font-size: .98rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.site-footer :focus-visible { outline-color: var(--paper); }
.wordmark--footer { color: var(--paper); font-size: 1.35rem; }
.wordmark--footer .wordmark__mark { color: var(--paper); }

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 249, 238, .16);
}
.site-footer__brand p { margin-top: 1.25rem; max-width: 26em; color: #b9b7ab; }
.site-footer__nav { display: grid; gap: .5rem; align-content: start; }
.site-footer__address { font-style: normal; color: #b9b7ab; line-height: 1.7; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .75rem 2rem;
  padding-top: 1.75rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__copy { color: #9a988d; width: 100%; font-size: .9rem; }
@media (max-width: 820px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */

.notfound { text-align: center; padding-block: clamp(6rem, 14vw, 10rem); }
.notfound p { margin: 1.5rem auto 2.25rem; color: var(--ink-2); }

/* ---------- Animations ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.hero > .container > * { animation: rise .9s var(--ease) both; }
.hero > .container > *:nth-child(2) { animation-delay: .08s; }
.hero > .container > *:nth-child(3) { animation-delay: .16s; }
.hero > .container > *:nth-child(4) { animation-delay: .24s; }
.hero > .container > *:nth-child(5) { animation-delay: .32s; }
.hero > .container > *:nth-child(6) { animation-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .cta, .form { display: none; }
  .site-footer { background: none; color: #000; }
  body { background: #fff; }
}
