:root {
    --brand-green: #16a34a;
    --brand-green-dark: #0e7a36;
    --ink: #111111;
    --bg: #ffffff;
    --muted: #6b7280;
    --surface: #f5f7f9;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08)
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto
}

.space-lg {
    padding: 3rem 0
}

.space-sm {
    margin: 1rem 0
}

.muted {
    color: var(--muted);
    font-size: .95rem
}

.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #eef1f4;
    z-index: 50
}

.site-header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.1rem
}

.brand img {
    width: 250px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.primary-nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0
}

.primary-nav a {
    color: var(--ink);
    text-decoration: none;
    padding: .5rem .8rem;
    border-radius: 10px
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.primary-nav a.active {
    background: var(--surface)
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--ink);
    border-radius: 3px
}

@media (max-width:900px) {
    .nav-toggle {
        display: flex
    }

    .primary-nav {
        position: absolute;
        inset: 60px 0 auto 0;
        background: #fff;
        border-bottom: 1px solid #eef1f4;
        transform: translateY(-120%);
        transition: transform .25s ease
    }

    .primary-nav.open {
        transform: translateY(0)
    }

    .primary-nav ul {
        flex-direction: column;
        padding: 1rem
    }
}

.site-footer {
    margin-top: 4rem;
    background: #0b0d0f;
    color: #d1d5db;
    padding: 2.5rem 0
}

.site-footer a {
    color: #d1fae5
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    align-items: start
}

.hero {
    position: relative
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.carousel .slides {
    display: flex;
    transition: transform .6s ease
}

.carousel .slide {
    min-width: 100%;
    position: relative;
    height: 58vh
}

.carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.8)
}

.carousel .caption {
    position: absolute;
    left: 5%;
    bottom: 8%;
    color: #fff;
    text-shadow: 0 10px 25px rgba(0, 0, 0, .35)
}

.carousel .caption h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    margin: 0 0 .3rem
}

.carousel .caption p {
    margin: 0
}

.carousel button.prev,
.carousel button.next {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 26px;
    display: grid;
    place-items: center;
    cursor: pointer
}

.carousel button.prev {
    left: 10px
}

.carousel button.next {
    right: 10px
}

.carousel .dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    translate: -50% 0;
    display: flex;
    gap: 8px
}

.carousel .dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    opacity: .7
}

.carousel .dots button.active {
    background: #fff;
    opacity: 1
}

.partners {
    padding: 2.2rem 0
}

.partners h2 {
    margin-bottom: 1rem
}

.ticker {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid #eef1f4
}

.ticker .track {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    padding: 1rem;
    animation: scroll 25s linear infinite
}

.ticker:hover .track {
    animation-play-state: paused
}

.ticker img {
    width: 200px;
    height: 80px;
    object-fit: cover;
    filter: grayscale(.3);
    opacity: .9
}

@keyframes scroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.card {
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow)
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem auto
}

.cta-grid .card {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
    color: #fff;
    text-decoration: none
}

.cta-grid .card h3 {
    margin-top: 0
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem
}

.sections .section-block {
    margin-bottom: 1rem
}

.form .field {
    display: grid;
    gap: .35rem;
    margin-bottom: 1rem
}

input,
textarea,
select {
    padding: .8rem .9rem;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #fff;
    font: inherit
}

input:focus,
textarea:focus {
    outline: 2px solid #a7f3d0;
    border-color: #34d399
}

.btn {
    background: var(--brand-green);
    color: #fff;
    border: none;
    padding: .8rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer
}

.btn:hover {
    background: var(--brand-green-dark)
}

.page-header h1 {
    margin: .2rem 0 .3rem
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem
}

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eef1f4;
    background: #fff;
    box-shadow: var(--shadow)
}

.news-card img {
    height: 170px;
    object-fit: cover
}

.news-card .p {
    padding: 1rem
}

.news-card h3 {
    margin: .2rem 0 .4rem
}

.tag {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: .8rem;
    padding: .2rem .5rem;
    border-radius: 999px;
    margin-right: .3rem
}

.iframe-wrap {
    position: relative;
    padding-top: 56.25%
}

.insta-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.news-content p { margin: .4rem 0 .9rem; }
.news-content a { color: var(--brand-green); text-decoration: underline; }
.news-content strong { font-weight: 700; }
.news-content em { font-style: italic; }


/* === Section Schéma des équipes (VOCA) === */
.section-equipes {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
}

.schema-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.schema-equipes-img {
  max-width: 95%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.schema-equipes-img:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}


/* === Nos équipes (VOCA) === */
.nos-equipes {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.nos-equipes h2 {
  color: #007a3d;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 700;
}

.team-block {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.team-photo {
  background-color: #ddd;
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 8px;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.team-block h3 {
  color: #007a3d;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.team-block p {
  color: #222;
  line-height: 1.5;
  margin: 6px 0;
  font-size: 1rem;
}


/* === Grille d'affichage des équipes === */
.nos-equipes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 40px;
  background-color: #ffffff;
  text-align: center;
}

.team-block {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.team-block:hover {
  transform: translateY(-4px);
}

.team-photo {
  background-color: #ddd;
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 8px;
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.team-block h3 {
  color: #007a3d;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.team-block p {
  color: #222;
  line-height: 1.5;
  margin: 4px 0;
  font-size: 0.95rem;
}


/* === Nouvelle mise en page des équipes === */
.nos-equipes {
  background-color: #ffffff;
  padding: 80px 40px;
  text-align: center;
}

.nos-equipes h2 {
  color: #007a3d;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 60px;
  font-weight: 700;
  grid-column: 1 / -1;
}

.nos-equipes .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 50px;
  justify-content: center;
}

.team-block {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  max-width: 600px;
  margin: 0 auto;
}

.team-block:hover {
  transform: translateY(-6px);
}

.team-photo {
  background-color: #e0e0e0;
  color: #555;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 10px;
  width: 100%;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.team-block h3 {
  color: #007a3d;
  margin-bottom: 15px;
  font-size: 1.7rem;
}

.team-block p {
  color: #222;
  line-height: 1.6;
  margin: 8px 0;
  font-size: 1.05rem;
}


/* === Correction affichage côte à côte === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  justify-items: center;
  align-items: start;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-block {
  width: 100%;
  max-width: 500px;
}


/* === Retour à un bloc par ligne === */
.nos-equipes {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.nos-equipes h2 {
  color: #007a3d;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 700;
}

.team-block {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.team-photo {
  background-color: #ddd;
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 8px;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.team-block h3 {
  color: #007a3d;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.team-block p {
  color: #222;
  line-height: 1.5;
  margin: 6px 0;
  font-size: 1rem;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.insta-grid img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.2s ease;
}
.insta-grid img:hover {
  transform: scale(1.05);
}


/* Réinitialisation et style de base */
.primary-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-nav > ul > li {
    position: relative;
    display: inline-block;
}

/* Cache TOUS les sous-menus par défaut - IMPORTANT */
.primary-nav .submenu {
    display: none !important;
    position: absolute;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
}

/* Premier niveau de sous-menu (sous Équipes) */
.primary-nav > ul > li.has-submenu > .submenu {
    top: 100%;
    left: 0;
}

/* Deuxième niveau de sous-menu (sous Équipe Jeunes, etc.) */
.primary-nav .submenu li.has-submenu > .submenu {
    top: 0;
    left: 100%;
}

/* Affiche UNIQUEMENT au survol direct */
.primary-nav .has-submenu:hover > .submenu {
    display: block !important;
}

/* Style des éléments du sous-menu */
.primary-nav .submenu li {
    display: block;
    position: relative;
}

.primary-nav .submenu a {
    display: block;
    padding: 10px 15px;
    white-space: nowrap;
    color: #333;
    text-decoration: none;
}

.primary-nav .submenu a:hover {
    background: #f0f0f0;
}

/* Indicateurs de flèche */
.primary-nav .has-submenu > a::after {
    content: " ▼";
    font-size: 0.7em;
    margin-left: 5px;
}

.primary-nav .submenu .has-submenu > a::after {
    content: " ▶";
    float: right;
    margin-left: 10px;
}

/* Style pour mobile */
@media (max-width: 768px) {
    .primary-nav > ul > li {
        display: block;
    }
    
    /* Cache les sous-menus par défaut sur mobile */
    .primary-nav .submenu {
        position: static;
        display: none !important;
        box-shadow: none;
        background: #f5f5f5;
        padding-left: 15px;
    }
    
    /* Affiche le sous-menu quand la classe 'open' est active */
    .primary-nav .has-submenu.open > .submenu {
        display: block !important;
    }
    
    /* Sous-menus de niveau 2 */
    .primary-nav .submenu .submenu {
        padding-left: 15px;
        background: #ebebeb;
    }
}

/* Desktop - garde le comportement hover */
@media (min-width: 769px) {
    .primary-nav .has-submenu:hover > .submenu {
        display: block !important;
    }
}