/* ============================================================
   ORGIRO — Page À propos
   Refonte basée sur les composants et rythmes visuels du site.
   ============================================================ */

.about-page {
  width: min(1100px, calc(100% - 3rem));
  margin: 1.5rem auto 2.5rem;
  color: var(--texte-principal);
}

.about-page section {
  max-width: none;
  margin: 0;
}

/* ---------- Hero ---------- */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4.5vw, 3.4rem) clamp(1.4rem, 4vw, 3.2rem);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.07), rgba(109, 40, 217, 0.07)),
    var(--fond-clair);
  text-align: center;
}

.about-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 130px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--bleu-principal), var(--violet-accent));
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.about-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--violet-accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.about-hero h1 {
  margin: 0 auto 0.8rem;
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--bleu-principal), var(--violet-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero-lead {
  max-width: 660px;
  margin: 0 auto;
  color: var(--texte-secondaire);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.6;
}

.about-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.about-actions .btn {
  margin: 0;
}

/* ---------- Section commune ---------- */
.about-story,
.about-how,
.about-contact {
  margin-top: clamp(2.2rem, 5vw, 3.6rem) !important;
}

.about-section-heading {
  max-width: 680px;
  margin-bottom: 1.4rem;
}

.about-section-heading--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about-section-heading h2 {
  margin: 0;
  color: var(--bleu-principal);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: inherit;
}

/* ---------- Objectif + vision : contenu ouvert, pas de cartes ---------- */
.about-story {
  padding: 0 clamp(0rem, 2vw, 1rem);
}

.about-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3.5rem);
}

.about-story-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding-top: 0.9rem;
  border-top: 2px solid rgba(30, 58, 138, 0.12);
}

.about-story-item:nth-child(2) {
  border-top-color: rgba(109, 40, 217, 0.16);
}

.about-story-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(30, 58, 138, 0.10);
}

.about-story-icon--violet {
  background: rgba(109, 40, 217, 0.10);
}

.about-story-icon .emoji-img {
  width: 23px;
  height: 23px;
  vertical-align: middle;
}

.about-story-item h3 {
  margin: 0 0 0.3rem;
  color: var(--bleu-principal);
  font-size: 1.12rem;
  font-weight: 800;
}

.about-story-item:nth-child(2) h3 {
  color: var(--violet-accent);
}

.about-story-item p {
  margin: 0;
  color: var(--texte-secondaire);
  line-height: 1.55;
}

/* ---------- Fonctionnement ---------- */
.about-how {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 16px;
  background: var(--fond-cartes);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.about-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: 880px;
  margin: 1.4rem auto 0;
}

.about-steps::before {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(16.666% + 21px);
  right: calc(16.666% + 21px);
  height: 2px;
  background: linear-gradient(90deg,
    rgba(30, 58, 138, 0.22),
    rgba(109, 40, 217, 0.28),
    rgba(30, 58, 138, 0.22));
}

.about-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bleu-principal), var(--violet-accent));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.20);
}

.about-step h3 {
  margin: 0 0 0.25rem;
  color: var(--texte-principal);
  font-size: 1rem;
  font-weight: 800;
}

.about-step p {
  max-width: 240px;
  margin: 0 auto;
  color: var(--texte-secondaire);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ---------- Contact : seule zone franchement colorée ---------- */
.about-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid rgba(109, 40, 217, 0.16);
  border-left: 4px solid var(--violet-accent);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.055), rgba(109, 40, 217, 0.075)),
    var(--fond-clair);
  color: var(--texte-principal);
}

.about-contact-kicker {
  margin: 0 0 0.25rem;
  color: var(--violet-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.about-contact h2 {
  margin: 0;
  color: var(--bleu-principal);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  text-align: left;
}

.about-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.about-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(109, 40, 217, 0.14);
  border-radius: 8px;
  background: var(--fond-clair);
  color: var(--violet-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.about-contact-link:hover {
  background: rgba(109, 40, 217, 0.08);
  transform: translateY(-1px);
}

.about-contact-link .emoji-img {
  width: 19px;
  height: 19px;
  vertical-align: middle;
}

.about-contact-symbol {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.10);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ---------- Thème sombre ---------- */
body.dark-theme .about-hero {
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.16), rgba(109, 40, 217, 0.16)),
    var(--fond-cartes);
}

body.dark-theme .about-story-item {
  border-top-color: rgba(255, 255, 255, 0.10);
}

body.dark-theme .about-how {
  box-shadow: none;
}

body.dark-theme .about-contact {
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.14), rgba(109, 40, 217, 0.14)),
    var(--fond-cartes);
  border-color: rgba(109, 40, 217, 0.24);
}

body.dark-theme .about-contact-link {
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .about-page {
    width: min(100% - 1.5rem, 1100px);
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .about-hero {
    padding: 2rem 1.1rem;
    border-radius: 16px;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .about-how {
    padding: 1.35rem 0.9rem;
    border-radius: 14px;
  }

  .about-steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1.25rem;
  }

  .about-steps::before {
    top: 21px;
    bottom: 23px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg,
      rgba(30, 58, 138, 0.22),
      rgba(109, 40, 217, 0.28),
      rgba(30, 58, 138, 0.22));
  }

  .about-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 1rem;
    text-align: left;
    padding-bottom: 1.15rem;
  }

  .about-step:last-child {
    padding-bottom: 0;
  }

  .about-step-number {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .about-step h3,
  .about-step p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .about-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    border-radius: 12px;
  }

  .about-contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .about-page {
    width: min(100% - 1rem, 1100px);
  }

  .about-actions {
    flex-direction: column;
  }

  .about-actions .btn {
    width: 100%;
  }

  .about-story-item {
    grid-template-columns: 40px 1fr;
    gap: 0.8rem;
  }

  .about-story-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .about-story-icon .emoji-img {
    width: 22px;
    height: 22px;
  }

  .about-contact-links {
    width: 100%;
  }

  .about-contact-link {
    flex: 1 1 auto;
    justify-content: center;
  }
}
