/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fffefe;
    padding-top: 120px; /* Pour compenser le header fixe */
}

/* Enveloppe fixe du header */
.header-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fbe3e3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8em 2em;
    background-color: #fdc8c8;
}

/* Logo */
.logo-container img {
    height: 70px;
    width: auto;
}

/* Titre */
header h1 {
    font-size: 1.3em;
    font-weight: bold;
    flex: 1;
    text-align: center;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Panier */
header .panier-link {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

header .panier-link:hover {
    color: #c71f1f;
    transform: translateY(-2px);
}

/* Séparateur rouge entre header et nav */
.header-separator {
    height: 2px;
    background-color: #c71f1f;
}

/* Menu de navigation */
nav {
    background-color: #fbe3e3;
    padding: 0.5em 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: #000;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Page active */
nav ul li a.active {
    background-color: #c71f1f;
    color: white;
    font-weight: bold;
}

/* Effet au survol */
nav ul li a:hover {
    background-color: #f0baba;
    color: #000;
}

/* Contenu principal */
main {
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

main section {
    margin-bottom: 2em;
}

main h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 0.5em;
}

main p {
    margin-bottom: 1em;
    color: #555;
}

main video, main iframe {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: auto;
}

figcaption {
    font-size: 0.9em;
    color: #777;
    text-align: center;
}

.column-list {
    display: flex;
}

/* Bloc partenaires */
.partners {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.partner-card {
    background-color: #fce9e9;
    border-radius: 10px;
    padding: 20px;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.partner-card img {
    max-width: 100px;
    margin-bottom: 10px;
}

.partner-card h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.partner-card p {
    margin: 5px 0;
}

.partner-card .location {
    color: red;
}

/* Pied de page */
footer {
    background-color: #fdc8c8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    position: relative;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    border-top: 3px solid #c71f1f;
}

/* Texte copyright à gauche */
footer p {
    margin: 0;
    font-weight: bold;
    color: #555;
    font-style: italic;
    font-size: 0.95em;
}

/* Partenaires dans le footer */
.partenaires-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex: 1;
}

.partenaires-footer img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.partenaires-footer img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Menu liens à droite */
footer nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

footer nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: #000;
    transition: color 0.3s ease, transform 0.2s ease;
}

footer nav ul li a:hover {
    color: #c71f1f;
    transform: translateY(-2px);
}

/* Responsive pour le footer */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    footer nav ul {
        justify-content: center;
        gap: 10px;
    }

    .partenaires-footer img:first-child {
        height: 70px;
    }
}

/* Responsive pour header, nav et body */
@media (max-width: 768px) {
    body {
        padding-top: 220px; /* Plus de marge pour éviter le chevauchement du header */
    }

    header h1 {
        font-size: 1rem;
        line-height: 1.2;
        text-align: center;
        padding: 0 10px;
    }

    .logo-container img {
        height: 50px;
    }

    header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav {
        padding: 1em 0;
    }

    .panier-link {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}


/* Navigation - liens */
nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: #000;
    padding: 12px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a.active {
    background-color: #c71f1f !important;
    color: white !important;
    font-weight: bold;
}

nav ul li a:hover {
    background-color: #f0baba;
    color: #000;
}

.inscription-popup.plus-impact {
    background: linear-gradient(135deg, #ffe3e3, #ffdada);
    border-left: 6px solid #c71f1f;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-in-out;
}

.inscription-popup.plus-impact p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.inscription-popup.plus-impact .slogan {
    font-weight: 500;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
}

.btn-inscription {
    display: inline-block;
    padding: 12px 25px;
    background-color: #c71f1f;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px; /* Espace avec le bouton suivant */
}

.btn-inscription:hover {
    background-color: #a91818;
    transform: translateY(-3px);
}

.btn-decouvrir.inside {
    font-size: 0.85em;
    color: #c71f1f;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 14px;
    border: 1.5px solid #c71f1f;
    border-radius: 5px;
    background-color: white;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-decouvrir.inside:hover {
    background-color: #c71f1f;
    color: white;
    transform: translateY(-2px);
}

/* Animation à l'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.btn-decouvrir-inside {
    font-size: 0.85em;
    color: #c71f1f;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 14px;
    border: 1.5px solid #c71f1f;
    border-radius: 5px;
    background-color: white;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-decouvrir-inside:hover {
    background-color: #c71f1f;
    color: white;
    transform: translateY(-2px);
}

.bloc-projet-ete {
    background-color: #fff1f1;
    padding: 30px;
    margin-top: 40px;
    border-left: 6px solid #c71f1f;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bloc-projet-ete h2 {
    font-size: 1.8em;
    color: #c71f1f;
    margin-bottom: 15px;
}

.bloc-projet-ete p {
    font-size: 1.05em;
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}

.etat-projet {
    display: inline-block;
    background-color: #c71f1f;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9em;
    animation: pulse 1.5s infinite;
}

/* Petit effet “live” qui pulse */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(199, 31, 31, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(199, 31, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 31, 31, 0); }
}

.logo-ville-chambery-adapte {
    text-align: right;
    margin-top: 20px;
}

.logo-ville-chambery-adapte img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo-ville-chambery-adapte img:hover {
    opacity: 1;
}
.etat-projet-index {
    display: inline-block;
    background-color: #c71f1f;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    margin: 0 auto 10px auto;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 2px #ffdada;
}

/* Animation effet pulsation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(199, 31, 31, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(199, 31, 31, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(199, 31, 31, 0);
    }
}
.badge-interne {
    background-color: #c71f1f;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 2px #ffdada;
}
.inscription-popup.plus-impact {
    background: linear-gradient(135deg, #ffe3e3, #ffdada);
    border-left: 6px solid #c71f1f;
    border-radius: 12px;
    padding: 40px 30px 60px 30px; /* plus d'espace interne */
    text-align: center;
    margin: 40px auto;
    max-width: 850px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-in-out;
    position: relative;
}

.badge-interne {
    background-color: #c71f1f;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    display: inline-block;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 2px #ffdada;
    position: absolute;
    top: 20px;
    left: 30px;
}

/* Titre "Quartiers d'Été" */
.inscription-popup.plus-impact p:first-of-type {
    margin-top: 40px; /* descend bien sous le badge */
    margin-bottom: 10px;
    font-size: 1.1em;
}

.inscription-popup.plus-impact .slogan {
    margin-bottom: 25px;
    font-size: 1.05em;
}

.btn-inscription,
.btn-decouvrir.inside {
    margin: 10px 10px 0 10px;
}

/* Logo partenaire plus bas et espacé */
.logo-ville-chambery-inside {
    position: absolute;
    bottom: 20px;
    right: 30px;
}

.logo-ville-chambery-inside img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.inscription-popup.plus-impact {
    position: relative;
    padding: 20px;
    background-color: #ffe5e5;
    border-radius: 15px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden; /* Empêche les débordements */
  }
  
  /* Pour le logo Quartiers d'été */
  .logo-quartier-ete {
    position: absolute;
    bottom: 15px;
    left: 15px;  /* On remplace "right" par "left" */
    width: 60px; /* Ajustable selon ce que tu veux */
    z-index: 1;
  }
  
  .logo-quartier-ete img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .bloc-projet-ete {
    position: relative;
    background-color: #ffe5e5;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
  }
  
  /* Logo Quartiers d'été à gauche */
  .logo-quartier-ete-adapte {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 60px;
    height: auto;
    z-index: 1;
  }
  
  .logo-quartier-ete-adapte img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
      }
      
      .footer-left p {
        margin: 0;
        font-size: 0.95rem;
        color: #333;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      }
      
      .footer-signature a {
        color: #0a0a0a;
        text-decoration: none;
        font-weight: bold;
        font-style: italic;
        animation: glow 2s infinite alternate;
        display: inline-block;
        transition: transform 0.3s ease;
      }
      
      .footer-signature a:hover {
        color: #a01717;
        transform: scale(1.05);
        text-decoration: underline;
      }
      
      @keyframes glow {
        from {
          text-shadow: 0 0 2px #c71f1f;
        }
        to {
          text-shadow: 0 0 10px #ff8f8f;
        }
      }
      /* Zoom au survol */
section img:hover {
  transform: scale(1.05);
}
.flyer-section {
  text-align: center;
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff1f1;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.flyer-section h2 {
  font-size: 2rem;
  color: #c71f1f;
  margin-bottom: 25px;
}

.flyer-container {
  display: inline-block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flyer-container img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
}

.flyer-container:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.flyer-caption {
  margin-top: 10px;
  font-size: 0.95em;
  color: #555;
  font-style: italic;
}
.formation-intro {
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px 30px;
  background: linear-gradient(135deg, #ffe3e3, #ffdada);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.formation-intro h1 {
  font-size: 2.4rem;
  color: #c71f1f;
  margin-bottom: 20px;
}

.formation-intro p {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 25px auto;
}

.btn-inscription {
  display: inline-block;
  padding: 15px 30px;
  background-color: #c71f1f;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-inscription:hover {
  background-color: #a81717;
  transform: translateY(-3px);
}

/* Animation apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .formation-intro h1 {
    font-size: 1.8rem;
  }
  .formation-intro p {
    font-size: 1rem;
  }
  .btn-inscription {
    width: 100%;
  }
}
.inscription-popup.plus-impact {
  background: linear-gradient(135deg, #ffe3e3, #ffdada);
  border-left: 6px solid #c71f1f;
  border-radius: 12px;
  padding: 40px 30px 60px 30px;
  text-align: center;
  margin: 40px auto;
  max-width: 850px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: fadeIn 0.8s ease-in-out;
  position: relative;
}

.inscription-popup.plus-impact p {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 10px;
}

.inscription-popup.plus-impact .slogan {
  font-weight: 500;
  color: #555;
  font-style: italic;
  margin-bottom: 20px;
}

.badge-interne {
  background-color: #c71f1f;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
  display: inline-block;
  margin-bottom: 15px;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 0 2px #ffdada;
}

.btn-inscription {
  display: inline-block;
  padding: 15px 30px;
  background-color: #c71f1f;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 10px;
}

.btn-inscription:hover {
  background-color: #a81717;
  transform: translateY(-3px);
}

.btn-decouvrir.inside {
  font-size: 0.9em;
  color: #c71f1f;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border: 1.5px solid #c71f1f;
  border-radius: 5px;
  background-color: white;
  display: inline-block;
  transition: all 0.3s ease;
  margin: 10px;
}

.btn-decouvrir.inside:hover {
  background-color: #c71f1f;
  color: white;
  transform: translateY(-2px);
}

.logo-ville-chambery-inside {
  position: absolute;
  bottom: 20px;
  right: 30px;
}

.logo-ville-chambery-inside img {
  max-height: 45px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logo-ville-chambery-inside img:hover {
  opacity: 1;
}

/* Animation fadeIn */
@keyframes fadeIn {
  from {opacity:0; transform: translateY(10px);}
  to {opacity:1; transform: translateY(0);}
}

/* Animation pulse */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(199,31,31,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(199,31,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(199,31,31,0); }
}
@media (max-width: 600px) {
  .inscription-popup.plus-impact {
    padding: 25px 15px;
    margin: 20px auto;
    width: 95%;
  }

  .inscription-popup.plus-impact p {
    font-size: 1rem;
  }

  .inscription-popup.plus-impact .slogan {
    font-size: 0.95rem;
  }

  .inscription-popup.plus-impact .btn-inscription,
  .inscription-popup.plus-impact .btn-decouvrir.inside {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 12px;
    margin: 8px 0;
  }

  .logo-ville-chambery-inside,
  .logo-quartier-ete {
    display: none;
  }
}
/* Menu mobile */
@media (max-width: 768px) {
  .header-nav-wrapper {
    position: static;
    background-color: #fbdede; /* fond plus marqué */
    box-shadow: none;
  }

  body {
    padding-top: 0;
  }

  nav {
    display: none; /* menu masqué par défaut */
    flex-direction: column;
    background-color: #ffecec;
    width: 100%;
  }

  nav.active {
    display: flex; /* affiché quand actif */
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li {
    border-bottom: 1px solid #ddd;
  }

  nav ul li a {
    padding: 12px;
  }

  /* Bouton burger */
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    width: 30px;
    height: 30px;
  }

  .burger span {
    display: block;
    height: 3px;
    background-color: #c71f1f;
    border-radius: 2px;
  }
}
