  body{
    margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
  
main {
  flex: 1;          /* le contenu occupe l'espace, le footer reste en bas */
}

  /* header */
  .logo img {
    margin-top: 20px;
    height: 85px;
    width:auto;
    display:block
  }
  /* ===== header et footer ===== */
.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;  
  gap: 32px;
  height: 72px;
  padding: 0 40px;
  box-sizing: border-box;
}

.site-header a,
.site-footer a {
  text-decoration: none;
  color: inherit;
}
.site-header nav {
  margin-left: auto;
}

.site-header nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .logo + a {
  margin-left: auto;     
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-contact {
  margin-left: auto;
  padding: 8px 20px;
  border-radius: 8px;
  background: #a020f0;
  color: #fff !important;
  transition: transform 0.2s;
}

.btn-contact:hover {
  transform: rotate(-3deg) scale(1.05);
}

/* ===== effet graffiti au survol ===== */
.site-header nav a,
.site-footer a:not(.logo):not(.btn-contact) {
  position: relative;
  z-index: 0;                       
  padding: 4px 10px;
  font-family: "Permanent Marker", Arial, sans-serif;
  letter-spacing: 0.5px;
  transition: color 0.2s, transform 0.2s;
}

/* le « coup de bombe » : un trait violet qui se peint de gauche à droite */
.site-header nav a::before,
.site-footer a:not(.logo):not(.btn-contact)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #a020f0;
  border-radius: 4px 10px 5px 12px;
  transform-origin: left center;
  transform: scaleX(0) skewX(-12deg) rotate(-2deg);
  transition: transform 0.25s ease-out;
}

.site-header nav a:hover,
.site-footer a:not(.logo):not(.btn-contact):hover {
  color: #fff;
  transform: rotate(-2deg);
  text-shadow: 2px 2px 0 #000;      /* ombre noire façon tag */
}

.site-header nav a:hover::before,
.site-footer a:not(.logo):not(.btn-contact):hover::before {
  transform: scaleX(1) skewX(-12deg) rotate(-2deg);
}

  /* effet peinture en cliquant sur les liens */
  /* ===== transition « peinture qui coule » entre les pages ===== */
.paint-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);      /* invisible par défaut */
}

.paint-layer:nth-child(1) { background: #a020f0; }
.paint-layer:nth-child(2) { background: wheat; }
.paint-layer:nth-child(3) { background: #000; }

/* logo au centre pendant que l'écran est couvert */
.paint-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10000;
  height: 160px;
  width: auto;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-8deg) scale(0.6);
  transition: opacity 0.25s, transform 0.25s;
}

.paint-overlay.is-covering .paint-logo {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-4deg) scale(1);
  transition: opacity 0.3s 0.5s, transform 0.4s 0.5s;
}

/* arrivée sur la nouvelle page : tout est déjà couvert, sans animation */
html.paint-arriving .paint-layer {
  clip-path: none;
  transition: none;
}

html.paint-arriving .paint-logo {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-4deg) scale(1);
  transition: none;
}

/* accessibilité : pas d'animation si l'utilisateur l'a désactivée */
@media (prefers-reduced-motion: reduce) {
  .paint-overlay { display: none; }
}

  /* homepage */
  .parkour {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .parkour::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50); /* 0.45 = 45% d'opacité, ajustez selon vos goûts */
    z-index: 1;
  }
  .parkour-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
    color: white ;
    text-align: center;
    font-weight: bold;
  }
  .parkour-content h1 {
    font-family: "Permanent Marker", Arial, sans-serif;
    font-size:2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 0 #a020f0;
  }
  .parkour-content p {
    font-family:'Times New Roman', Times, serif, Arial, sans-serif;
    letter-spacing: 5px;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }

  /* ===== accueil en escalier ===== */
.escalier {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.escalier-ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* une ligne sur deux : l'image passe à gauche */
.escalier-ligne:nth-child(even) .escalier-image {
  order: -1;
}

.escalier-texte h2 {
  margin: 0 0 1rem;
  font-family: "Permanent Marker", Arial, sans-serif;
  font-size: 2rem;
  color: #a020f0;
}

.escalier-texte p {
  line-height: 1.7;
}

.escalier-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 8px 8px 0 #a020f0;      /* ombre violette façon sticker */
}

@media (max-width: 768px) {
  .escalier-ligne {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .escalier-ligne .escalier-image,
  .escalier-ligne:nth-child(even) .escalier-image {
    order: -1;                        /* sur téléphone : image au-dessus du texte */
  }
}


  @media (max-width: 768px) {
    .site-header,
    .site-footer {
      height: auto;                     /* hauteur s'adapte */
      flex-wrap: wrap;                  /* vont à la ligne */
      justify-content: center;
      padding: 12px 16px;
      gap: 12px;
    }
    .site-header nav,
    .site-footer nav {
      margin-left: 0;
      width: 100%;
  }

   .site-header nav ul,
   .site-footer nav {
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px 16px;
  }

   .btn-contact {
     margin-left: 0;
  }

   .parkour-content {
     margin: 1rem;
     padding: 1.25rem;
  }

   .parkour-content h1 {
     font-size: 1.8rem;
  }

   .parkour-content p {
     font-size: 1rem;
  }
}


/* cours_pages */
/* images toujours contenues dans leur conteneur */
img {
  max-width: 100%;
  height: auto;
  }

  /* ===== carrousel de blocs ===== */
.cours-titre {
  text-align: center;
  margin: 2rem 0 1rem;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 40px 3rem;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;   /* chaque bloc s'aligne en fin de défilement */
  scrollbar-width: none;           /* cache la barre de défilement (Firefox) */
  flex: 1;
}
.carousel-item {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.carousel-titre {
  margin: 0;
  padding: 1rem 1.25rem 0.5rem;
  font-size: 1.3rem;
}

.carousel-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  letter-spacing: 3px;
  padding: 1rem 1.25rem 1.5rem;
}

.carousel-text p:last-of-type {
  margin-bottom: 1rem;
}

.carousel-link {
  align-self: flex-start;
  margin-top: auto;        /* colle le bouton en bas du bloc */
  padding: 8px 20px;
  border-radius: 8px;
  background: #a020f0;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s;
}

.carousel-link:hover {
  transform: rotate(-3deg) scale(1.05);
}

/* page de cours */
.cours-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.cours-retour {
  display: inline-block;
  margin-bottom: 1rem;
  color: #a020f0;
  text-decoration: none;
}

.cours-retour:hover { text-decoration: underline; }

.cours-intro {
  font-size: 1.2rem;
  color: #555;
}

.cours-video {
  margin: 1.5rem 0;
}

.cours-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}
.cours-infos {
  list-style: none;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: #f4eaff;
  border-left: 4px solid #a020f0;
  border-radius: 8px;
}

.cours-infos li + li { margin-top: 0.4rem; }

.cours-body { line-height: 1.7; margin-bottom: 2rem; }


/* ===== page actualités ===== */
.actu-hero {
  margin-top: 20px;
  display: flex;
  border-radius: 500px;
  min-height: 50vh;
  padding: 3rem 1rem;
  box-sizing: border-box;
}

.evenements {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.evenements-titre {
  text-align: center;
  margin: 0 0 2rem;
  font-family: "Permanent Marker", Arial, sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
  color: #a020f0;
}

.evenements-liste {
  display: grid;
  gap: 24px;
}

.evenement {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background-color: #222;            /* si aucune image n'est choisie */
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
}

/* dégradé sombre en bas pour garder le texte lisible */
.evenement::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.25));
}

.evenement-contenu {
  position: relative;                /* passe au-dessus du dégradé */
  padding: 1.5rem 2rem;
  color: #fff;
}

.evenement-contenu h3 {
  margin: 0 0 0.25rem;
  font-family: "Permanent Marker", Arial, sans-serif;
  font-size: 1.6rem;
  text-shadow: 2px 2px 0 #a020f0;
}

.evenement-date {
  margin: 0 0 0.75rem;
  font-weight: bold;
  color: #ff9ad0;
}

.evenement-contenu p {
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.evenement-adresse a {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid #a020f0;
}

.evenement-adresse a:hover {
  background: #a020f0;
}

@media (max-width: 768px) {
  .evenement-contenu { padding: 1.25rem; }
  .evenement { min-height: 240px; }
}

/* ===== galerie ===== */
.galerie {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.galerie-titre {
  text-align: center;
  margin: 0 0 1.5rem;
  font-family: "Permanent Marker", Arial, sans-serif;
  letter-spacing: 2px;
}

/* boutons Photo / Vidéo */
.galerie-filtres {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.galerie-filtre {
  padding: 8px 28px;
  border: 2px solid #a020f0;
  border-radius: 999px;
  color: #a020f0;
  text-decoration: none;
  font-family: "Permanent Marker", Arial, sans-serif;
  transition: transform 0.2s;
}

.galerie-filtre:hover { transform: rotate(-3deg) scale(1.05); }

.galerie-filtre.actif {
  background: #a020f0;
  color: #fff;
}

/* grille : 3 colonnes x 3 lignes = 9 éléments */
.galerie-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.galerie-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.galerie-item img {
  display: block;
  width: 100%;
  height: auto;
}

.galerie-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.galerie-item figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.galerie-vide {
  text-align: center;
  color: #777;
}

/* pagination */
.galerie-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}

.galerie-pagination a {
  min-width: 38px;
  padding: 8px 12px;
  box-sizing: border-box;
  text-align: center;
  border: 2px solid #a020f0;
  border-radius: 8px;
  color: #a020f0;
  text-decoration: none;
}

.galerie-pagination a:hover,
.galerie-pagination a.actif {
  background: #a020f0;
  color: #fff;
}

@media (max-width: 900px) {
  .galerie-grille { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .galerie-grille { grid-template-columns: 1fr; }
}


/* Page contact */

/* ===== page contact ===== */
/* ===== page contact ===== */
.contact {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.contact-titre {
  text-align: center;
  margin: 0 0 2rem;
  font-family: "Permanent Marker", Arial, sans-serif;
  letter-spacing: 2px;
}

.contact-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;            /* centre l'image et le formulaire verticalement */
}

.contact-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.contact-formulaire {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;                 /* centre le formulaire dans sa colonne */
}

.contact-formulaire h2 {
  margin-top: 0;
  text-align: center;
  font-family: "Permanent Marker", Arial, sans-serif;
  color: #a020f0;
}

.contact-intro {
  text-align: center;
}

.contact-champ {
  margin-bottom: 1.1rem;
}

.contact-champ label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: bold;
}

.contact-champ input,
.contact-champ textarea,
.contact-champ select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font: inherit;
}

.contact-champ input:focus,
.contact-champ textarea:focus {
  outline: none;
  border-color: #a020f0;
}

.contact-champ textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-erreur {
  margin: 0.3rem 0 0;
  color: #d0021b;
  font-size: 0.9rem;
}

.contact-formulaire button {
  display: block;
  margin: 1.5rem auto 0;          /* bouton « Envoyer » centré */
  border: none;
  cursor: pointer;
  font: inherit;
}

.contact-merci {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .contact-grille { grid-template-columns: 1fr; }
}


/* ===== page à propos ===== */
.apropos-bandeau {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  margin-top: 30px;
  background-color: #222;            /* si aucune image n'est choisie */
  background-size: cover;
  background-position: center;
}

.apropos-bandeau::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.apropos-bandeau h1 {
  position: relative;
  margin: 0;
  color: #fff;
  font-family: "Permanent Marker", Arial, sans-serif;
  font-size: 2.5rem;
  letter-spacing: 3px;
  text-shadow: 3px 3px 0 #a020f0;
}

.apropos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.apropos-presentation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.apropos-texte h2,
.apropos-valeurs h2 {
  margin: 0 0 1rem;
  font-family: "Permanent Marker", Arial, sans-serif;
  color: #a020f0;
}

.apropos-texte p {
  line-height: 1.7;
}

.apropos-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 8px 8px 0 #a020f0;
}

.apropos-valeurs {
  margin-top: 4rem;
}

.apropos-valeurs h2 {
  text-align: center;
  font-size: 2rem;
}

.valeurs-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.valeur-carte {
  padding: 1.5rem;
  text-align: center;
  background: #f4eaff;
  border-radius: 12px;
  border-top: 4px solid #a020f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.valeur-carte h3 {
  margin: 0 0 0.5rem;
  font-family: "Permanent Marker", Arial, sans-serif;
  color: #a020f0;
}

.valeur-carte p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .apropos-presentation { grid-template-columns: 1fr; gap: 24px; }
  .apropos-image { order: -1; }       /* sur téléphone : image au-dessus du texte */
  .apropos-bandeau h1 { font-size: 1.8rem; }
}

/* ===== mentions légales ===== */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.legal h1 {
  text-align: center;
  margin: 0 0 2rem;
  font-family: "Permanent Marker", Arial, sans-serif;
  letter-spacing: 2px;
  color: #a020f0;
}

.legal-texte h2,
.legal-texte h3 {
  margin: 2rem 0 0.5rem;
}

.legal-texte p,
.legal-texte li {
  line-height: 1.7;
}