:root{
    --primary-color: #8fc445;
    --secondary-color: #adae35;
}

@font-face {
  font-family: 'Roboto_Condensed'; /* set name */
  src: url("../ressources/font/Roboto_Condensed-Black.ttf") format('truetype'); /* url of the font */
}

@font-face{
    font-family: 'Roboto_Thin'; /* set name */
    src: url("../ressources/font/Roboto_SemiCondensed-Thin.ttf") format('truetype'); /* url of the font */
}

/* Reset simple */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    margin: 0;
	min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr auto;
    background-color: #f5f5f5;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8FC445;
    background: linear-gradient(180deg,rgba(143, 196, 69, 1) 0%, rgba(119, 171, 46, 1) 100%);
    font-family: Roboto_Condensed;
    text-shadow: 1px 1px 2px black;
    padding: 15px 30px;
    position: relative;
    min-height: 150px;
    border-bottom: 1px solid black;
    margin-bottom: 25px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 200px; /* distance entre logo et menus */
}

.nav-left,
.nav-right {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-left {
    margin-right: auto;
}

.nav-right {
    margin-left: auto;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 200px;
    margin-top: 20px;
    display: block;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.navbar a:hover {
    color: var(--secondary-color);
}

.navbar a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 2px;

    background: var(--secondary-color);

    transition: width .3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.dropdown {
    color: white;
    position: relative;
}

.dropdown:hover {
    color: var(--secondary-color);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--primary-color);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 1000;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;

    transform: translateX(-50%) translateY(0);
}

.submenu li {
    display: block;
}

.submenu a {
    display: block;
    padding: 12px 20px;
    color: white;
    transition: .2s ease;
}

.submenu a:hover {
    background: rgba(119,171,46,.1);
    color: var(--secondary-color);
    padding-left: 28px;
}

.dropdown > a::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    transition: transform .2s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

.carousel {
    position: relative;
    width: 70%;
    height: 350px;
    max-width: 1100px;
    margin: auto;
    margin-bottom: 10px;
    overflow: hidden;
    padding: 15px;
    background: linear-gradient(135deg,#F3F8EB,#EAF3DC);
    border: 1px solid rgba(119, 171, 46, 0.3);
    border-radius: 20px;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    z-index: 1;

    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slides .img{
    border-radius: 16px;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(119, 171, 46, .35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 999;
}

.prev {
    left: 25px;
}

.next {
    right: 25px;
}

.prev:hover,
.next:hover {
    background: var(--primary-color);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 15px;
}

.dots {
    position: absolute;

    bottom: 15px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 10px;

    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: rgba(255,255,255,.5);
    border: 1px solid lightgray;
    cursor: pointer;
}

.dot.active {
    background: var(--primary-color);
}


.custom-section {
    background-color: #f5f5f5;
    font-family: Roboto_Condensed;
    padding-bottom: 20px;
}

.read-section {
    max-width: 900px;
    width: 90%;
    margin: 30px auto;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 30px 40px;
    background-color: #e7e7e7;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    font-family: Roboto_Thin;
    padding-bottom: 20px;
}

.read-section .article-date {
    font-style: italic;
    font-family: Roboto_Thin;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.read-section .article-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.read-section .article-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
    text-align: justify;
}

.read-section .article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.read-section .news-link{
    display: block;
    width: fit-content;
    margin: auto;
    margin-top: 10px;
    padding: 12.5px 30px;
    border: 0;
    border-radius: 100px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: Bold;
    text-decoration: none;
}

.read-section .news-link:hover{
    background-color: var(--secondary-color);
    box-shadow: 0 0 20px #6fc5ff50;
    transform: scale(1.1);
    transition: all .3s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-family: Roboto_Thin;
    text-align: center;
    font-style: italic;
    margin-top: 30px;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px black;
}

.section-title::after {
    content: "";
    display: block;
    width: 80%;
    height: 1px;
    margin: auto;
    margin-top: 10px;
    background: linear-gradient(
        to right,
        transparent 0%,
        #222 20%,
        #222 80%,
        transparent 100%
    );
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.date_article {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-content h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px black;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-card .news-link{
    display: block;
    width: fit-content;
    margin: auto;
    padding: 12.5px 30px;
    border: 0;
    border-radius: 100px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: Bold;
    text-decoration: none;
}

.news-card .news-link:hover{
    background-color: var(--secondary-color);
    box-shadow: 0 0 20px #6fc5ff50;
    transform: scale(1.1);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: black;
}

.team-content {
    padding: 20px;
}

.team-category {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-content h3 {
    margin-bottom: 10px;
    font-family: Roboto_Thin;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px black;
}

.team-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-content .team-calendar{
    display: block;
    width: fit-content;
    margin: auto;
    padding: 12.5px 30px;
    border: 0;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: Bold;
    text-decoration: none;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
}

.team-content .team-calendar:hover{
    background-color: var(--secondary-color);
    box-shadow: 0 0 20px #6fc5ff50;
    transform: scale(1.1);
}

.team-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #222;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.team-btn:hover {
    background: #444;
}

.join-banner{
    display: block;
    width: 500px;
    margin: auto;
    margin-top: 40px;
    border-radius: 6px;
}

.join-training-hours{
	display: block; 
	width: 50%; 
	margin: auto; 
	border: 1px solid black; 
	border-radius: 10px; 
	margin-top: 10px;
}

.pres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pres-card {
    background: var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.pres-card:hover {
    transform: translateY(-5px);
}

.pres-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
}

.pres-content {
    padding: 20px;
}

.pres-content .ca-fonction{
    font-style: italic;
}

.res_icon{
    width: 32px;
    height: 32px;
    margin-left: 10px;
}

.details-list{ 
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.details-list summary {
    cursor: pointer;
    font-weight: bold;
}

.details-list p {
    margin-top: 10px;
}

.details-list-bold{
    font-weight: bold;
}

.details-list a{
    text-decoration: none;
    color: var(--primary-color);
    font-family: Roboto_Condensed;
}

.thought {
    padding: 20px 25px;
    background: #fafafa;
    border-left: 5px solid var(--primary-color);
    font-style: italic;
    color: #555;
    border-radius: 5px;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.sponsors-card {
    background: var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    font-family: Roboto_Condensed;
    text-decoration: none;
}

.sponsors-card:hover {
    transform: translateY(-5px);
}

.sponsors-card a {
    text-decoration: none;
    color: black;
}

.sponsors-card img {
    margin-top: 5px;
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.sponsors-content {
    text-align: center;
    padding: 20px;
}

.contact_form{
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
    font-family: Roboto_Condensed;
    margin-bottom: 20px;
}

.contact_form input[type=text], select, textarea{
    width: 100%; /* Full width */
    padding: 12px; /* Some padding */ 
    border: 1px solid #ccc; /* Gray border */
    border-radius: 4px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

.contact_form input[type=submit]{
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact_form input[type=submit]:hover{
    background-color: var(--secondary-color);
}

footer{
    font-family: Roboto_Thin;
    text-decoration: none;
    color: white;
    border-top: 1px solid black;
    background: #8FC445;
    background: linear-gradient(180deg,rgba(143, 196, 69, 1) 0%, rgba(119, 171, 46, 1) 100%);
}

.footer-content{     
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 50px;
    text-shadow: 1px 1px 2px black;
}

.footer-left{
    flex: 1;
    text-align: left;
}

.footer-right{
    flex: 1;
    text-align: right;
}

.footer h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Réseaux sociaux */
.social-icons { 
    margin-top: 10px;
    display: flex;
    gap: 15p
}

.social-icons img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Liens utiles */
.footer-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-right li {
    margin-bottom: 10px;
}

.footer-right a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px black;
}

.footer-right a:hover {
    color: var(--secondary-color); /* couleur de ton choix */
    text-shadow: 1px 1px 2px black;
}


.footer-bottom {  
    text-align: center;
    padding: 15px;
    border-top: 1px solid #ccc;
    color: white;
    font-size: 0.9rem;
}


/* CACHÉ SUR PC */
.mobile-menu {
    display: none;
}
.burger {
    display: none;
}
/* =========================
   VERSION MOBILE
   ========================= */

@media screen and (max-width: 768px)
{
    /* Menu desktop masqué */
    .nav-left,
    .nav-right {
        display: none;
    }

    /* Burger */
    .burger {
        display: block;

        position: absolute;

        left: 15px;
        top: 50%;

        transform: translateY(-50%);

        font-size: 2rem;
        color: white;

        cursor: pointer;

        z-index: 1001;
    }

    /* Logo */
    .logo {
        position: static !important;
        transform: none !important;
        left: auto !important;
    }

    .logo img {
        height: 90px;
        margin: auto;
        display: block;
    }

    .nav-container {
        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        position: relative;
    }

    .navbar {
        min-height: auto;
        padding: 15px;
    }

    /* Menu mobile */
    .mobile-menu {
        display: none;

        list-style: none;

        position: absolute;

        top: 100%;
        left: 10px;

        width: 260px;

        margin: 0;
        padding: 0;

        background: #77AB2E;

        border-radius: 10px;

        box-shadow: 0 10px 20px rgba(0,0,0,.25);

        z-index: 1000;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu li {
        border-bottom: 1px solid rgba(255,255,255,.2);
    }

    .mobile-menu li:last-child {
        border-bottom: none;
    }

    .mobile-menu a {
        display: block;

        padding: 15px 20px;

        color: white;

        text-decoration: none;

        text-align: left;
    }

    .mobile-menu a:hover {
        background: rgba(255,255,255,.1);

        color: var(--secondary-color);
    }

    .custom-section{
        width: 90%;
        margin: auto;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        width: 90%;
        margin: auto;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card {
        width: 90%;
        margin: auto;
    }

    .pres-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        align-items: stretch;
    }
    .pres-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .join-banner{
        width: 90%;
    }

    .join-training-hours{
        width: 90%;
    }

    .sponsors-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        align-items: stretch;
    }

    .sponsors-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .carousel {
		width: 100%;
        height: 200px;
    }

}