/* =========================================================
   Mobile responsive styles — Nos activités
   Loaded after style.css and nos-activites.css
   ========================================================= */

@media screen and (max-width: 900px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    background: var(--cream, #fffaf2);
  }

  .page-shell {
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  /* HEADER */

  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: auto;
    padding: 16px 18px 14px;
  }

  .brand {
    width: 100%;
  }

  .brand img {
    width: 150px;
    max-width: 56vw;
    height: auto;
    margin: 0 auto;
  }

  .main-nav {
    order: 2;
    width: 100%;
    margin: 0;
    padding: 6px 0 8px;
    justify-content: center;
    gap: 18px;
    overflow-x: visible;
    font-size: 0.84rem;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .site-header .header-cta {
    display: none;
  }

  /* HERO */

  .activities-page .activities-hero {
    height: auto;
    min-height: 0;
    background: #fffdf8;
  }

  .activities-page .activities-hero img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    object-position: center center;
  }

  /* ACTIVITY LIST */

  .activities-page .activities-list {
    margin-top: 0;
    padding: 28px 20px 26px;
  }

  .activities-page .activities-list::before {
    display: none;
    content: none;
  }

  .activities-page .activity-row {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 680px;
    padding: 28px 0;
    text-align: center;
  }

  .activities-page .activity-row:first-of-type {
    padding-top: 0;
  }

  .activities-page .activity-photo {
    width: 100%;
    height: 230px;
    margin: 0 auto;
  }

  .activities-page .activity-icon {
  width: 78px;
  height: 78px;
  margin: 8px auto 0;
  }

  .activities-page .activity-text {
    padding: 0;
    text-align: center;
  }

  .activities-page .activity-text h2 {
    margin-bottom: 12px;
    font-size: clamp(2.45rem, 10vw, 3.45rem);
  }

  .activities-page .activity-text p {
    max-width: 560px;
    margin: 8px auto 0;
    font-size: 1rem;
    line-height: 1.5;
  }

  .activities-page .activity-decor {
    display: none;
  }

  /* BOTTOM CARDS */

  .activities-page .activity-closing-cards {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 680px;
    margin-top: 22px;
  }

  .activities-page .participation-card,
  .activities-page .material-card {
    height: auto;
    min-height: 0;
    padding: 28px 24px;
    text-align: center;
  }

  .activities-page .participation-card h2,
  .activities-page .material-title h2 {
    font-size: clamp(2.35rem, 10vw, 3.25rem);
  }

  .activities-page .participation-card ul {
    max-width: 520px;
    margin: 0 auto;
    gap: 12px;
    text-align: left;
  }

  .activities-page .participation-card li {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .activities-page .participation-card strong {
    max-width: 520px;
    margin: 22px auto 0;
    font-size: 1rem;
    line-height: 1.45;
  }

  .activities-page .participation-decor {
    display: none;
  }

  .activities-page .material-title {
    justify-content: center;
    margin-bottom: 18px;
  }

  .activities-page .material-title-icon {
    width: 48px;
    height: 48px;
  }

  .activities-page .material-text {
    max-width: 560px;
    margin: 0 auto;
    padding-right: 0;
    text-align: left;
  }

  .activities-page .material-text p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .activities-page .material-leaf {
    display: none;
  }

  /* CTA */

  .activities-page .activities-cta {
    max-width: 680px;
    margin-top: 18px;
    padding: 14px;
  }

  .activities-page .activities-cta-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .activities-page .activities-cta img {
    width: 100%;
    height: 180px;
  }

  .activities-page .activities-cta h2 {
    color: var(--terracotta, #c95b3d);
    font-family: var(--script, "Caveat", cursive);
    font-size: clamp(2.45rem, 10vw, 3.4rem);
    line-height: 1;
  }

  .activities-page .activities-cta p {
    max-width: 520px;
    margin: 10px auto 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
  }

  .activities-page .activities-cta .btn {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    min-height: 52px;
    margin: 0 auto;
  }

  /* FOOTER */

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 26px 20px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 0;
  }

  .footer-brand img {
    width: 170px;
    margin: 0 auto;
  }

  .footer-village {
    justify-content: center;
  }

  .footer-village img {
    width: 180px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 520px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand img {
    width: 132px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    font-size: 0.8rem;
  }

  .activities-page .activities-list {
    padding: 24px 16px;
  }

  .activities-page .activity-row {
    padding: 26px 0;
  }

  .activities-page .activity-photo {
    height: 190px;
  }

  .activities-page .activity-icon {
    width: 70px;
    height: 70px;
    margin-top: 0;
  }

  .activities-page .activity-text h2 {
    font-size: 2.55rem;
  }

  .activities-page .activity-text p {
    font-size: 0.98rem;
  }

  .activities-page .participation-card,
  .activities-page .material-card {
    padding: 26px 20px;
  }

  .activities-page .participation-card h2,
  .activities-page .material-title h2,
  .activities-page .activities-cta h2 {
    font-size: 2.55rem;
  }

  .activities-page .participation-card ul,
  .activities-page .material-text {
    max-width: 100%;
  }

  .activities-page .participation-card strong {
    margin-left: auto;
    margin-right: auto;
  }

  .activities-page .activities-cta img {
    height: 155px;
  }

  .footer-links {
    font-size: 0.94rem;
  }
}