/* Page À propos — disposition alignée sur agencemage.fr/a-propos */
@import url("./mage-brand.css");

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about-page {
  background: var(--mage-white);
}

.about-page .container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.about-breadcrumb {
  padding-top: 20px;
}

.about-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--mage-muted);
}

.about-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: var(--mage-muted-light);
}

.about-breadcrumb a {
  color: var(--mage-green);
  text-decoration: none;
}

.about-breadcrumb a:hover {
  text-decoration: underline;
}

.about-intro {
  padding: 8px 0 28px;
}

.about-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--mage-ink);
  letter-spacing: -0.02em;
}

.about-intro-lead {
  margin: 0;
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--mage-muted);
}

.about-intro-lead a {
  color: var(--mage-green);
  font-weight: 500;
  text-decoration: none;
}

.about-intro-lead a:hover {
  text-decoration: underline;
}

.about-intro-lead strong {
  color: var(--mage-ink);
  font-weight: 600;
}

/* —— Emplacements images (à remplir) —— */
.about-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--mage-mint-light);
}

.about-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.about-page img,
.about-page video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.about-media__img:not([src]),
.about-media__img[src=""] {
  display: none;
}

.about-media:has(.about-media__img[src]:not([src=""])) .about-media__ph,
.about-media:has(picture) .about-media__ph,
.about-media--video:has(source[src]) .about-media__ph {
  display: none;
}

.about-media__video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: inherit;
  background: #1a1a1a;
  -webkit-user-drag: none;
}

/* Vidéo ambiance : boucle, sans barre de contrôles */
.about-media--video-loop .about-media__video {
  pointer-events: none;
}

.about-media__video::-webkit-media-controls {
  display: none !important;
}

.about-media__video::-webkit-media-controls-enclosure {
  display: none !important;
}

.about-media__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 20px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--mage-muted);
  border: 2px dashed var(--mage-border);
  border-radius: inherit;
  box-sizing: border-box;
}

.about-media--hero {
  aspect-ratio: unset;
  max-height: none;
  margin-top: 8px;
  overflow: hidden;
}

.about-media--hero picture {
  height: auto;
}

.about-media--hero .about-media__img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: contain;
  object-position: center;
}

.about-media--portrait {
  aspect-ratio: 3 / 4;
  min-height: 280px;
}

.about-media--landscape {
  aspect-ratio: 4 / 3;
  min-height: 260px;
}

.about-media--team {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  margin-top: 12px;
  display: block;
  background: var(--mage-white);
  box-shadow: 0 4px 18px rgba(54, 108, 93, 0.1);
}

.about-media--team .about-media__img,
.about-media--team picture {
  border-radius: inherit;
}

/* —— Hero —— */
.about-hero {
  padding: 20px 0 40px;
}

/* —— Blocs texte + image côte à côte —— */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px 48px;
  align-items: center;
  padding: 48px 0;
}

.about-split--tight-top {
  padding-top: 0;
}

.about-mission {
  padding: 0 0 48px;
}

.about-copy--wide {
  max-width: 720px;
}

.about-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mage-ink);
}

.about-copy p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mage-ink);
}

.about-copy ul {
  margin: 12px 0 16px;
  padding-left: 1.2rem;
}

.about-copy li {
  margin-bottom: 8px;
  line-height: 1.55;
}

/* —— Bandeau contact (fond mint) —— */
.about-contact-band {
  background: var(--mage-mint-light);
  padding: 56px 0;
}

.about-contact-band .about-split {
  padding: 0;
}

.about-contact-band h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 700;
}

.about-contact-band p {
  margin: 0 0 20px;
  line-height: 1.6;
  max-width: 42ch;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--mage-green);
}

.about-cta:hover {
  text-decoration: underline;
}

.about-cta-sub {
  margin: 28px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mage-ink);
}

/* —— Équipe fondatrice —— */
.about-team-band {
  background: #e8f4ef;
  padding: 56px 0 64px;
}

.about-team-band h2 {
  margin: 0 0 28px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--mage-ink);
  text-align: center;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

.about-member {
  display: flex;
  flex-direction: column;
}

.about-member h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

.about-member-role {
  margin: 0 0 14px;
  min-height: calc(0.88rem * 1.45 * 2);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--mage-ink);
}

.about-member-more {
  margin-top: 12px;
}

.about-member-more summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mage-green);
  list-style: none;
  user-select: none;
}

.about-member-more summary::-webkit-details-marker {
  display: none;
}

.about-member-more summary::after {
  content: " +";
  font-weight: 700;
}

.about-member-more[open] summary::after {
  content: " −";
}

.about-member-more summary:hover {
  text-decoration: underline;
}

.about-member-bio {
  margin: 10px 0 0 !important;
  font-size: 0.84rem !important;
  line-height: 1.5 !important;
  color: var(--mage-muted) !important;
}

.about-member--founder {
  position: relative;
}

@media (max-width: 960px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 600px) {
  .about-media--hero {
    border-radius: 20px;
  }

  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .about-split,
  .about-hero,
  .about-contact-band,
  .about-team-band {
    padding-block: 32px;
  }
}
