/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    padding-top: 70px; /* Pour ne pas cacher le header lors des ancres */
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: rgb(0, 18, 88);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* HERO SECTION */
.hero {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #fff 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: #007744;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #013f22;
}

/* SECTIONS GÉNÉRALES */
section {
    padding: 4rem 2rem;
    background-color: #fff;
}

section:nth-child(even) {
    background-color: #f5f5f5;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #003366;
    text-align: center;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background-color: #eef6f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-card h3 {
    color: #007744;
    margin-bottom: 0.5rem;
}
/* OBJECTIVES SECTION */
.objectives-list {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.objective-card {
    flex: 1 1 calc(33.333% - 1rem);
    background-color: #f9f9f9;
    border-left: 4px solid #007BFF;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    line-height: 1.6;
    box-sizing: border-box;
    min-width: 250px;
}/* TEAM SECTION */

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

.team-member {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-member h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #003366;
}

.team-member a.member-name {
    color: #003366;
    text-decoration: none;
}

.team-member a.member-name:hover {
    text-decoration: underline;
}

.team-member p {
    font-size: 0.95rem;
    color: #555;
}
/* NEWS SECTION */
.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card h3 {
    color: #007744;
    margin-bottom: 0.5rem;
}

/* PARTNERS SECTION */
.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.partner-logos img {
    height: 60px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* FOOTER */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

footer p {
    margin: 0.5rem 0;
}

/* RESPONSIVE NAVIGATION (MENU MOBILE) */
/* Style du bouton menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #000078;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #08004d;
    transition: all 0.3s ease;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    top: 8px;
}

/* Menu ouvert */
.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger:before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger:after {
    transform: rotate(-45deg);
    top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-nav li {
        margin: 15px 0;
    }
}

/* SCROLL TO TOP BUTTON */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #003366;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    z-index: 999;
    transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #005f33;
}

/* Sections générales */
.section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.section.alt-bg {
    background-color: #f5f5f5;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #003366;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.objectives-list,
.section ul {
    list-style: disc inside;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-left: 1rem;
}

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

.team-member {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-member h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #003366;
}

.team-member p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* WP Cards */
.wp-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.wp-card h3 {
    color: #007744;
    margin-bottom: 0.5rem;
}

/* Technologies Grid */
.tech-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item,
.gallery-grid img {
    text-align: center;
}

.tech-item h4 {
    color: #003366;
    margin-bottom: 0.5rem;
}

/* Member Page */
.member-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.member-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-info h2 {
    color: #003366;
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info,
.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 1rem;
    color: #003366;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
/* Version cercle pour la page équipe seulement */
.team-circle-container {
    position: relative;
    width: 800px;
    height: 800px;
    margin: 100px auto;
}

.team-circle-logo {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.team-circle-member {
    position: absolute;
    width: 150px;
    text-align: center;
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-circle-member:hover {
    transform: scale(1.1) !important;
    z-index: 20;
}

.team-circle-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.team-circle-member h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #003366;
}

.team-circle-member p {
    font-size: 0.8rem;
    color: #555;
    margin: 0.2rem 0;
}

/* Positionnement des membres en cercle */
<?php for($i=0; $i < 9; $i++) {
    $angle=deg2rad($i * 40);
    $x=400+300 * cos($angle);
    $y=400+300 * sin($angle);
    echo ".team-circle-member:nth-child(".($i+1).") { 
top: ".($y-75)."px;
    left: ".($x-75)."px;
}


/* Version responsive */
@media (max-width: 900px) {
    .team-circle-container {
        width: 100%;
        height: auto;
        margin: 50px 0;
    }

    .team-circle-logo {
        position: relative;
        margin: 0 auto 30px;
        transform: none;
        top: auto;
        left: auto;
        display: block;
    }

    .team-circle-member {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin: 15px auto;
        width: 250px;
    }

    .team-circle-member img {
        width: 120px;
        height: 120px;
    }
}
/* Disposition en cercle */
.team-circle-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 50px auto;
}

.team-circle-center {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.team-circle-center img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-circle-members {
    position: relative;
    width: 100%;
    height: 100%;
}

.team-circle-card {
    position: absolute;
    width: 150px;
    top: 50%;
    left: 50%;
    transform:
        translate(-50%, -50%) rotate(var(--angle)) translate(250px) rotate(calc(-1 * var(--angle)));
    z-index: 5;
}

.card-inner {
    width: 150px;
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-circle-card:hover .card-inner {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.team-circle-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Version responsive */
@media (max-width: 768px) {
    .team-circle-wrapper {
        width: 100%;
        height: auto;
        margin: 30px 0;
    }

    .team-circle-center {
        position: relative;
        width: 120px;
        height: 120px;
        margin: 0 auto 30px;
        transform: none;
        top: auto;
        left: auto;
    }

    .team-circle-members {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .team-circle-card {
        position: relative;
        transform: none !important;
        margin: 10px;
    }
}
/* Cercle des photos seulement */
.photos-circle-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 50px auto;
}

.photos-circle-center {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.photos-circle-center img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.photos-circle {
    position: relative;
    width: 100%;
    height: 100%;
}

.photo-circle-item {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform:
        translate(-50%, -50%) rotate(calc(var(--i) * 40deg)) translate(180px) rotate(calc(-1 * var(--i) * 40deg));
    z-index: 5;
    transition: all 0.3s ease;
}

.photo-circle-item:hover {
    transform:
        translate(-50%, -50%) rotate(calc(var(--i) * 40deg)) translate(180px) rotate(calc(-1 * var(--i) * 40deg)) scale(1.2);
    z-index: 20;
}

.photo-circle-item img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Grille des membres */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.team-member {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #f5f5f5;
}

/* Version responsive */
@media (max-width: 768px) {
    .photos-circle-wrapper {
        width: 300px;
        height: 300px;
    }

    .photos-circle-center {
        width: 100px;
        height: 100px;
    }

    .photo-circle-item {
        width: 60px;
        height: 60px;
        transform:
            translate(-50%, -50%) rotate(calc(var(--i) * 40deg)) translate(120px) rotate(calc(-1 * var(--i) * 40deg));
    }
}