/* ============================================================
   MINDSENCE — feuille de style principale
   Palette dérivée du logo (M turquoise).
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --brand:        #0E96A8;
  --brand-light:  #4FD1C5;
  --brand-dark:   #086C7B;
  --brand-wash:   #E8F6F8;

  --ink:          #0A1B24;
  --ink-2:        #2E4A57;
  --muted:        #64808E;

  --bg:           #FFFFFF;
  --bg-soft:      #F4F9FA;
  --line:         #E1EAEE;
  --line-strong:  #C9D9DF;

  --radius:       14px;
  --radius-lg:    22px;

  --shadow-sm:    0 1px 2px rgba(10, 27, 36, .06), 0 2px 8px rgba(10, 27, 36, .04);
  --shadow-md:    0 4px 12px rgba(10, 27, 36, .07), 0 12px 32px rgba(10, 27, 36, .06);
  --shadow-lg:    0 18px 50px rgba(8, 108, 123, .16);

  --maxw:         1140px;
  --gutter:       clamp(20px, 5vw, 40px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --header-h: 72px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 2.9vw, 3.65rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem); letter-spacing: -.028em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(64px, 9vw, 112px); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { font-size: 1.075rem; color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .775rem;
  font-weight: 620;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ---------- 4. Boutons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { background: linear-gradient(135deg, var(--brand-light) -20%, var(--brand) 55%, var(--brand-dark) 130%); box-shadow: 0 6px 18px rgba(14, 150, 168, .28); }
.btn--ghost   { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-wash); box-shadow: none; }
.btn--light   { background: #fff; color: var(--brand-dark); }
.btn--sm      { padding: 10px 18px; font-size: .9rem; }
.btn--block   { width: 100%; }

.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- 5. En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 16px rgba(10, 27, 36, .05); }

.header .wrap { display: flex; align-items: center; gap: 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand span sup {
  font-size: .5em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 2px;
  vertical-align: super;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 520;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.is-active { color: var(--brand-dark); font-weight: 620; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-soft);
}
.lang a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 640;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
}
.lang a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  position: relative;
  width: 17px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: background-color .2s ease;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute; left: 0;
  width: 17px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease;
}
.burger span::before { top: -5.5px; }
.burger span::after  { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 6. Héros ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 112px);
  background:
    radial-gradient(58% 70% at 12% 0%, rgba(79, 209, 197, .17) 0%, transparent 62%),
    radial-gradient(48% 60% at 92% 18%, rgba(14, 150, 168, .13) 0%, transparent 60%),
    linear-gradient(180deg, #FBFEFE 0%, #FFFFFF 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 150, 168, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 150, 168, .055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, #000 0%, transparent 78%);
          mask-image: radial-gradient(75% 65% at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 5vw, 68px);
  align-items: center;
}
.hero h1 { margin-bottom: .42em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand) 10%, var(--brand-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1.06rem, .98rem + .35vw, 1.22rem);
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: .9rem;
  color: var(--muted);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* Carte « référentiels » du héros */
.spec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-lg);
}
.spec-card h2 {
  font-size: .78rem;
  font-weight: 640;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.spec-intro {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.spec-list { display: grid; gap: 2px; }
.spec-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list strong { color: var(--ink); font-weight: 620; font-size: .97rem; }
.spec-list span { font-size: .82rem; color: var(--muted); text-align: right; }

.spec-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .85rem;
  color: var(--muted);
}
.spec-foot .dot {
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: #35C48A;
  box-shadow: 0 0 0 4px rgba(53, 196, 138, .16);
}

/* ---------- 7. Bandeau de confiance ---------- */
.trust { padding-block: 30px; border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.trust-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.client-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.22rem;
  font-weight: 660;
  letter-spacing: -.02em;
  color: var(--ink);
  filter: grayscale(1);
  opacity: .78;
  transition: opacity .2s ease, filter .2s ease;
}
.client-logo:hover { opacity: 1; filter: grayscale(0); }
.client-logo img { height: 26px; width: auto; }

/* ---------- 8. Services ---------- */
/* Quatre expertises : une grille 2 × 2 reste plus lisible qu'une rangée de trois
   suivie d'une carte isolée. */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--brand-light), var(--brand));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  margin-bottom: 20px;
  background: linear-gradient(140deg, var(--brand-wash), #F2FBFB);
  border: 1px solid rgba(14, 150, 168, .16);
  color: var(--brand-dark);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .55em; }
.card > p { font-size: .96rem; color: var(--muted); margin-bottom: 1.1em; }

.card-list { display: grid; gap: 9px; font-size: .93rem; }
.card-list li { position: relative; padding-left: 21px; color: var(--ink-2); }
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: linear-gradient(140deg, var(--brand-light), var(--brand));
}

/* ---------- 9. Approche ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); counter-increment: step; }
.step::before {
  content: "0" counter(step);
  position: absolute; top: -2px; left: 0;
  padding-top: 26px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand);
}
.step::after {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
}
.step h3 { margin-top: 34px; margin-bottom: .45em; }
.step p { font-size: .95rem; color: var(--muted); margin-bottom: 0; }

/* ---------- 10. À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--brand-wash), #EDF7F8 55%, #E3F1F3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.portrait-placeholder svg { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--brand); opacity: .55; }

.about-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.about-name h3 { font-size: 1.35rem; margin: 0; }
.about-name span { font-size: .93rem; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.facts dt { font-size: 1.55rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.facts dd { margin: 5px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- 11. Références ---------- */
.ref-list { display: grid; gap: 20px; }

.ref-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 4vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.ref-brand { display: flex; flex-direction: column; gap: 18px; }
.ref-logo {
  height: 96px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
}
.ref-logo img { max-height: 56px; width: auto; }
.ref-logo .ref-name { font-size: 1.5rem; font-weight: 680; letter-spacing: -.03em; color: var(--ink); }
.ref-logo small { display: block; font-size: .72rem; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }
.ref-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .78rem;
  font-weight: 560;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-dark);
  border: 1px solid rgba(14, 150, 168, .18);
}
.ref-body h3 { margin-bottom: .6em; }
.ref-body p { color: var(--muted); font-size: .98rem; }
/* Note de confidentialité commune aux références : elle vaut pour toutes
   les missions, elle est donc placée sous la liste et non dans une carte. */
.section-note {
  max-width: 82ch;
  margin: 26px 0 0;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- 12. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}
.contact-info li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info li:first-child { padding-top: 0; }
.contact-info li:last-child { border-bottom: 0; }
.contact-info svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 3px; }
.contact-info strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 620; }
.contact-info span, .contact-info a { font-size: .93rem; color: var(--muted); }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--brand-dark); text-decoration: underline; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--shadow-md);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 150, 168, .13);
}
.field input::placeholder, .field textarea::placeholder { color: #9DB2BC; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364808E' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
}

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 20px; }
.consent input { width: 17px; height: 17px; flex: none; margin-top: 3px; accent-color: var(--brand); }
.consent label { font-size: .84rem; color: var(--muted); line-height: 1.5; font-weight: 400; }

/* Anti-spam : champ leurre, invisible pour les humains */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note { font-size: .81rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 11px;
  font-size: .9rem;
  border: 1px solid;
}
.form-status.is-visible { display: block; }
.form-status.is-ok    { background: #ECFAF3; border-color: #B7E8CF; color: #14663F; }
.form-status.is-error { background: #FEF1F1; border-color: #F5C9C9; color: #8E2020; }
.btn[data-loading="true"] { opacity: .68; pointer-events: none; }

/* ---------- 13. Pied de page ---------- */
.footer {
  background: #071A22;
  color: #93AEB9;
  padding-block: clamp(48px, 6vw, 72px) 28px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand:hover { color: #fff; }
.footer-about { max-width: 40ch; color: #8AA6B1; margin-bottom: 0; font-size: .91rem; }
.footer h4 {
  color: #fff;
  font-size: .78rem;
  font-weight: 620;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer nav a, .footer address a {
  display: block;
  color: #93AEB9;
  text-decoration: none;
  padding: 5px 0;
}
.footer nav a:hover, .footer address a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.75; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  font-size: .84rem;
  color: #6D8894;
}
.footer-bottom a { color: #6D8894; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- 14. Pages de contenu (mentions légales, 404) ---------- */
.page-hero {
  padding-block: clamp(48px, 7vw, 84px) clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, #F7FCFC, #fff);
  border-bottom: 1px solid var(--line);
}
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.42rem; margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 1.8em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0 0 1.4em; }
.prose dt { font-weight: 620; color: var(--ink); }
.prose dd { margin: 0; }

.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }

/* ---------- 14 bis. Marqueur « à compléter » ----------
   Surligne le texte que tu dois encore rédiger.
   Retire la classe .todo dans le HTML une fois le texte écrit. */
.todo {
  background: #FFF8E1;
  box-shadow: inset 3px 0 0 #E8B10A;
  padding: 1px 8px;
  border-radius: 0 6px 6px 0;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

/* ---------- 15. Animations ---------- */
/* L'état masqué n'est appliqué que si JavaScript est disponible :
   sans JS, le contenu reste visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

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

/* ---------- 16. Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid, .ref-card { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .header-actions .btn--primary { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose dl { grid-template-columns: 1fr; gap: 2px 0; }
  .prose dd { margin-bottom: 10px; }
}

/* ---------- 17. Impression ---------- */
@media print {
  .header, .footer, .form, .hero-cta, .burger { display: none !important; }
  body { font-size: 11pt; color: #000; }
  section { padding-block: 18px; }
}
