/* Blocs propres à certaines pages : accueil, ligne du temps, équipe, inscription, bandeaux photo. */

/* Accueil : thème de l'année */
.theme-hero {
  background: var(--color-sand);
  padding-block: 56px;
}

.theme-hero__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.theme-hero__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.theme-hero__title em {
  font-weight: 500;
  color: var(--color-red);
}

.theme-hero__lead {
  font-size: 1.4rem;
  color: var(--color-text-soft);
}

.theme-hero__photo {
  flex: 0 1 440px;
}

.page-hero-photo {
  flex: 0 1 520px;
}

/* Mot du Conseil exécutif */
.council-message__greeting {
  font-weight: 700;
}

.council-message__love {
  margin-top: 8px;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--color-red);
}

.council-message__signature {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 16px;
}

.council-message__signature img {
  width: 180px;
}

.council-message__names {
  padding-bottom: 14px;
}

/* Encadré rouge « prochain Cursillo » */
.highlight-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  border-radius: var(--radius-large);
  background: var(--color-red);
  color: #ffffff;
}

.highlight-box .eyebrow {
  color: var(--color-gold);
}

.highlight-box__date {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Coordonnées */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-medium);
  background: var(--color-card);
  color: var(--color-brown-dark);
  font-weight: 700;
  text-decoration: none;
}

/* Le courriel se coupe seulement après le @ (jamais au milieu d’un mot) */
.contact-link__text {
  min-width: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

.contact-link {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.contact-link:hover {
  background: var(--color-sand);
  color: var(--color-brown-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.contact-link svg {
  flex-shrink: 0;
  color: var(--color-red);
}

.contact-link--phone {
  font-size: 1.6rem;
}

/* Prochain Cursillo : grande image de lumière */
.light-hero {
  background-image: linear-gradient(180deg, rgba(43, 30, 40, 0.35), rgba(43, 30, 22, 0.55)), url("../images/lumiere.jpg");
  background-size: cover;
  background-position: center top;
  color: #ffffff;
  text-align: center;
}

.light-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: 36px 64px;
}

.light-hero .back-link {
  color: #ffffff;
}

.light-hero h1 {
  margin-top: 150px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.light-hero__subtitle {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.light-hero__date-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 24px 36px;
  border-radius: var(--radius-large);
  background: var(--color-card);
  color: var(--color-brown-dark);
  text-align: left;
  box-shadow: 0 16px 40px rgba(40, 20, 10, 0.3);
}

/* Étapes numérotées */
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-red);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
}

.step__title {
  display: block;
  font-size: 1.45rem;
}

/* Coût */
.cost-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: var(--radius-large);
  background: var(--color-sand-light);
}

.cost-box__price {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-brown-dark);
}

.cost-box__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 2px solid #e8c9a0;
}

.fine-print {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Ligne du temps (À propos) */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__item {
  display: flex;
  gap: 24px;
}

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 110px;
  flex-shrink: 0;
}

.timeline__year {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-red);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline__line {
  flex: 1;
  width: 3px;
  border-radius: 2px;
  background: #e8c9a0;
}

.timeline__card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 20px;
}

.timeline__text {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-text-soft);
}

.portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 150px;
}

.portrait img {
  width: 150px;
  height: 190px;
  object-fit: cover;
  border: 5px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(90, 50, 20, 0.18);
}

.portrait figcaption {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.3;
}

/* Bandeau « Un Mouvement universel » avec le globe */
.globe-band {
  background-image: linear-gradient(90deg, rgba(14, 10, 24, 0.92), rgba(14, 10, 24, 0.75) 45%, rgba(14, 10, 24, 0.15)), url("../images/globe.jpg");
  background-size: cover;
  background-position: right center;
  color: #ffffff;
  padding-block: 88px;
}

.globe-band__text {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.globe-band h2 {
  color: #ffffff;
}

.globe-band p {
  color: #f3e8da;
}

.globe-band .stat__number {
  color: var(--color-gold);
}

.globe-band .stat__label {
  color: #f3e8da;
}

.globe-band .fine-print {
  color: #d9cbbb;
}

/* Lieux avec photo */
.place-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.place-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.place-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
}

/* Équipe */
.person-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.person-card__text {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.person-card__text .badge {
  align-self: center;
}

.person-card__name {
  font-size: 1.85rem;
}

.card:has(> .member-card__name) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Photo d’un membre du comité ou des représentants (même présentation que le trio) */
.card > .portrait {
  margin-bottom: 12px;
}

.info-banner .portrait {
  flex: none;
  width: 150px;
  margin-bottom: 16px;
}

.member-card__name {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-brown-dark);
}

.member-card__role {
  display: block;
  color: var(--color-red);
  font-weight: 700;
}

.member-card__since {
  display: block;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Encadré sable (représentants au national) */
.info-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
  padding: 32px 36px;
  border-radius: var(--radius-large);
  background: var(--color-sand);
}

.stat-panel {
  justify-content: space-between;
  text-align: center;
  padding: 24px 32px;
  border-radius: 18px;
  background: var(--color-sand);
}

/* Politique de confidentialité */
.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
}

.privacy-block {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.privacy-block h2 {
  font-size: 1.8rem;
}

/* Texte d’introduction centré */
.intro-center {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

/* Tablette (ex. iPad Pro) : la photo reste à côté du texte, au même niveau,
   et le texte des pastilles passe sous l'icône. */
@media (min-width: 700px) and (max-width: 1200px) {
  .theme-hero__inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 32px;
  }

  .theme-hero__text {
    flex: 1 1 0;
  }

  .theme-hero__photo,
  .page-hero-photo {
    flex: 0 1 40%;
  }

  .theme-hero__text .info-chip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Croissance sur tablette : la photo est centrée sur le groupe de pastilles
   (du haut de la première au bas de la dernière). */
@media (min-width: 700px) and (max-width: 1200px) {
  .theme-hero__inner:has(> .page-hero-photo) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36%;
    grid-template-rows: repeat(4, auto) auto 1fr;
    column-gap: 32px;
    row-gap: 20px;
    align-items: start;
  }

  .theme-hero__inner:has(> .page-hero-photo) > .theme-hero__text {
    display: contents;
  }

  .theme-hero__inner:has(> .page-hero-photo) .theme-hero__text > * {
    grid-column: 1;
  }

  .theme-hero__inner:has(> .page-hero-photo) .theme-hero__text > .back-link,
  .theme-hero__inner:has(> .page-hero-photo) .theme-hero__text > .badge {
    justify-self: start;
  }

  .theme-hero__inner:has(> .page-hero-photo) > .page-hero-photo {
    grid-column: 2;
    grid-row: 5;
    align-self: center;
  }
}

/* Croissance sur tablette : le titre tient sur une seule ligne. */
@media (min-width: 700px) and (max-width: 1200px) {
  .theme-hero__inner:has(> .page-hero-photo) h1 {
    font-size: 3.7vw;
    white-space: nowrap;
  }
}

/* Aggiornamento sur tablette : la photo est centrée entre le début du titre
   et la dernière pastille. */
@media (min-width: 700px) and (max-width: 1200px) {
  .theme-hero__inner:has(.info-chip-row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    grid-template-rows: repeat(5, auto) 1fr;
    column-gap: 32px;
    row-gap: 20px;
    align-items: start;
  }

  .theme-hero__inner:has(.info-chip-row) > .theme-hero__text {
    display: contents;
  }

  .theme-hero__inner:has(.info-chip-row) .theme-hero__text > * {
    grid-column: 1;
  }

  .theme-hero__inner:has(.info-chip-row) .theme-hero__text > .back-link,
  .theme-hero__inner:has(.info-chip-row) .theme-hero__text > .badge,
  .theme-hero__inner:has(.info-chip-row) .theme-hero__text > .button-row {
    justify-self: start;
  }

  .theme-hero__inner:has(.info-chip-row) > .theme-hero__photo {
    grid-column: 2;
    grid-row: 3 / 6;
    align-self: center;
  }
}

/* Mobile : un long mot (ex. « Drummondville ») ne doit pas déborder de la carte. */
.cost-box__price {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .cost-box__price {
    font-size: 2.2rem;
  }
}

/* iPhone : textes des sections et des cartes d'information centrés. */
@media (max-width: 480px) {
  .section__heading,
  .reading-width,
  .fine-print {
    margin-inline: auto;
    text-align: center;
  }

  .section__heading {
    align-items: center;
  }

  .cost-box {
    align-items: center;
    text-align: center;
  }

  .cost-box__details {
    align-items: center;
  }
}

/* iPhone : le texte des pastilles rouges est centré quand il passe sur deux lignes. */
@media (max-width: 480px) {
  .badge {
    text-align: center;
  }
}

/* iPhone : la ligne du temps passe en une colonne, le texte reste dans la carte. */
@media (max-width: 480px) {
  .timeline__item {
    flex-direction: column;
    gap: 12px;
  }

  .timeline__marker {
    width: auto;
    flex-direction: row;
    align-self: flex-start;
  }

  .timeline__line {
    display: none;
  }

  .timeline__text {
    flex: 0 0 auto;
    align-self: stretch;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .timeline__card {
    flex-direction: column;
  }

  .timeline__card .portrait {
    align-self: center;
  }
}

/* À propos : section « cinq continents » et encadré des chiffres centrés. */
.globe-band__text {
  align-items: center;
  text-align: center;
}

.globe-band .stat-row,
.stat-panel {
  justify-content: center;
  text-align: center;
}

.stat-panel > div {
  flex: 1 1 140px;
}

.globe-band__text .badge {
  align-self: center;
}

/* Accueil (téléphone, même couché) : le titre « Que cherchez-vous ? » est centré. */
@media (max-width: 1000px) {
  .section__heading:has(+ .card-grid) {
    margin-inline: auto;
    align-items: center;
    text-align: center;
  }
}
