/* Hunawé — retouches validées de l'accueil, puis styles des pages intérieures. */

.hero .hero-copy h1 {
  color: var(--papier) !important;
}

.hero .hero-copy h1 .accent {
  color: var(--accent) !important;
}

.hero .tampon {
  color: #dfa0a3 !important;
}

.hunawe-homepage > .et_pb_section {
  margin: 0;
}

/* ---------------------------------------------------------------------
   Navigation partagée et couverture des pages intérieures
   --------------------------------------------------------------------- */

.site-header nav a[aria-current="page"] {
  color: #ffffff;
  box-shadow: inset 0 -1px 0 rgba(142, 184, 206, 0.92);
}

.site-header.is-scrolled nav a[aria-current="page"] {
  color: var(--encre);
  box-shadow: inset 0 -1px 0 var(--eau);
}

.page-interieure {
  overflow-x: clip;
}

.page-hero {
  position: relative;
  min-height: clamp(630px, 80svh, 800px);
  overflow: hidden;
}

.page-hero-halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 78% 40%, rgba(93, 146, 179, 0.2), transparent 58%);
}

.page-hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: inherit;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
  padding-top: 132px;
  padding-bottom: 88px;
}

.page-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.page-hero-copy h1 {
  color: var(--papier);
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1.035;
}

.page-hero-copy h1 > span {
  color: var(--eau-2);
  font-style: italic;
}

.page-hero-copy > p {
  max-width: 49ch;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.42vw, 19px);
  line-height: 1.72;
}

.page-hero-copy > .btn {
  margin-top: 30px;
}

.page-hero-photo {
  position: relative;
  margin: 0;
  padding: 12px 12px 57px;
  background: var(--papier);
  box-shadow: 0 24px 80px rgba(3, 12, 17, 0.36);
  transform: rotate(1.35deg);
}

.page-hero-photo img {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
}

.page-hero-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 12px;
  left: 18px;
  overflow: hidden;
  color: var(--eau);
  font-family: var(--main);
  font-size: clamp(20px, 2vw, 27px);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-proof {
  border-bottom: 1px solid rgba(20, 36, 43, 0.08);
}

.page-proof-list {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-proof-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.page-proof-list span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eau);
  content: "";
}

.page-section-heading h2 {
  max-width: 18ch;
}

/* ---------------------------------------------------------------------
   Filtres, aventures et passerelle Nomadays / VoyageFrance
   --------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 17px;
}

.filter-pill {
  min-height: 43px;
  padding: 9px 16px;
  border: 1px solid rgba(20, 36, 43, 0.14);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.7);
  color: rgba(20, 36, 43, 0.78);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--eau);
  color: var(--encre);
}

.filter-pill.is-active {
  border-color: var(--nuit);
  background: var(--nuit);
  color: #fff;
}

.filter-count {
  min-height: 22px;
  margin: 0 0 28px;
  color: rgba(20, 36, 43, 0.58);
  font-size: 12px;
}

.page-adventures-grid {
  row-gap: 31px;
}

.page-adventure-card[hidden],
.collective-card[hidden] {
  display: none !important;
}

.page-adventure-mood {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 15px;
  left: 14px;
  color: #fff;
  font-family: var(--main);
  font-size: 23px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.page-adventure-card .aventure-corps {
  min-height: 260px;
}

.page-adventure-format,
.collective-role,
.partner-step,
.cooperative-join-label {
  color: var(--eau);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-adventure-card .aventure-corps > p {
  margin: 0;
  color: rgba(20, 36, 43, 0.7);
  font-size: 14px;
  line-height: 1.68;
}

.page-adventure-link {
  align-self: flex-start;
  margin-top: auto;
}

.page-catalog-note {
  max-width: 75ch;
  margin: 30px 0 0;
  color: rgba(20, 36, 43, 0.6);
  font-size: 13px;
  line-height: 1.7;
}

.partner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: stretch;
}

.partner-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(20, 36, 43, 0.1);
  border-radius: 18px;
  background: var(--pierre);
}

.partner-card-voyage {
  background: rgba(220, 234, 240, 0.48);
}

.partner-card h3 {
  margin-top: 20px;
  font-size: clamp(26px, 2.4vw, 38px);
}

.partner-card > p {
  max-width: 43ch;
  color: rgba(20, 36, 43, 0.75);
  line-height: 1.75;
}

.partner-card ul,
.project-contact-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.partner-card li,
.project-contact-copy li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
}

.partner-card li::before,
.project-contact-copy li::before {
  position: absolute;
  top: 10px;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eau);
  content: "";
}

.partner-connector {
  display: grid;
  align-self: center;
  justify-items: center;
  color: var(--eau);
  font-family: var(--serif);
  font-size: 42px;
}

.partner-conclusion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.partner-conclusion > p {
  max-width: 72ch;
  margin: 0;
  color: rgba(20, 36, 43, 0.78);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------------------------------------------------------------------
   Notre histoire
   --------------------------------------------------------------------- */

.histoire-intro-shell {
  position: relative;
  max-width: 900px;
  text-align: center;
}

.histoire-big-quote {
  display: block;
  height: 57px;
  color: var(--eau-2);
  font-family: var(--serif);
  font-size: 118px;
  line-height: 1;
}

.histoire-intro blockquote {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.17;
}

.histoire-intro-shell > p {
  color: var(--eau);
  font-family: var(--main);
  font-size: 27px;
}

.histoire-timeline {
  display: grid;
  max-width: 1120px;
  gap: 0;
  margin: 0 auto;
}

.histoire-chapter {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 72px);
  padding: 38px 0;
  border-top: 1px solid rgba(20, 36, 43, 0.14);
}

.histoire-chapter-marker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.histoire-chapter-marker > span {
  color: var(--eau);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.histoire-chapter-marker b {
  color: rgba(93, 146, 179, 0.28);
  font-family: var(--serif);
  font-size: 61px;
  line-height: 1;
}

.histoire-chapter-content h3 {
  font-size: clamp(26px, 3vw, 39px);
}

.histoire-chapter-content > p {
  max-width: 70ch;
  color: rgba(20, 36, 43, 0.75);
  line-height: 1.82;
}

.histoire-chapter-content .main-note {
  font-size: 23px;
}

.histoire-values-grid,
.cooperative-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.histoire-value {
  min-height: 230px;
  padding: clamp(25px, 3.4vw, 41px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.histoire-value > span {
  color: var(--eau-2);
  font-family: var(--main);
  font-size: 27px;
}

.histoire-value h3 {
  margin-top: 11px;
  font-size: 28px;
}

.histoire-value p {
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.72;
}

.histoire-train-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(35px, 7vw, 95px);
}

.histoire-train-shell > figure {
  margin: 0;
}

.histoire-train-shell > figure img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
}

.histoire-train-shell > div > p {
  color: rgba(20, 36, 43, 0.73);
  line-height: 1.82;
}

.histoire-train-shell > div > .main-note,
.histoire-train-shell > div > .lien-texte {
  display: flex;
  width: fit-content;
  margin-top: 17px;
}

/* ---------------------------------------------------------------------
   Le collectif
   --------------------------------------------------------------------- */

.collective-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}

.collective-card {
  overflow: hidden;
  border: 1px solid rgba(20, 36, 43, 0.1);
  border-radius: 14px;
  background: var(--papier);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.collective-card:hover {
  box-shadow: 0 18px 38px rgba(20, 36, 43, 0.1);
  transform: translateY(-4px);
}

.collective-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--nuit);
}

.collective-photo img {
  width: 100%;
  aspect-ratio: 1.17 / 1;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.8s ease;
}

.collective-card:hover .collective-photo img {
  transform: scale(1.04);
}

.collective-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 27px 16px 13px;
  background: linear-gradient(transparent, rgba(10, 20, 25, 0.74));
  color: #fff;
  font-family: var(--main);
  font-size: 24px;
}

.collective-card-body {
  min-height: 218px;
  padding: 24px 22px 27px;
}

.collective-card-body h3 {
  margin-top: 10px;
  font-size: 32px;
}

.collective-card-body p {
  margin: 11px 0 0;
  color: rgba(20, 36, 43, 0.73);
  font-size: 14px;
  line-height: 1.72;
}

.collective-open-note {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding: 19px 23px;
  border: 1px dashed rgba(93, 146, 179, 0.46);
  border-radius: 12px;
}

.collective-open-note .main-note {
  flex: none;
}

.collective-open-note p {
  margin: 0;
  color: rgba(20, 36, 43, 0.69);
  font-size: 14px;
}

.collective-how-grid,
.cooperative-join-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.collective-how-card {
  padding: 31px 25px;
  border: 1px solid rgba(20, 36, 43, 0.11);
  border-radius: 12px;
}

.collective-how-card > span {
  color: var(--eau);
  font-family: var(--main);
  font-size: 28px;
}

.collective-how-card h3 {
  margin-top: 11px;
  font-size: 26px;
}

.collective-how-card p {
  color: rgba(20, 36, 43, 0.72);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------------------------------------------------------------------
   La coopérative en devenir
   --------------------------------------------------------------------- */

.cooperative-status {
  border-bottom: 1px solid rgba(20, 36, 43, 0.08);
}

.cooperative-status-shell {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cooperative-status-shell > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cooperative-status-shell > div > span {
  color: var(--eau);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cooperative-status-shell > div > strong {
  font-size: 14px;
}

.cooperative-status-arrow {
  color: var(--eau);
  font-size: 20px;
}

.cooperative-principle {
  min-height: 240px;
  padding: clamp(25px, 3.3vw, 39px);
  border: 1px solid rgba(20, 36, 43, 0.09);
  border-radius: 14px;
  background: var(--papier);
}

.cooperative-principle > span {
  color: var(--eau);
  font-family: var(--main);
  font-size: 29px;
}

.cooperative-principle h3 {
  margin-top: 12px;
  font-size: clamp(24px, 2.25vw, 32px);
}

.cooperative-principle p {
  max-width: 53ch;
  color: rgba(20, 36, 43, 0.7);
  font-size: 15px;
  line-height: 1.76;
}

.cooperative-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cooperative-step {
  min-height: 272px;
  padding: 30px 25px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.cooperative-step.is-now {
  background: rgba(93, 146, 179, 0.17);
}

.cooperative-step-status {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(142, 184, 206, 0.56);
  border-radius: 999px;
  color: var(--eau-2);
  font-size: 10px;
  font-weight: 700;
}

.cooperative-step h3 {
  margin-top: 19px;
  font-size: 27px;
}

.cooperative-step p {
  font-size: 14px;
  line-height: 1.76;
}

.cooperative-join-card {
  display: flex;
  min-height: 266px;
  flex-direction: column;
  padding: 29px 24px;
  border: 1px solid rgba(20, 36, 43, 0.1);
  border-radius: 12px;
  background: var(--pierre);
}

.cooperative-join-card h3 {
  margin-top: 16px;
  font-size: 28px;
}

.cooperative-join-card p {
  color: rgba(20, 36, 43, 0.72);
  font-size: 14px;
  line-height: 1.74;
}

.cooperative-join-card .lien-texte {
  align-self: flex-start;
  margin-top: auto;
}

.cooperative-honesty {
  margin: 33px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--eau);
  background: rgba(220, 234, 240, 0.42);
  color: rgba(20, 36, 43, 0.8);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------------------------------------------------------------------
   Invitations finales et création d’un projet
   --------------------------------------------------------------------- */

.page-invitation {
  overflow: hidden;
}

.page-invitation-shell {
  max-width: 840px;
  text-align: center;
}

.page-invitation-shell > h2 {
  max-width: 17ch;
  margin: 0 auto;
  font-size: clamp(39px, 5vw, 67px);
}

.page-invitation-shell > p {
  max-width: 62ch;
  margin: 19px auto 0;
  line-height: 1.74;
}

.page-invitation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.project-contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: clamp(40px, 8vw, 110px);
}

.project-contact-copy > p {
  color: rgba(20, 36, 43, 0.74);
  line-height: 1.78;
}

.project-contact-copy > .lien-texte {
  margin-top: 23px;
}

.project-contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(25px, 4vw, 40px);
  border: 1px solid rgba(20, 36, 43, 0.11);
  border-radius: 14px;
  background: var(--pierre);
}

.project-contact-form label {
  display: grid;
  gap: 7px;
  color: var(--encre);
  font-size: 13px;
  font-weight: 600;
}

.project-contact-form input,
.project-contact-form select,
.project-contact-form textarea {
  width: 100%;
  min-height: 49px;
  padding: 11px 13px;
  border: 1px solid rgba(20, 36, 43, 0.18);
  border-radius: 7px;
  background: var(--papier);
  color: var(--encre);
  font: inherit;
  font-size: 16px;
}

.project-contact-form textarea {
  min-height: 135px;
  resize: vertical;
}

.project-contact-form > .btn {
  width: fit-content;
}

.project-contact-form > p {
  margin: 0;
  color: rgba(20, 36, 43, 0.58);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------------------------------------------------------------------
   Mobile, tablette et réduction des animations
   --------------------------------------------------------------------- */

@media (max-width: 980px) {
  .page-hero {
    min-height: 0;
  }

  .page-hero-shell {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 130px;
    padding-bottom: 68px;
  }

  .page-hero-copy h1 {
    font-size: clamp(43px, 8vw, 70px);
  }

  .page-hero-photo {
    max-width: 730px;
    margin-left: auto;
  }

  .page-hero-photo img {
    aspect-ratio: 1.56 / 1;
  }

  .page-proof-list {
    min-height: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 29px;
    row-gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .collective-grid,
  .cooperative-join-grid,
  .collective-how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cooperative-journey {
    grid-template-columns: 1fr;
  }

  .cooperative-step {
    min-height: 0;
  }

  .partner-layout {
    grid-template-columns: 1fr;
  }

  .partner-connector {
    min-height: 54px;
  }

  .histoire-train-shell,
  .project-contact-shell {
    gap: 37px;
  }
}

@media (max-width: 760px) {
  .page-hero-shell {
    padding-top: 115px;
    padding-bottom: 52px;
  }

  .page-hero-copy h1 {
    font-size: clamp(39px, 10vw, 58px);
  }

  .page-hero-copy > p {
    font-size: 16px;
  }

  .page-hero-photo {
    width: calc(100% - 9px);
    padding: 8px 8px 48px;
  }

  .page-hero-photo figcaption {
    font-size: 20px;
  }

  .page-proof-list span {
    font-size: 12px;
  }

  .filter-bar {
    flex-wrap: nowrap;
    margin-right: -18px;
    overflow-x: auto;
    padding-right: 18px;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .filter-pill {
    flex: none;
  }

  .histoire-values-grid,
  .cooperative-principles,
  .collective-grid,
  .collective-how-grid,
  .cooperative-join-grid,
  .project-contact-shell,
  .histoire-train-shell {
    grid-template-columns: 1fr;
  }

  .histoire-chapter {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 18px;
    padding: 31px 0;
  }

  .histoire-chapter-marker b {
    font-size: 48px;
  }

  .histoire-chapter-marker > span {
    font-size: 8px;
  }

  .histoire-chapter-content .main-note {
    font-size: 20px;
  }

  .collective-open-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .cooperative-status-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .cooperative-status-arrow {
    align-self: flex-start;
    margin-left: 9px;
    font-size: 15px;
    transform: rotate(90deg);
  }

  .page-invitation-actions,
  .page-invitation-actions .btn {
    width: 100%;
  }

  .project-contact-form {
    padding: 23px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collective-card,
  .collective-photo img,
  .filter-pill {
    transition-duration: 0.01ms !important;
  }
}
