/* ==========================================================================
   Underscore Labs — feuille de style unique
   1. Fontes  2. Variables  3. Reset  4. Primitives  5. Sections  6. Motion
   ========================================================================== */

/* ---- 1. Fontes auto-hébergées (variable fonts) ---- */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- 2. Variables ---- */

:root {
  /* Palette */
  --bg: #ffffff;
  --bg-alt: #f2f2f4;
  --ink: #0d0d0f;
  --muted: #55555c;
  --faint: #75757d; /* éclairci depuis #A0A0A6 de la maquette pour le contraste AA */
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --border-light: #ececef;
  --dot: #dcdce0;
  --error: #b3423a;
  --success: #2f7d4f;
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-bg-solid: rgba(255, 255, 255, 0.98);
  --focus-ring: rgba(13, 13, 15, 0.08);
  color-scheme: light;

  /* Typographie */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Dimensions */
  --container: 1160px;
  --gutter: 24px;
  --header-h: 68px;
  --radius: 10px;
  --radius-sm: 6px;
  --section-pad: clamp(70px, 10vh, 110px);

  /* Mouvement */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 220ms;
  --speed-slow: 300ms;
}

/* ---- 3. Reset léger ---- */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* L'attribut hidden doit gagner même sur les display explicites (.form, etc.) */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

/* ---- Accessibilité : focus clavier ---- */

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
}

/* ---- 4. Primitives ---- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border-light);
  scroll-margin-top: var(--header-h);
}

.section--alt {
  background: var(--bg-alt);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 20px;
  text-wrap: balance;
}

.section-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* Boutons */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    transform var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out);
}

.btn--primary {
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border: none;
  padding: 16px 28px;
}

.btn--primary:hover {
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(13, 13, 15, 0.3);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(13, 13, 15, 0.2);
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 15px 28px;
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--ghost:active {
  transform: scale(0.98);
}

/* Cartes */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out);
}

.card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 13, 15, 0.08);
}

/* ---- 5. Sections ---- */

/* --- Header --- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--speed) var(--ease-out);
}

.header.is-scrolled {
  box-shadow: 0 2px 18px rgba(13, 13, 15, 0.06);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  flex: none;
  display: flex;
  align-items: center;
}

.logo img {
  transition: opacity var(--speed) var(--ease-out);
}

.logo:hover img {
  opacity: 0.75;
}

.nav--desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  transition: color var(--speed) var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

/* Soulignement animé — le trait est un underscore qui glisse */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--speed) var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.btn--nav {
  font-size: 13px;
  padding: 10px 18px;
}

.btn--nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 13, 15, 0.25);
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color var(--speed) var(--ease-out);
}

.burger:hover {
  border-color: var(--ink);
}

.nav--mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 20px;
  border-top: 1px solid var(--border);
  background: var(--header-bg-solid);
}

.nav--mobile__link {
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 12px 4px;
  transition: color var(--speed) var(--ease-out);
}

.nav--mobile__link:hover {
  color: var(--muted);
}

.nav--mobile__cta {
  font-size: 14px;
  padding: 13px 18px;
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .nav--desktop {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav--mobile:not([hidden]) {
    display: flex;
  }
}

/* --- Hero --- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(140px, 20vh, 200px) 0 clamp(90px, 14vh, 150px);
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 820px;
  text-wrap: balance;
}

/* Curseur terminal clignotant, signature de l'identité underscore */
.hero__cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.09em;
  background: var(--ink);
  margin-left: 0.1em;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero__lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin: 28px 0 40px;
}

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

/* Animation d'entrée au chargement (CSS pur, indépendante du scroll) */
.hero__enter {
  animation: hero-enter 550ms var(--ease-out) both;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Services --- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  padding: 28px;
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card__text {
  font-size: 14.5px;
  color: var(--muted);
}

/* --- Expertise --- */

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stack__item {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: default;
  transition:
    border-color var(--speed) var(--ease-out),
    background var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out);
}

.stack__item:hover {
  border-color: var(--ink);
  background: var(--bg);
  transform: translateY(-2px);
}

/* --- Méthode --- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  border-top: 2px solid var(--border-strong);
  padding: 24px 4px 0;
  transition: border-color var(--speed-slow) var(--ease-out);
}

.step--first,
.step:hover {
  border-top-color: var(--ink);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 10px;
}

.step__text {
  font-size: 14.5px;
  color: var(--muted);
}

/* --- Projets --- */

.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.projet-card {
  overflow: hidden;
}

.projet-card__media {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
}

.projet-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--speed-slow) var(--ease-out);
}

.projet-card:hover .projet-card__media img {
  transform: scale(1.03);
}

.projet-card__body {
  padding: 24px;
}

.projet-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.projet-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 14px;
}

.projet-card__result {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

/* --- Contact --- */

.contact__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
}

.contact__intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 24px;
}

.contact__email {
  font-family: var(--font-mono);
  font-size: 14px;
}

.contact__email a {
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color var(--speed) var(--ease-out);
}

.contact__email a:hover {
  border-color: var(--ink);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

/* La carte du formulaire ne « lévite » pas : seul le hover des cartes
   cliquables le fait. On neutralise l'effet hérité de .card. */
.form:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.form__input {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition:
    border-color var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out);
}

textarea.form__input {
  resize: vertical;
  min-height: 120px;
}

.form__input:hover {
  border-color: var(--muted);
}

.form__input:focus,
.form__input:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form__field.has-error .form__input {
  border-color: var(--error);
}

.form__field.has-error .form__input:focus {
  box-shadow: 0 0 0 3px rgba(179, 66, 58, 0.12);
}

.form__field.has-error .form__label {
  color: var(--error);
}

.form__field.is-valid .form__input {
  border-color: var(--success);
}

.form__error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--error);
  min-height: 0;
}

.form__error:empty {
  display: none;
}

.form__submit {
  padding: 15px;
  text-align: center;
}

.form__status {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.form__status:empty {
  display: none;
}

.form__rgpd {
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
}

.form__rgpd a,
.form__rgpd-link {
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--speed) var(--ease-out), border-color var(--speed) var(--ease-out);
}

.form__rgpd-link {
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.form__rgpd a:hover,
.form__rgpd-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.form__recaptcha-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  text-align: center;
}

.form__recaptcha-note a {
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
}

/* Badge flottant reCAPTCHA masqué — la mention obligatoire de Google est
   affichée sous le bouton d'envoi (.form__recaptcha-note) */
.grecaptcha-badge {
  visibility: hidden !important;
}

.form-success {
  border-color: var(--ink);
  padding: 40px 28px;
  text-align: center;
}

.form-success:hover {
  transform: none;
  box-shadow: none;
}

.form-success__title {
  font-family: var(--font-mono);
  font-size: 15px;
  margin-bottom: 12px;
}

.form-success__text {
  font-size: 15px;
  color: var(--muted);
}

/* --- Footer --- */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo img {
  transition: opacity var(--speed) var(--ease-out);
}

.footer__logo:hover img {
  opacity: 0.75;
}

/* .footer__link sert aussi au <button> paramètres_cookies : reset natif */
button.footer__link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: color var(--speed) var(--ease-out);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--ink);
}

.footer__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--speed) var(--ease-out);
}

.footer__link:hover::after,
.footer__link:focus-visible::after {
  transform: scaleX(1);
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

.footer__legal-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color var(--speed) var(--ease-out);
}

.footer__legal-btn:hover,
.footer__legal-btn:focus-visible {
  color: var(--ink);
}

.footer__legal-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--speed) var(--ease-out);
}

.footer__legal-btn:hover::after,
.footer__legal-btn:focus-visible::after {
  transform: scaleX(1);
}

/* --- Popup mentions légales --- */

.mentions {
  width: min(640px, calc(100% - 2 * var(--gutter)));
  max-height: min(80vh, 720px);
  margin: auto;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(13, 13, 15, 0.18);
  color: var(--ink);
  /* le UA donne overflow:auto au <dialog> : on le coupe, le défilement
     est géré uniquement par .mentions__inner (sinon double scrollbar) */
  overflow: hidden;
}

.mentions::backdrop {
  background: rgba(13, 13, 15, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.mentions[open] {
  /* flex (plutôt que le block UA) : .mentions__inner est contraint à la
     hauteur exacte du dialog, bordures comprises — un seul défilement.
     Ne surtout pas déplacer ce display sur .mentions sans [open] : il
     écraserait le display:none du dialog fermé. */
  display: flex;
  flex-direction: column;
  animation: mentions-enter 250ms var(--ease-out);
}

@keyframes mentions-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mentions__inner {
  padding: 28px 32px 36px;
  overflow-y: auto;
  min-height: 0;
}

.mentions__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mentions__title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.mentions__close {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color var(--speed) var(--ease-out);
}

.mentions__close:hover {
  border-color: var(--ink);
}

.mentions__section {
  margin-bottom: 22px;
}

.mentions__section:last-child {
  margin-bottom: 0;
}

.mentions__subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 8px;
}

.mentions__section p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 10px;
}

.mentions__section p:last-child {
  margin-bottom: 0;
}

.mentions__section strong {
  color: var(--ink);
}

.mentions__section a {
  color: var(--ink);
  border-bottom: 1px solid var(--border-strong);
  transition: border-color var(--speed) var(--ease-out);
}

.mentions__section a:hover {
  border-color: var(--ink);
}

@media (max-width: 560px) {
  .mentions__inner {
    padding: 22px 20px 28px;
  }
}

.mentions__manage {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink);
  border-bottom: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color var(--speed) var(--ease-out);
}

.mentions__manage:hover {
  border-color: var(--ink);
}

/* --- Bannière cookies (CMP, Consent Mode v2) --- */

.cookies {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 150;
  width: min(400px, calc(100% - 40px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(13, 13, 15, 0.16);
  padding: 20px;
  animation: cookies-enter 300ms var(--ease-out) both;
}

@keyframes cookies-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cookies__title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cookies__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.cookies__more {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color var(--speed) var(--ease-out);
}

.cookies__more:hover {
  border-color: var(--ink);
}

.cookies__actions {
  display: flex;
  gap: 10px;
}

.cookies__btn {
  flex: 1;
  font-size: 13px;
  padding: 11px 16px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .cookies {
    animation: none;
  }
}

/* ---- 6. Apparition au scroll + reduced motion ----
   La classe .reveal ne masque le contenu que si JS est actif (html.js). */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 450ms var(--ease-out),
    transform 450ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__enter,
  .hero__cursor {
    animation: none;
  }

  .projet-card__media img {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
