/* Page « À propos de moi » : lecture simple dans l'identité du site (encre, crème, accent rouge-orangé).
   Toutes les classes sont préfixées ab- pour ne jamais hériter des règles génériques de style.css. */

.ab-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: #14141a;
  font-weight: 700;
  text-decoration: none;
}

.ab-skip:focus {
  top: 0.75rem;
}

.ab-main {
  min-height: 62vh;
  padding: clamp(2.5rem, 7vw, 5.5rem) 1.25rem clamp(3rem, 7vw, 5rem);
}

.ab {
  max-width: 46rem;
  margin: 0 auto;
  color: #14141a;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ab[hidden],
.ab-banner[hidden],
.ab-photo[hidden],
.ab-subtitle[hidden],
.ab-meta[hidden],
.ab-loading[hidden] {
  display: none;
}

.ab-banner {
  margin: 0 0 2rem;
  padding: 0.9rem 1.15rem;
  border-radius: 12px;
  background: #fde4de;
  color: #6e1c0e;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

.ab-head {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.ab-photo {
  flex: none;
  width: 144px;
  height: 144px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #efe6d3;
}

.ab-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ab-head__text {
  min-width: 0;
}

.ab-title {
  margin: 0;
  color: #14141a;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(2rem, 1.1rem + 3.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ab-subtitle {
  max-width: 34rem;
  margin: 0.9rem 0 0;
  color: #44444c;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}

.ab-body {
  color: #1f1f26;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.ab-body > * + * {
  margin-top: 1.15rem;
}

.ab-body h2 {
  margin-top: 2.6rem;
  color: #14141a;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ab-body h3 {
  margin-top: 2rem;
  color: #14141a;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}

.ab-body h2 + *,
.ab-body h3 + * {
  margin-top: 0.75rem;
}

.ab-body ul,
.ab-body ol {
  padding-left: 1.4rem;
}

.ab-body li + li {
  margin-top: 0.4rem;
}

.ab-body a {
  color: #a82a16;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

.ab-body a:hover {
  color: #14141a;
}

.ab-body a:focus-visible,
.ab-back a:focus-visible,
.ab-skip:focus-visible {
  outline: 3px solid #14141a;
  outline-offset: 3px;
  border-radius: 4px;
}

.ab-body blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  background: #efe6d3;
}

.ab-body blockquote p {
  margin: 0;
}

.ab-body code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: #efe6d3;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.9em;
}

.ab-body hr {
  height: 1px;
  margin: 2.25rem 0;
  border: 0;
  background: #d9cdb0;
}

.ab-meta {
  margin: 3rem 0 0;
  color: #5b5b64;
  font-size: 0.8125rem;
}

.ab-back {
  margin: 1rem 0 0;
}

.ab-back a {
  color: #14141a;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 10px;
  background: #ef4a34;
  color: #14141a !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}

.ab-btn:hover {
  background: #ff6049;
}

.ab-empty {
  padding-top: 2rem;
}

.ab-loading {
  max-width: 46rem;
  margin: 0 auto;
  color: #5b5b64;
  font-weight: 600;
}

@media (max-width: 560px) {
  .ab-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ab-photo {
    width: 112px;
    height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-btn {
    transition: none;
  }
}
