/* =========================
   A-PROPOS.CSS
========================= */

/* ─────────────────────────────────────────
   SECTION 1 — PARCOURS
───────────────────────────────────────── */

.ap-parcours {
  background: var(--bg-page);
  padding: 60px 0;
}

.ap-parcours__kicker {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  color: var(--text);
  margin: 0 0 32px;
  line-height: 1.45;
}

.ap-parcours__text p {
  margin: 0 0 1em;
  line-height: 1.7;
  color: var(--text);
  text-align: center;
}

@media (min-width: 768px) {
  .ap-parcours {
    padding: 72px 0;
  }
  .ap-parcours__kicker {
    font-size: 26px;
  }
}

@media (min-width: 820px) {
  .ap-parcours__kicker {
    font-size: 30px;
  }
}

@media (min-width: 992px) {
  .ap-parcours {
    padding: 80px 0;
  }
  .ap-parcours__kicker {
    font-size: 35px;
  }
}

@media (min-width: 1200px) {
  .ap-parcours {
    padding: 20px 0 40px;
  }
  .ap-parcours__kicker {
    text-align: left;
    margin-left: 0;
    font-size: 24px;
  }
  .ap-parcours__text p {
    text-align: left;
  }
}


/* ─────────────────────────────────────────
   SECTION 2 — APPROCHE
───────────────────────────────────────── */

.ap-approche {
  background-size: cover;
  background-position: center;
  padding: 40px 0;
}

.ap-approche__inner {
  text-align: center;
}

.ap-approche__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.35;
}

.ap-approche__text p {
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 1em;
}

.ap-approche__text p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .ap-approche {
    padding: 50px 0;
  }
  .ap-approche__title {
    font-size: 26px;
  }
}

@media (min-width: 992px) {
  .ap-approche {
    padding: 60px 0;
  }
  .ap-approche__title {
    font-size: 35px;
  }
}

@media (min-width: 1200px) {
  .ap-approche {
    padding: 40px 0;
  }
  .ap-approche__title {
    font-size: 24px;
  }
  .ap-approche__inner {
    text-align: right;
  }
}


/* ─────────────────────────────────────────
   SECTION 3 — DOMAINES
───────────────────────────────────────── */

.ap-domaines {
  background: var(--bg-page);
  padding: 60px 0;
}

.ap-domaines__title {
  font-family: var(--font-serif);
  text-align: center;
  color: var(--text);
  margin-bottom: 40px;
  line-height: 1.35;
}

/* Mobile + tablettes : 1 colonne */
.ap-domaines__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.ap-domaine-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: #fff8ec;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ap-domaine-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ap-domaine-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ap-domaine-card:hover .ap-domaine-card__img img {
  transform: scale(1.04);
}

.ap-domaine-card__body {
  padding: 20px 22px 24px;
  text-align: center;
}

.ap-domaine-card__title {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.ap-domaine-card__text {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.ap-domaines__cta {
  margin-top: 40px;
  text-align: center;
}

@media (min-width: 768px) {
  .ap-domaines {
    padding: 72px 0;
  }
  .ap-domaines__grid {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .ap-domaine-card__title {
    font-size: 26px;
  }
}

@media (min-width: 820px) {
  .ap-domaine-card__title {
    font-size: 30px;
  }
}

@media (min-width: 992px) {
  .ap-domaines {
    padding: 80px 0;
  }
  .ap-domaines__title {
    margin-bottom: 48px;
  }

  .ap-domaine-card__title {
    font-size: 32px;
  }

  .ap-domaines__grid {
    max-width: 620px;
  }
}

@media (min-width: 1200px) {
  .ap-domaines {
    padding: 100px 0;
  }
  .ap-domaines__title {
    text-align: left;
  }
  .ap-domaines__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .ap-domaine-card__body {
    padding: 24px 28px 28px;
    text-align: left;
  }
  .ap-domaine-card__title {
    font-size: 20px;
  }
  .ap-domaines__cta {
    text-align: right;
  }
}


/* ─────────────────────────────────────────
   SECTION 4 — TIMELINE
───────────────────────────────────────── */

.ap-timeline {
  position: relative;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  padding: 60px 0 80px;
  min-height: 520px;
  overflow: hidden;
}

.ap-timeline__title {
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--bg-page);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* ── MOBILE : vertical zigzag ── */

.ap-timeline__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 1;
}

/* Ligne verticale */
.ap-timeline__track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255, 243, 217, .5) 10%, rgba(255, 243, 217, .5) 90%, transparent);
  transform: translateX(-50%);
}

.ap-timeline__item {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  gap: 0 10px;
  padding: 20px 0;
  position: relative;
}

.ap-timeline__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
}

.ap-timeline__planet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Année directement sur la planète, sans fond */
.ap-timeline__circle {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-timeline__circle span {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #111;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 6px rgba(255,255,255,.7);
}

.ap-timeline__connector {
  display: none;
}

.ap-timeline__label {
  font-size: 16px;
  color: var(--bg-page);
  line-height: 1.4;
  margin: 0;
  padding: 0 8px;
}

/* Impairs : label à droite */
.ap-timeline__item:nth-child(odd) .ap-timeline__label {
  grid-column: 3;
  text-align: left;
}

/* Pairs : label à gauche */
.ap-timeline__item:nth-child(even) .ap-timeline__label {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

@media (min-width: 768px) {
  .ap-timeline {
    min-height: 620px;
    padding: 140px 0 80px;
  }

  .ap-timeline__title {
    font-size: 30px;
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .ap-timeline__item {
    grid-template-columns: 1fr 90px 1fr;
    padding: 24px 0;
  }
  .ap-timeline__visual {
    width: 90px;
    height: 90px;
  }
  .ap-timeline__circle span {
    font-size: 24px;
  }
  .ap-timeline__label {
    font-size: 24px;
  }
}

@media (min-width: 820px) {
  .ap-timeline {
    padding: 180px 0 80px;
  }

  .ap-timeline__title {
    font-size: 35px;
  }
}

@media (min-width: 992px) {
  .ap-timeline {
    min-height: 700px;
    padding: 220px 0 80px;
  }
  .ap-timeline__title {
    font-size: 40px;
  }
  .ap-timeline__item {
    grid-template-columns: 1fr 110px 1fr;
  }
  .ap-timeline__visual {
    width: 110px;
    height: 110px;
  }
  .ap-timeline__circle span {
    font-size: 30px;
  }

  .ap-timeline__label {
    font-size: 30px;
  }
}

/* ── DESKTOP : horizontal zigzag ── */
@media (min-width: 1200px) {
  .ap-timeline {
    padding: 140px 0 120px;
    min-height: 600px;
    background-size: 100% auto;
  }

  .ap-timeline__title {
    font-size: 30px;
    margin-bottom: 0;
    padding-bottom: 100px;
  }

  .ap-timeline__track {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0 24px;
  }

  /* Ligne horizontale */
  .ap-timeline__track::before {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent, rgba(255, 243, 217, .5) 10%, rgba(255, 243, 217, .5) 90%, transparent);
  }

  .ap-timeline__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    flex: 1;
    transition: transform 0.3s ease;
  }

  .ap-timeline__item:hover {
    transform: scale(1.12);
    z-index: 3;
  }

  .ap-timeline__visual {
    width: 100px;
    height: 100px;
    z-index: 2;
  }

  .ap-timeline__circle span {
    font-size: 20px;
  }

  .ap-timeline__connector {
    display: block;
    width: 2px;
    height: 28px;
    background: rgba(255, 243, 217, 0.45);
    flex-shrink: 0;
  }

  .ap-timeline__label {
    font-size: 18px;
    text-align: center;
    max-width: 140px;
    padding: 0;
  }

  /* Impairs : planète haut, label bas */
  .ap-timeline__item:nth-child(odd) {
    flex-direction: column;
    justify-content: flex-end;
    align-self: stretch;
  }
  .ap-timeline__item:nth-child(odd) .ap-timeline__visual    { order: 1; }
  .ap-timeline__item:nth-child(odd) .ap-timeline__connector { order: 2; }
  .ap-timeline__item:nth-child(odd) .ap-timeline__label     { order: 3; grid-column: unset; text-align: center; min-height: 110px; }

  /* Pairs : label haut, planète bas */
  .ap-timeline__item:nth-child(even) {
    flex-direction: column-reverse;
    justify-content: flex-start;
    align-self: stretch;
  }
  .ap-timeline__item:nth-child(even) .ap-timeline__visual    { order: 1; }
  .ap-timeline__item:nth-child(even) .ap-timeline__connector { order: 2; }
  .ap-timeline__item:nth-child(even) .ap-timeline__label     { order: 3; grid-column: unset; text-align: center; }
}


/* ─────────────────────────────────────────
   SECTION 5 — PROPOSITIONS
───────────────────────────────────────── */

.ap-propositions {
  background: var(--bg-page);
  padding: 60px 0;
}

.ap-propositions__title {
  font-family: var(--font-serif);
  text-align: center;
  color: var(--text);
  margin-bottom: 40px;
  line-height: 1.35;
}

/* Mobile + tablettes : 1 colonne */
.ap-propositions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.ap-proposition-card {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.ap-proposition-card__link {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.ap-proposition-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ap-proposition-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ap-proposition-card__link:hover .ap-proposition-card__img img {
  transform: scale(1.04);
}

.ap-proposition-card__label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin: 16px 0 0;
  line-height: 1.3;
  color: var(--text);
}

@media (min-width: 768px) {
  .ap-propositions {
    padding: 72px 0;
  }
  .ap-propositions__grid {
    grid-template-columns: 1fr;
    gap: 70px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .ap-proposition-card__label {
    font-size: 26px;
  }
}

@media (min-width: 820px) {
  .ap-proposition-card__label {
    font-size: 28px;
  }
}

@media (min-width: 992px) {
  .ap-propositions {
    padding: 80px 0;
  }

  .ap-propositions__grid {
    gap: 80px;
    max-width: 600px;
  }

  .ap-propositions__title {
    margin-bottom: 48px;
  }

  .ap-proposition-card__label {
    font-size: 30px;
  }
}

@media (min-width: 1200px) {
  .ap-propositions {
    padding: 100px 0;
  }
  .ap-propositions__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .ap-proposition-card__label {
    font-size: 18px;
    margin-top: 16px;
  }
}


/* ─────────────────────────────────────────
   SECTION 6 — CITATION & CTAs
───────────────────────────────────────── */

.ap-quote {
  background: var(--bg-page);
  padding: 0 0 80px;
  text-align: center;
}

.ap-quote .container {
  max-width: 820px;
}

.ap-quote__text {
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 40px;
  font-style: italic;
}

.ap-quote__mark {
  font-family: Georgia, serif;
  font-size: 3em;
  line-height: 0;
  color: var(--btn-gold-end);
  vertical-align: -0.4em;
  font-style: normal;
}

.ap-quote__mark--close {
  margin-left: 0.1em;
}

.ap-quote__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ap-quote__ctas .btn {
  min-width: 220px;
}

@media (min-width: 768px) {
  .ap-quote {
    padding-bottom: 90px;
  }
  .ap-quote__text {
    font-size: 40px;
  }
}

@media (min-width: 820px) {
  .ap-quote__text {
    font-size: 45px;
  }
  .ap-quote__ctas {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
}

@media (min-width: 992px) {
  .ap-quote__text {
    font-size: 50px;
  }
}

@media (min-width: 1200px) {
  .ap-quote {
    padding-bottom: 60px;
  }
  .ap-quote__text {
    font-size: 35px;
    margin-bottom: 48px;
  }
}
