/* About Us — layout uniquement ; fond = thème homepage (body) ; typos = theme-base + Tailwind */

.about-us-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  box-sizing: border-box;
}

.about-us-page *,
.about-us-page *::before,
.about-us-page *::after {
  box-sizing: border-box;
}

/* Masque horizontal : les tooltips sidebar (absolute + left-full) débordent à droite.
   Sans overflow-x: hidden, le navigateur ouvre une scrollbar horizontale → window resize
   → le script sidebar recalcule sa position → le hero saute au rollover. */
html:has(.about-us-page),
body:has(.about-us-page) {
  overflow-x: hidden;
}

.about-us-page .au-hero-media,
.about-us-page .au-hero-shell {
  overflow-anchor: none;
}

/* Bloc hero : fond thème + diaporama en tête (carte autonome) */
.about-us-page .au-hero-shell {
  background-color: var(--theme-bg-default);
  border-radius: 16px;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .about-us-page .au-hero-shell {
    border-radius: 20px;
  }
}

/* Diaporama : pleine largeur du shell, angles haut = coins du shell */
.about-us-page .au-hero-shell .au-hero-media {
  border-radius: 0;
}

.about-us-page .au-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  z-index: 0;
}

/* Bandeau diaporama About : même ratio que les JPG (2376×594 ≈ 4:1) */
.about-us-page .au-hero-media--diaporama {
  width: 100%;
  aspect-ratio: 2376 / 594;
  height: auto;
  min-height: 96px;
}

@media (min-width: 1024px) {
  .about-us-page .au-hero-media {
    border-radius: 20px;
  }
}

/* Corps de texte About : plus compact que l’overlay operational */
.about-us-page .op-context-text-block {
  font-size: 17px;
  line-height: 1.55;
  gap: 1rem;
}

.about-us-page .op-context-text-block--about {
  font-size: 16px;
  line-height: 1.52;
}

.about-us-page .au-belief-item .op-context-text-block {
  font-size: 15px;
  line-height: 1.5;
  gap: 0.5rem;
}

/* Carrousel About : fondu + dots type LinkedIn (hero + fablab) */
.about-us-page .au-carousel-slides {
  position: absolute;
  inset: 0;
}

.about-us-page .au-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.65s ease-in-out;
  pointer-events: none;
}

.about-us-page .au-carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.about-us-page .au-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-us-page .au-carousel-dots-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 10px 12px 12px;
  pointer-events: none;
}

.about-us-page .au-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
}

.about-us-page .au-carousel-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.35s ease, background 0.25s ease, transform 0.2s ease;
}

.about-us-page .au-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.about-us-page .au-carousel-dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: #fff;
}

.about-us-page .au-carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Bloc Current project (reprise home) */
.about-us-page .au-cp-cell {
  background-color: #f5f0e7;
  border-radius: 10px;
}

@media (min-width: 1024px) {
  .about-us-page .au-cp-cell {
    border-radius: 0;
  }
  .about-us-page .au-cp-cell:first-child {
    border-radius: 10px 0 0 10px;
  }
  .about-us-page .au-cp-cell:last-child {
    border-radius: 0 10px 10px 0;
  }
}

.about-us-page .au-hero-shell .au-hero {
  padding: 1.5rem 1.25rem 2rem;
  background-color: #f5f0e7;
  border: none;
  box-shadow: none;
  outline: none;
}

@media (min-width: 640px) {
  .about-us-page .au-hero-shell .au-hero {
    padding: 1.75rem 1.5rem 2.25rem;
  }
}

@media (min-width: 1024px) {
  .about-us-page .au-hero-shell .au-hero {
    padding: 2rem 2rem 2.5rem;
  }
}

.about-us-page .au-hero {
  padding: 48px 0 64px;
}

@media (min-width: 1024px) {
  .about-us-page .au-hero {
    padding: 56px 0 80px;
  }
}

.about-us-page .au-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-gray-light);
  border-bottom: 1px solid var(--color-gray-light);
}

.about-us-page .au-hero-col {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--color-gray-light);
}

.about-us-page .au-hero-col:last-child {
  border-right: none;
  padding-right: 0;
}

.about-us-page .au-hero-col:not(:first-child) {
  padding-left: 24px;
}

/* Hero : pas de lignes de séparation autour de la grille (3 colonnes) */
.about-us-page .au-hero-shell .au-hero .au-hero-grid {
  border: none;
}

.about-us-page .au-hero-shell .au-hero .au-hero-col {
  border-right: none;
  border-bottom: none;
}

/* Section Fablab (fin de page) */
.about-us-page .au-section--pre-fablab {
  border-bottom: none;
}

.about-us-page .au-section--fablab {
  border-top: 1px solid var(--color-gray-light);
  padding-bottom: 64px;
}

/* Section Team (contenu repris du bloc maquette, styles alignés sur les au-section) */
.about-us-page .au-team-founder-card {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 40px 52px;
  align-items: start;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: none;
  max-width: 900px;
}

.about-us-page .au-team-founder-photo-wrap {
  position: relative;
}

.about-us-page .au-team-founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 12px;
  filter: grayscale(12%);
}

.about-us-page .au-team-founder-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 4px;
  min-width: 0;
}

.about-us-page .au-founder-contact--team {
  border-top: 0 !important;
  margin-top: 1.25rem;
  padding-top: 0;
}

.about-us-page .au-team-sme {
  margin-top: 8px;
  padding-top: 0px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: clip;
  background: none;
  background-color: unset;
  border: none;
  border-top: none;
  border-image: none;
}

.about-us-page .au-team-sme-stat-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 0;
}

.about-us-page .au-sme-carousel-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  margin-left: -4px;
  margin-right: -4px;
  padding: 16px 0;
  max-width: 100%;
  width: 100%;
  background: none;
  background-color: unset;
}

@media (min-width: 1024px) {
  .about-us-page .au-sme-carousel-wrap {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Masques : même fond que la page (index : --bg #F7F5F2) */
.about-us-page .au-sme-carousel-wrap::before,
.about-us-page .au-sme-carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
  background-color: var(--bg, #f7f5f2);
}

.about-us-page .au-sme-carousel-wrap::before {
  left: 0;
  mask-image: linear-gradient(to right, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 100%);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.about-us-page .au-sme-carousel-wrap::after {
  right: 0;
  mask-image: linear-gradient(to left, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 100%);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

@keyframes au-sme-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.about-us-page .au-sme-carousel-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 50px;
  animation: au-sme-marquee 28s linear infinite;
}

.about-us-page .au-sme-carousel-track:hover {
  animation-play-state: paused;
}

.about-us-page .au-sme-item {
  display: inline-flex;
  align-items: center;
  gap: 16px; /* ~12px +30% */
  padding: 0;
  margin-right: 0;
  white-space: nowrap;
  flex-shrink: 0;
  color: #525252;
  transition: opacity 0.2s ease;
}

.about-us-page .au-sme-item:hover {
  opacity: 0.65;
}

.about-us-page .au-sme-icon {
  display: flex;
  flex-shrink: 0;
  color: #737373;
}

.about-us-page .au-sme-icon svg {
  width: 23.4px;
  height: 23.4px;
  display: block;
}

/* +30% vs text-xs (~12px) → 15.6px */
.about-us-page .au-sme-label {
  font-size: 15.6px;
  line-height: 1.2;
}

.about-us-page .au-partner-logo {
  filter: grayscale(100%);
}

.about-us-page .au-partner-logo--reduced {
  width: 56px;
  height: auto;
}

@media (max-width: 768px) {
  .about-us-page .au-team-founder-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 40px;
    margin-bottom: 32px;
  }

  .about-us-page .au-team-founder-photo {
    aspect-ratio: 4 / 3;
    max-height: none;
    object-position: center 24%;
  }

  .about-us-page .au-team-sme-stat-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.about-us-page .au-fablab-carousel {
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .about-us-page .au-fablab-carousel {
    margin-top: 2.5rem;
  }
}

.about-us-page .au-fablab-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
  background: #0f172a;
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

@media (min-width: 1024px) {
  .about-us-page .au-fablab-media {
    border-radius: 20px;
    /* Hauteur carrousel Fablab : plus compact sur desktop (~380px au lieu du 16:9 ~555px) */
    height: 380px;
    aspect-ratio: auto;
    min-height: 380px;
  }
}

.about-us-page .au-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--color-gray-light);
  display: grid;
  /* minmax(0,1fr) : la colonne contenu ne prend pas la largeur du marquee (max-content) */
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px 64px;
}

.about-us-page .au-section-body {
  min-width: 0;
  max-width: 100%;
}

.about-us-page .au-section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #525252;
  font-weight: 600;
  padding-top: 6px;
  position: sticky;
  top: 48px;
  height: fit-content;
  font-family: "Inter", sans-serif;
}

.about-us-page .au-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #f5f0e7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .about-us-page .au-method-grid {
    margin-top: 3rem;
  }
}

.about-us-page .au-section-lead + .au-method-grid {
  margin-top: 2.75rem;
}

@media (min-width: 1024px) {
  .about-us-page .au-section-lead + .au-method-grid {
    margin-top: 3.25rem;
  }
}

.about-us-page .au-method-item {
  padding: 32px 28px;
  background-color: #f5f0e7;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

.about-us-page .au-method-item:nth-child(2n) {
  border-right: none;
}

.about-us-page .au-method-item:nth-child(n + 3) {
  border-bottom: none;
}

.about-us-page .au-beliefs {
  margin-top: 48px;
  border-top: 1px solid var(--color-gray-light);
}

.about-us-page .au-belief-item {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-gray-light);
  gap: 32px 48px;
}

.about-us-page .au-belief-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #737373;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.about-us-page .au-founder-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0 80px;
  max-width: 900px;
  border: none;
  background: transparent;
}

.about-us-page .au-founder-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.about-us-page .au-founder-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-gray-light);
}

@media (max-width: 1024px) {
  .about-us-page .au-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 64px 0;
  }

  .about-us-page .au-hero {
    padding: 32px 0 48px;
  }

  .about-us-page .au-hero-grid {
    grid-template-columns: 1fr;
  }

  .about-us-page .au-hero-col {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-light);
    padding: 24px 0;
    padding-left: 0 !important;
  }

  .about-us-page .au-hero-shell .au-hero .au-hero-col {
    border-bottom: none;
  }

  .about-us-page .au-hero-col:last-child {
    border-bottom: none;
  }

  .about-us-page .au-section-label {
    position: static;
  }

}

/* Mobile : titres sections plus grands, bloc Team resserré, bio fondateur pleine largeur écran */
@media (max-width: 1023px) {
  .about-us-page section.au-section .au-section-body > h2,
  .about-us-page #au-team-heading {
    font-size: clamp(1.95rem, 8.5vw, 2.75rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.035em;
  }

  .about-us-page .au-section--team .au-team-statement {
    margin-bottom: 0.75rem !important;
    max-width: 100%;
  }

  .about-us-page .au-section--team .au-team-founder-card {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .about-us-page .au-team-founder-info {
    width: 100%;
    max-width: none;
  }

  .about-us-page .au-founder-bio {
    width: 100%;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .about-us-page .au-method-grid {
    grid-template-columns: 1fr;
  }

  .about-us-page .au-method-item {
    border-right: none;
  }

  .about-us-page .au-method-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .about-us-page .au-founder-card {
    flex-direction: column;
    gap: 28px;
    padding-bottom: 48px;
  }

  .about-us-page .au-belief-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
