/* ==========================================================================
   MRT'PLOMB — page « Qui sommes-nous » (mêmes couleurs et polices que l'accueil)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f5f9fc;
  --blue: #8fd0ec;
  --blue-deep: #2b86bd;
  --ink: #0b0d10;
  --ink-2: rgba(11, 13, 16, .64);
  --ink-3: rgba(11, 13, 16, .4);
  --line: rgba(11, 13, 16, .12);

  --f-display: 'Archivo', 'Inter Tight', system-ui, sans-serif;
  --f-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-brand: "Josefin Sans", "Archivo", sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--blue-deep); outline-offset: 4px; border-radius: 2px; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  margin: 0 0 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--blue-deep);
}
h1, h2 {
  margin: 0;
  font-family: var(--f-display); font-weight: 300; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.04;
}
h2 { font-size: clamp(24px, 3.4vw, 40px); }

/* ---------------------------------------------------------------- en-tête */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gutter) 0;
}
.pill {
  justify-self: start;
  padding: 10px 18px; border-radius: 100px;
  border: 1px solid rgba(11, 13, 16, .2);
  background: rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.pill:hover { border-color: var(--blue); background: #fff; }
.pill--right { justify-self: end; }
.pill { white-space: nowrap; }

.logo { display: grid; justify-items: center; text-decoration: none; color: var(--ink); }
.logo__drop { width: 52px; height: 91px; fill: var(--blue); margin-bottom: -49px; }
.logo__word {
  position: relative;
  font-family: var(--f-brand); font-weight: 300;
  font-size: 18px; letter-spacing: .42em; margin-right: -.42em;
}
.logo__tag {
  margin-top: 7px;
  font-family: var(--f-brand); font-size: 7px; letter-spacing: .32em; margin-right: -.32em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(60svh, 520px);
  display: flex; align-items: flex-end;
  padding: 130px var(--gutter) clamp(20px, 4vh, 36px);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  animation: hero-zoom 2.4s var(--ease) both;
}
.hero::after { /* fondu blanc : haut (logo lisible) et bas (texte lisible) */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.8), rgba(255,255,255,0) 22%),
    linear-gradient(to top, #fff 0%, rgba(255,255,255,0) 30%);
}
.hero__text { position: relative; z-index: 1; max-width: 1100px; width: 100%; margin: 0 auto; }
/* Titre : deux lignes qui montent derrière un masque, la seconde en dégradé bleu du logo */
.title {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.02;
  /* une ligne si la place suffit, sinon « une passion » passe dessous (jamais de débordement) */
}
.title__line { display: inline-block; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; }
.title__line:first-child { margin-right: .28em; }
.title__line > span { white-space: nowrap; }
.title__line > span { display: inline-block; animation: line-up 1.1s var(--ease) both; }
.title__line:nth-child(1) > span { font-weight: 300; animation-delay: .15s; }
.title__line:nth-child(2) > span { animation-delay: .3s; }
.title__accent {
  font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  background: linear-gradient(100deg, var(--blue-deep) 10%, var(--blue) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title__drop {
  display: inline-block; vertical-align: baseline;
  width: .42em; height: .74em; margin-left: .12em;
  fill: var(--blue-deep);
  animation: drop-fall 1.2s var(--ease) .9s both;
}
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes drop-fall { from { opacity: 0; transform: translateY(-.6em); } }

/* Carte verre dépoli posée sur la photo */
.hero__card {
  display: inline-block; max-width: 100%;
  padding: clamp(18px, 2.6vw, 30px) clamp(20px, 3vw, 36px);
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  box-shadow: 0 30px 60px -36px rgba(11, 13, 16, .45);
  animation: rise 1.1s var(--ease) both;
}
.hero__card .kicker { margin-bottom: 12px; font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .32em; }

/* Signature : avatar + nom + rôle sur une ligne */
/* Nom + rôle à côté de la photo de Mathis */
.sign { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: -4px 0 18px; }
.sign__name { font-family: var(--f-brand); font-weight: 400; font-size: clamp(20px, 2vw, 26px); letter-spacing: .28em; text-transform: uppercase; }
.sign__role { white-space: nowrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-deep); }
.hero__scroll {
  position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(36px, 6vh, 64px);
  width: 1px; height: 64px; background: var(--line); overflow: hidden;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--blue-deep); animation: scroll-line 2s var(--ease) infinite;
}
@keyframes hero-zoom { from { transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes scroll-line { to { top: 100%; } }

/* ---------------------------------------------------------------- histoire */
.story { padding-top: clamp(40px, 7vh, 72px); padding-bottom: clamp(40px, 7vh, 72px); }
.story__lead {
  margin: 0 0 clamp(32px, 5vh, 48px);
  max-width: 920px;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(21px, 2.6vw, 32px); line-height: 1.32; letter-spacing: -.005em;
}
/* photo de Mathis à côté de la présentation */
.me { display: grid; grid-template-columns: minmax(0, 4fr) 8fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(32px, 5vh, 48px); }
.me .story__lead { margin: 0; }
.me__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: var(--surface); box-shadow: 0 24px 60px -30px rgba(11, 13, 16, .45); }
.me__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__lead em { font-style: normal; color: var(--blue-deep); }
.story__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.story__body p { margin: 0 0 1em; color: var(--ink-2); }

.timeline { list-style: none; margin: 0; padding: 0; position: sticky; top: 40px; }
.timeline li {
  position: relative; display: grid; gap: 4px;
  padding: 0 0 24px 28px;
  border-left: 1px solid var(--line);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--blue-deep);
}
.timeline li:last-child::before { background: var(--blue-deep); box-shadow: 0 0 0 6px rgba(143, 208, 236, .35); }
.timeline__when { font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--blue-deep); }
.timeline__what { font-family: var(--f-display); font-size: 17px; line-height: 1.35; }

/* ---------------------------------------------------------------- citation */
.quote {
  position: relative; overflow: hidden;
  padding: clamp(44px, 8vh, 80px) 0;
  background: var(--surface);
}
.quote__drop {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  width: clamp(180px, 24vw, 320px); height: auto; aspect-ratio: 120 / 210;
  fill: var(--blue); opacity: .28;
}
.quote blockquote { position: relative; margin: 0 auto; }
.quote p {
  margin: 0; max-width: 960px;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(21px, 2.8vw, 34px); line-height: 1.3;
}
/* Citation animée : mots un à un, puis mots-clés en bleu soulignés */
.quote--anim.reveal { opacity: 1; transform: none; }
.quote--anim .w {
  display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.45em);
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}
.quote--anim.is-in .w { opacity: 1; filter: none; transform: none; }
.quote--anim .kw { position: relative; font-style: normal; white-space: nowrap; }
.quote--anim .kw .w { transition-property: opacity, filter, transform, color; }
.quote--anim.is-in .kw .w { color: var(--blue-deep); transition-delay: calc(var(--i) * 55ms), calc(var(--i) * 55ms), calc(var(--i) * 55ms), calc(var(--n) * 55ms + .5s); }
.quote--anim .kw::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease) calc(var(--n) * 55ms + .5s);
}
.quote--anim.is-in .kw::after { transform: scaleX(1); }
.quote--anim cite { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease) calc(var(--n) * 55ms + .9s), transform .8s var(--ease) calc(var(--n) * 55ms + .9s); }
.quote--anim.is-in cite { opacity: 1; transform: none; }
.quote cite {
  display: block; margin-top: 20px;
  font-family: var(--f-mono); font-style: normal; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--blue-deep);
}

/* ---------------------------------------------------------------- métiers */
.metiers { padding-top: clamp(44px, 8vh, 80px); padding-bottom: clamp(44px, 8vh, 80px); }
.head { max-width: 720px; margin-bottom: clamp(24px, 4vh, 36px); }
.head p:last-child { margin: 14px 0 0; color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 16px; background: var(--surface);
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 13, 16, .62), rgba(11, 13, 16, 0) 52%);
}
.card figcaption {
  position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px;
  display: grid; gap: 6px; color: #fff;
  font-family: var(--f-display); font-weight: 400; font-stretch: 125%;
  font-size: clamp(18px, 1.9vw, 24px); letter-spacing: .06em; text-transform: uppercase;
}
.card figcaption span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; color: var(--blue); }
.cards .card:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3) { transition-delay: .16s; }

.services {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line);
}
.services p { margin: 0; max-width: 560px; color: var(--ink-2); }
.services ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.services li {
  padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------------------------------------------------------------- confiance (bloc sombre) */
.trust { background: var(--ink); color: #fff; padding: clamp(44px, 8vh, 80px) 0; }
.trust__inner { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.trust .kicker { color: var(--blue); }
.trust__map { height: auto; width: clamp(110px, 10vw, 140px); margin-top: 28px; filter: invert(1); opacity: .9; }
.checks { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.checks li {
  counter-increment: c;
  display: grid; grid-template-columns: 44px 1fr 28px; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: clamp(15px, 1.4vw, 17px); line-height: 1.4;
}
.checks li:first-child { border-top: 1px solid rgba(255, 255, 255, .14); }
.checks li::before {
  content: counter(c, decimal-leading-zero);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .45);
}
.checks li::after {
  content: "✓"; justify-self: end;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--blue); color: var(--blue); font-size: 13px;
}

/* ---------------------------------------------------------------- contact */
.cta { padding-top: clamp(48px, 9vh, 88px); padding-bottom: clamp(48px, 9vh, 88px); text-align: center; }
.cta h2 { font-size: clamp(30px, 4.6vw, 56px); }
.cta p { margin: 14px 0 24px; color: var(--ink-2); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-block;
  padding: 16px 28px; border-radius: 100px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--blue-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(11, 13, 16, .2); }
.btn--ghost:hover { background: transparent; border-color: var(--blue-deep); color: var(--blue-deep); }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 26px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 26px);
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}

/* ---------------------------------------------------------------- apparitions */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .title__line { display: block; }
  .title__line:first-child { margin-right: 0; }
  .story__grid, .trust__inner { grid-template-columns: 1fr; }
  .timeline { position: static; }
  .me { grid-template-columns: minmax(0, 220px) 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .card { aspect-ratio: 3 / 4; border-radius: 12px; }
  .services { grid-template-columns: 1fr; }
  .trust__head { position: relative; padding-right: 96px; }
  .trust__map { position: absolute; right: 0; top: 0; width: 84px; margin: 0; }
}
@media (max-width: 560px) {
  /* Titre du haut : la 1re ligne peut passer à la ligne, taille adaptée à l'écran */
  .title { font-size: clamp(24px, 7.4vw, 40px); }
  .title__line:first-child > span { white-space: normal; }
  .pill { padding: 9px 14px; font-size: 10px; letter-spacing: .18em; }
  .logo__drop { width: 40px; height: 70px; margin-bottom: -38px; }
  .logo__word { font-size: 14px; }
  .logo__tag { display: none; }
  .hero__scroll { display: none; }
  .me { grid-template-columns: 1fr; }
  .me__photo { max-width: 260px; }
  .card figcaption { left: 8px; right: 6px; bottom: 9px; gap: 2px; font-size: 9px; letter-spacing: .02em; }
  .card figcaption span { font-size: 9px; }
  .checks li { grid-template-columns: 32px 1fr 26px; padding: 12px 0; }
}

/* ---------------------------------------------------------------- pied de page : lien légal */
.foot { align-items: center; }
.foot__legal {
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink-2); font-size: 12px; letter-spacing: .04em;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.foot__legal:hover { border-color: var(--blue-deep); color: var(--blue-deep); }

/* ---------------------------------------------------------------- page Mentions légales */
.legal-page .top { position: static; padding-bottom: 8px; }
.legal { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vh, 56px) var(--gutter) clamp(48px, 8vh, 88px); }
.legal h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
.legal .legal__updated { margin: 0 0 28px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.legal__toc a {
  display: inline-block; padding: 8px 14px; border-radius: 100px; background: var(--surface);
  font-size: 13px; text-decoration: none; color: var(--ink-2); transition: color .2s, background .2s;
}
.legal__toc a:hover { color: var(--blue-deep); background: rgba(143, 208, 236, .22); }
.legal section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.legal h2 { font-size: clamp(18px, 2.2vw, 22px); margin-bottom: 14px; }
.legal p:not(.kicker):not(.legal__updated), .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal p { margin: 0 0 .9em; }
.legal ul { margin: 0 0 .9em; padding-left: 1.2em; }
.legal dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 8px 20px; margin: 0; }
.legal dt { font-weight: 500; color: var(--ink); font-size: 14.5px; }
.legal dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.legal a { color: var(--blue-deep); text-underline-offset: 3px; }
/* Information à compléter avant la mise en ligne définitive */
.todo { padding: 1px 6px; border-radius: 5px; background: #fff3c4; color: #7a5b00; font-size: .92em; }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}
