/* ============================================================
   POLYMATHÉON — PAGE À PROPOS
   Design éditorial moderne. Toutes les classes sont
   préfixées par "ab-" pour éviter les collisions.
   ============================================================ */

/* ---------- Layout global ---------- */
.ab-main {
  background: #fff;
}

/* ---------- Kicker réutilisable ---------- */
.ab-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;                            /* par défaut : pour fond SOMBRE */
}
.ab-kicker--dark  { color: var(--muted); }  /* pour fond CLAIR */
.ab-kicker--light { color: rgba(255,255,255,0.75); }

.ab-kicker__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4DA3FF;
  box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.2);
  flex-shrink: 0;
}
.ab-kicker--dark .ab-kicker__dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.15);
}

/* ============================================================
   1. HERO
   ============================================================ */
.ab-hero {
  position: relative;
  padding: 70px 0 90px;
  background: #0F172A;
  color: #fff;
  overflow: hidden;
}

.ab-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ab-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(11, 95, 255, 0.35), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(0, 180, 216, 0.28), transparent 55%);
}
.ab-hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.ab-hero__inner { position: relative; z-index: 1; }

.ab-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 50px;
}
.ab-breadcrumb a { color: rgba(255,255,255,0.7); transition: var(--t); }
.ab-breadcrumb a:hover { color: #fff; }
.ab-breadcrumb span:last-child { color: #fff; font-weight: 500; }

.ab-hero__content {
  max-width: 1000px;
  margin-bottom: 70px;
}
.ab-hero__content .ab-kicker { margin-bottom: 32px; }

.ab-hero__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.6rem, 7.5vw, 6.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
  margin: 0 0 34px;
  display: flex;
  flex-direction: column;
}
.ab-hero__title em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, #4DA3FF 0%, #00B4D8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.ab-hero__lead {
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* Meta bottom */
.ab-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.ab-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ab-hero__meta-num {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ab-hero__meta-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.ab-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: var(--t);
  white-space: nowrap;
  text-decoration: none;
}
.ab-hero__scroll i { font-size: 0.7rem; transition: var(--t); }
.ab-hero__scroll:hover {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}
.ab-hero__scroll:hover i { transform: translateY(3px); }

/* ============================================================
   2. MANIFESTE
   ============================================================ */
.ab-manifesto {
  padding: 110px 0;
  background: #fff;
}
.ab-manifesto__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.ab-manifesto .ab-kicker { margin-bottom: 40px; }

.ab-manifesto__text {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin: 0 0 40px;
}
.ab-manifesto__text em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.ab-manifesto__signature {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ab-manifesto__line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--muted);
}

/* ============================================================
   Section head réutilisable
   ============================================================
   Par défaut : texte SOMBRE (pour fond clair)
   --light    : texte CLAIR  (pour fond sombre)
   ============================================================ */
.ab-section-head {
  max-width: 720px;
  margin: 0 0 60px;
  color: var(--dark);
}
.ab-section-head .ab-kicker { margin-bottom: 26px; }

.ab-section-head__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: inherit;
  margin: 0 0 20px;
}
.ab-section-head__sub {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Variante pour fond SOMBRE (texte clair) */
.ab-section-head--light { color: #fff; }
.ab-section-head--light .ab-section-head__title { color: #fff; }
.ab-section-head--light .ab-section-head__sub   { color: rgba(255,255,255,0.65); }

/* ============================================================
   3. BENTO
   ============================================================ */
.ab-bento {
  padding: 110px 0;
  background: #F7F8FA;
}
.ab-bento__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(230px, auto);
  gap: 20px;
}

.ab-bento__card {
  position: relative;
  padding: 34px 32px;
  background: #fff;
  border: 1px solid #EAEBEF;
  border-radius: 24px;
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.ab-bento__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.12);
  border-color: transparent;
}

/* Layout bento */
.ab-bento__card--mission { grid-column: span 7; grid-row: span 2; }
.ab-bento__card--vision  { grid-column: span 5; }
.ab-bento__card--values  { grid-column: span 5; }
.ab-bento__card--visual  {
  grid-column: span 12;
  background: linear-gradient(115deg, #0F172A 0%, #1E3A8A 100%);
  color: #fff;
  border-color: transparent;
  min-height: 200px;
  padding: 40px 44px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.ab-bento__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.ab-bento__num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.ab-bento__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 5px 12px;
  background: #F4F5F8;
  border-radius: 100px;
}
.ab-bento__card--visual .ab-bento__tag {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}

.ab-bento__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--dark);
  margin: 0 0 16px;
}
.ab-bento__card--mission .ab-bento__title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.ab-bento__text {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}
.ab-bento__text em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--primary);
}

/* Valeurs */
.ab-values {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ab-values li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 6px 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #EEF0F4;
}
.ab-values li:last-child { border-bottom: none; padding-bottom: 0; }

.ab-values__mark {
  grid-row: span 2;
  align-self: start;
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(11,95,255,0.12);
}
.ab-values strong {
  font-family: 'Manrope', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
}
.ab-values li > span:last-child {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Carte visuelle */
.ab-bento__visual-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.ab-bento__visual-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #4DA3FF;
  margin-bottom: 14px;
}
.ab-bento__visual-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  color: #fff;
  margin: 0;
  letter-spacing: -0.015em;
}
.ab-bento__visual-orb {
  position: absolute;
  right: -80px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(77, 163, 255, 0.55), rgba(0, 180, 216, 0.1) 65%, transparent 75%);
  filter: blur(2px);
  z-index: 1;
}

/* ============================================================
   4. TIMELINE
   ============================================================ */
.ab-timeline-section {
  padding: 110px 0;
  background: #fff;
}

.ab-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.ab-timeline__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid #EAEBEF;
  align-items: flex-start;
}
.ab-timeline__item:last-child { border-bottom: 1px solid #EAEBEF; }

.ab-timeline__year {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--dark);
  line-height: 1;
  padding-top: 4px;
}

.ab-timeline__content {
  position: relative;
  padding-left: 40px;
}
.ab-timeline__marker {
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(11, 95, 255, 0.1);
}
.ab-timeline__content::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 32px;
  bottom: -34px;
  width: 1px;
  background: linear-gradient(180deg, #EAEBEF, transparent);
}
.ab-timeline__item:last-child .ab-timeline__content::before { display: none; }

.ab-timeline__content h3 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin: 0 0 12px;
}
.ab-timeline__content p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}

/* ============================================================
   5. NUMBERS
   ============================================================ */
.ab-numbers {
  padding: 110px 0;
  background: #0F172A;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ab-numbers::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
}

.ab-numbers__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.ab-num {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ab-num__value {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  background: linear-gradient(120deg, #ffffff 0%, #4DA3FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ab-num__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.ab-numbers__caption {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 60px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.ab-numbers__caption strong { color: #fff; font-weight: 600; }
.ab-numbers__caption-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

/* ============================================================
   6. MÉTHODE
   ============================================================ */
.ab-method {
  padding: 110px 0;
  background: #F7F8FA;
}
.ab-method__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #D8DCE3;
  border-bottom: 1px solid #D8DCE3;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}

.ab-step {
  position: relative;
  padding: 44px 32px;
  border-right: 1px solid #EAEBEF;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: var(--t);
}
.ab-step:last-child { border-right: none; }
.ab-step:hover {
  background: #FAFBFC;
}

.ab-step__num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--primary);
}
.ab-step__content h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin: 0 0 10px;
}
.ab-step__content p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   7. CTA
   ============================================================ */
.ab-cta {
  padding: 110px 0;
  background: #0B1220;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ab-cta::before {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 95, 255, 0.35), transparent 70%);
  pointer-events: none;
}
.ab-cta__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.ab-cta__text { max-width: 700px; }
.ab-cta__text .ab-kicker { margin-bottom: 26px; }

.ab-cta__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 18px;
}
.ab-cta__title em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, #4DA3FF, #00B4D8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ab-cta__sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.ab-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Boutons */
.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: var(--t);
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.ab-btn--primary {
  background: #fff;
  color: #0B1220;
}
.ab-btn--primary:hover {
  background: #4DA3FF;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(77, 163, 255, 0.6);
}
.ab-btn--primary i { transition: var(--t); }
.ab-btn--primary:hover i { transform: translateX(4px); }

.ab-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.ab-btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
}

/* ============================================================
   Reveal au scroll
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ab-hero { padding: 50px 0 70px; }
  .ab-hero__meta { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .ab-hero__scroll { grid-column: 1 / -1; justify-self: start; }

  .ab-bento__card--mission { grid-column: span 12; grid-row: auto; }
  .ab-bento__card--vision  { grid-column: span 6; }
  .ab-bento__card--values  { grid-column: span 6; }
  .ab-bento__card--visual  { grid-column: span 12; padding: 34px 30px; flex-direction: column; align-items: flex-start; gap: 20px; }

  .ab-numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }

  .ab-method__steps { grid-template-columns: repeat(2, 1fr); }
  .ab-step:nth-child(2) { border-right: none; }
  .ab-step:nth-child(3) { border-top: 1px solid #EAEBEF; }
  .ab-step:nth-child(4) { border-top: 1px solid #EAEBEF; }
}

@media (max-width: 768px) {
  .ab-hero { padding: 40px 0 60px; }
  .ab-hero__content { margin-bottom: 50px; }
  .ab-hero__title { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .ab-hero__meta { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; }
  .ab-hero__scroll { padding: 10px 16px; font-size: 0.72rem; }

  .ab-manifesto { padding: 70px 0; }

  .ab-bento { padding: 70px 0; }
  .ab-bento__grid { gap: 16px; }
  .ab-bento__card { padding: 26px 24px; border-radius: 18px; }
  .ab-bento__card--vision,
  .ab-bento__card--values { grid-column: span 12; }

  .ab-timeline-section { padding: 70px 0; }
  .ab-timeline__item { grid-template-columns: 1fr; gap: 20px; padding: 26px 0; }
  .ab-timeline__year { font-size: 1.4rem; }

  .ab-numbers { padding: 70px 0; }
  .ab-numbers__grid { grid-template-columns: 1fr; gap: 24px; }
  .ab-num__value { font-size: 2.4rem; }

  .ab-method { padding: 70px 0; }
  .ab-method__steps { grid-template-columns: 1fr; border-radius: 16px; }
  .ab-step { border-right: none; border-top: 1px solid #EAEBEF; padding: 30px 24px; }
  .ab-step:first-child { border-top: none; }
  .ab-step:nth-child(3) { border-top: 1px solid #EAEBEF; }

  .ab-cta { padding: 70px 0; }
  .ab-cta__inner { align-items: flex-start; gap: 34px; }
  .ab-cta__actions { width: 100%; }
  .ab-cta__actions .ab-btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .ab-cta__actions { flex-direction: column; }
  .ab-cta__actions .ab-btn { width: 100%; }
}