body {
    margin: 0;
    background: #f0f0f5;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    z-index: 1000;
    background: transparent;
}

header.scrolled {
    background: rgba(241, 54, 129, 0.85);
    backdrop-filter: blur(5px);
}

.nav-links a {
    margin-left: 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
}

@media(max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #f13681;
        padding: 20px;
        border-radius: 10px;
        flex-direction: column;
    }
    .nav-links a {
        margin: 10px 0;
        color: white;
    }
    .burger {
        display: flex;
    }
    .nav-links.open {
        display: flex;
    }
    .candidat-content {
        flex-direction: column;
        align-items: center;
    }
    .candidat-text {
        max-width: 100%;
        text-align: center;
    }
    .candidat-intro {
        text-align: center;
    }
    .vision {
        grid-template-columns: 1fr; /* mobile-first : 1 post-it par ligne */
    }
    .gallery-slide {
        flex-direction: column;
    }
    footer {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    footer .column {
        text-align: center !important;
    }
    .contact-sectionFinal input,
    .contact-sectionFinal textarea {
        max-width: 200px !important;
    }
}

.hero {
    margin-top: 0;
    height: 80vh;
    overflow: hidden;
    position: relative;
    
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

/* Slides */
.slides {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease, transform 12s ease;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
}

/* Animation zoom uniquement sur slide active */
@keyframes zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Hero text */
.hero-content {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    transition: all 0.5s ease;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 2rem;
    margin: 0 0 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 0 0 15px;
}

.hero-content button {
    margin-top: 10px;
    padding: 12px 28px;
    border: none;
    background: #f13681;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}

.hero-content button:hover {
    background: #d12d6f;
}

.hero .hero-slogan {
    position: absolute;
    top: 0%;           /* toujours tout en haut */
    left: 0%;          /* encore plus à gauche */
    transform: rotate(-18deg);  /* inclinaison conservée */
    font-family: 'Pacifico', cursive;
    font-size: 2.2rem;
    color: #f13681;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    white-space: pre-line;
    z-index: 5;
}

/* Responsive */
@media (min-width: 768px) {
    .hero .hero-slogan {
        font-size: 3rem;
        top: 0%;
        left: 2%;       /* légèrement plus centré sur desktop si besoin */
        transform: rotate(-18deg);
    }
}


@keyframes sway {
    0% { transform: translateX(-50%) rotate(-3deg); }
    100% { transform: translateX(-50%) rotate(3deg); }
}

/* Dots */
.dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    height: 14px;
    width: 14px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
    opacity: 0.6;
}

.dot.active {
    opacity: 1;
    background: #f13681;
}

@media(min-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.5rem; }
    .hero-content button { font-size: 1.2rem; padding: 16px 32px; }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}


section {
    padding: 60px 20px;
}

/* Candidat */
#candidat {
    max-width: 1000px;
    margin: 40px auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

#candidat h2 {
    margin-bottom: 20px;
}

.separator {
    width: 60px;
    height: 3px;
    background: #f13681;
    margin: 15px auto 25px;
}

.presentation-text {
    margin-bottom: 30px;
    font-size: 1.1em;
}

.candidat-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

#candidat img {
    width: 300px;
    max-width: 100%;
    border-radius: 10px;
    flex-shrink: 0;
}

.candidat-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 250px;
    max-width: 100%;
}

.candidat-description {
    font-weight: bold;
    color: #f13681;
    margin-bottom: 15px;
}

.candidat-intro {
    line-height: 1.6;
    text-align: left;
}

/* Team slider */
.team-slider-container {
    contain: layout paint;
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden;
}
.team-slider.is-sliding .team-member {
    box-shadow: none;
  }

.team-slider {
    will-change: transform;
    display: flex;
    transition: transform 0.5s ease;
}

.team-slide {
    display: flex;
    gap: 20px;
    min-width: 100%;
}

.team-member {
    flex: 1;
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}


@media (hover: hover) {
    .team-member:hover {
      transform: translateY(-4px);
    }
  }

.team-member h3 {
    margin: 15px 0 5px;
}

.team-member img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%; /* optionnel si avatar rond */
  }

.team-nav {
    text-align: center;
    margin-top: 10px;
}

.team-nav button {
    padding: 5px 10px;
    margin: 0 5px;
    border: none;
    background: #f13681;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.team-nav button:hover {
    background: #f13681;
}

.team-member .role {
    font-weight: bold;
    color: #f13681;
    margin-bottom: 10px;
}

.team-member .desc {
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

.team-more {
    margin-top: 15px;
    align-self: center;
    padding: 8px 16px;
    background: #f13681;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.team-more:hover {
    background: #d12d6f;
}

#teamModal .modal-content {
    display: flex;
    flex-direction: column; /* mobile par défaut */
    align-items: center;
    padding: 32px 24px;
    max-width: 900px;
    width: 95%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08);
    gap: 32px;
  }
  
  /* Layout horizontal pour grands écrans */
  @media (min-width: 768px) {
    #teamModal .modal-content {
      flex-direction: row;
      align-items: center;  /* <- centrage vertical ici */
      gap: 40px;
    }
  }
  
  /* Image beaucoup plus grande */
  #teamModal img {
    width: 360px;
    height: 360px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center 20%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  
  /* Texte à droite */
  #teamModal .modal-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
  }
  
  /* Nom / rôle */
  #teamModal h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #222;
  }
  
  #teamModal .role {
    font-weight: 600;
    color: #f13681;
  }
  
  /* Séparateur très large */
  #teamModal .separator {
    width: 75%; /* 3/4 de la largeur disponible */
    height: 6px;
    background: #f13681;
    border-radius: 3px;
  }
  
  /* Texte */
  #teamModal p {
    margin: 0;
    line-height: 1.7;
    color: #444;
  }
  
  /* Fermeture */
  #closeTeamModal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
  }
  
  #closeTeamModal:hover {
    color: #000;
  }

/* Vision */
.vision-description {
    text-align: center;
    margin: 25px auto 30px;
    font-size: 1.1em;
}

.vision {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    padding: 40px 20px;
}
.logo {
    color: #fff;
}

@media (min-width: 992px) {
    .vision {
        grid-template-columns: repeat(3, 1fr);
    }
    .actus-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vision .postit {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vision .postit h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision .postit p{
    text-align: justify;
}

.postit-icon {
    font-size: 1.5em;
    display: inline-block;
    color: #f13681;
}
/* Contact */
.contact-section {
    text-align: center;
    background-image: url('https://www.ngine.fr/data/20/recommandation-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 75px 30px;
    margin: 60px 0;
    border-radius: 0;
    color: #fff;
}
.contact-section h2 {
    margin-bottom: 20px;
    color: #fff;
}

.contact-section a {
    padding: 10px 20px;
    background: #f13681;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    color: #fff;
}

.contact-section a:hover {
    background: #f13681;
}

/* Actus */
.actus-slider-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
}

.actus-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.actus-slide {
    min-width: 100%;
}

.actus-cards {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.actus-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.actus-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.actus-card h3 {
    padding: 15px 15px 10px;
    margin: 0;
    font-size: 1.2em;
}

.actus-description {
    padding: 0 15px;
    margin: 0 0 15px;
    color: #666;
    line-height: 1.5;
}

.actus-footer {
    padding: 10px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.actus-date {
    color: #999;
    font-size: 0.9em;
}

.actus-link {
    padding: 5px 15px;
    background: #f13681;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: 0.3s;
}

.actus-link:hover {
    background: #d12d6f;
}

.actus-nav {
    text-align: center;
    margin-top: 20px;
}

.actus-nav button {
    padding: 5px 10px;
    margin: 0 5px;
    border: none;
    background: #f13681;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.actus-nav button:hover {
    background: #d12d6f;
}

/* Gallery */
.gallery-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 15px;
}

.gallery-slide {
    min-width: 100%;
    display: flex;
    gap: 15px;
}

.gallery-slide a img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-nav {
    text-align: center;
    margin-top: 10px;
}

.gallery-nav button {
    padding: 5px 10px;
    margin: 0 5px;
    border: none;
    background: #f13681;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-nav button:hover {
    background: #d12d6f;
}


/* Footer */
.site-footer {
    background: #1f2933;
    color: #fff;
    padding: 40px 20px;
    font-size: 15px;
  }
  
  .site-footer h3 {
    margin-bottom: 12px;
    font-size: 18px;
  }
  
  .site-footer a {
    color: #fff;
    text-decoration: none;
  }
  
  .site-footer a:hover {
    text-decoration: underline;
  }
  
  /* Colonnes */
  .footer-columns {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
  }
  
  .column {
    flex: 1;
  }
  
  .column.right {
    text-align: right;
  }
  
  /* Réseaux sociaux */
  .footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin: 12px 0 8px;
  }
  
  .social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: transform .3s ease, box-shadow .3s ease;
  }
  
  .social:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
  }
  
  /* Couleurs */
  .facebook { background: #1877f2; }
  .instagram {
    background: linear-gradient(45deg, #feda75, #d62976, #962fbf);
  }
  
  /* Mentions */
  .mentions {
    margin-top: 10px;
    font-size: 14px;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .footer-columns {
      flex-direction: column;
      text-align: center;
    }
  
    .column.right {
      text-align: center;
    }
  
    .footer-social {
      justify-content: center;
    }
  }
  


button {
    background: #f13681;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal h2 {
    color: #f13681;
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 2001;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-content h3 {
    padding: 20px 20px 10px;
    margin: 0;
    font-size: 1.5em;
}

.modal-text {
    padding: 0 20px 20px;
    line-height: 1.6;
    color: #333;
}

.modal-footer {
    padding: 15px 20px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modalImg {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  

.modal-date {
    color: #999;
    font-size: 0.9em;
}

#vote {
    padding: 60px 20px;
}

.vote-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.vote-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background: #f13681;
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-secondary {
    background: #f13681;
    color: #fff;
}

.btn-secondary:hover {
    opacity: 0.85;
}

.vote-info {
    font-size: 0.9em;
    color: #fff;
}

.vote-banner {
    background-image: url('./bandeauvoter1.webp');
    background-size: cover;       /* pour que l'image remplisse toute la section */
    background-position: center;  /* recentre l'image */
    background-repeat: no-repeat; /* pas de répétition */
    padding: 75px 30px;
    position: relative;           /* si tu veux ajouter un overlay */
    color: #fff;
}

.vote-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* ajustable */
    z-index: 0;
}

.vote-banner > * {
    position: relative;
    z-index: 1;
}

.contact-sectionFinal {
    text-align: center;
    background-image: url('https://www.ngine.fr/data/20/recommandation-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 75px 30px;
    color: #fff;
}

.contact-sectionFinal input,
.contact-sectionFinal textarea {
    width: 100%;
    max-width: 500px;
    margin: 10px auto;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}

.contact-sectionFinal textarea {
    resize: vertical;
}

.contact-sectionFinal button {
    background: #f13681;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.contact-sectionFinal button:hover {
    background: #d12d6f;
}

#contactMessage {
    font-size: 1em;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

#scrollTopBtn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #d12d6f;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 1000;
  }
  
  #scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
  }
  
  #scrollTopBtn:hover {
    transform: translateY(-4px);
  }
  .social-banner {
    position: relative;
    background: url('bandeaureseausociaux.webp') center/cover no-repeat;
    padding: 80px 20px;
    color: #fff;
    text-align: center;
    overflow: hidden;
  }
  
  .social-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* overlay semi-transparent derrière le texte */
    z-index: 1;
  }
  
  .social-banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .social-banner h2 {
    font-size: 32px;
    margin-bottom: 32px;
    font-weight: 600;
    line-height: 1.3;
  }
  
  .social-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .social-buttons a.social {
    display: flex;
    align-items: center;
    gap: 16px;           /* espace icône + texte */
    padding: 18px 48px;  /* boutons XL */
    border-radius: 50px; /* très arrondi style pill */
    color: #fff;
    font-weight: 700;    /* texte bien visible */
    font-size: 20px;     /* texte plus grand */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
  }

/* Couleurs réseaux */
.social-buttons a.facebook {
    background: #1877f2;
  }
  
  .social-buttons a.instagram {
    background: linear-gradient(45deg, #feda75, #f13681, #962fbf);
  }
  
  
/* Hover dynamique */
.social-buttons a.social:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  }

  /* Effet pulse subtil */
.social-buttons a.social::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 60px;
    box-shadow: 0 0 0 rgba(255,255,255,0);
    transition: box-shadow 0.4s ease-in-out;
  }

  .social-buttons a.social:hover::after {
    box-shadow: 0 0 20px rgba(255,255,255,0.25);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .social-banner h2 {
      font-size: 24px;
    }
    .social-buttons a.social {
        font-size: 18px;
        padding: 18px 36px;
        gap: 14px;
      }
  }
  