/* Variables CSS */
:root {
    --primary-blue: #8FD3F2;
    --hover-blue: #B8E3F7;
    --off-white: #FAFAFA;
    --text-dark: #2C3E50;
    --text-light: #5A6C7D;
    --white: #FFFFFF;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Compense la hauteur de la navbar fixe */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 70px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background-color: var(--hover-blue);
    color: var(--text-dark);
}

/* Bouton Rejoindre BRG */
.btn-join {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-join:hover {
    background-color: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(143, 211, 242, 0.3);
}

.btn-join::after {
    display: none;
}

/* Menu mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('content/fond_index.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.title-main {
    display: block;
    font-size: 5rem;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 1s ease-out 0.3s both;
}

.title-sub {
    display: block;
    font-size: 3rem;
    color: var(--white);
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInRight 1s ease-out 0.6s both;
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--off-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out 0.9s both;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--off-white);
        margin-top: 1rem;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero-title {
        font-size: 3rem;
    }

    .title-main {
        font-size: 3.5rem;
    }

    .title-sub {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

/* Container général */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Notre équipe */
.team-section {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 400;
}

/* Grille des cartes équipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Cartes membres */
.team-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: auto;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(143, 211, 242, 0.2);
}

.card-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2rem auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card:hover .member-photo {
    transform: scale(1.1);
}

.team-card:hover .card-image {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(143, 211, 242, 0.1) 0%, rgba(143, 211, 242, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.member-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: justify;
}

/* Animation d'apparition */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive pour la section équipe */
@media (max-width: 768px) {
    .team-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .card-image {
        width: 180px;
        height: 180px;
        margin: 1.5rem auto 1rem;
    }

    .card-content {
        padding: 0 1.25rem 1.25rem;
    }

    .member-name {
        font-size: 1.2rem;
    }

    .member-description {
        font-size: 0.9rem;
    }
}

/* Section Ils nous font confiance */
.partners-section {
    position: relative;
    padding: 5rem 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('content/fond_index.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.partners-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(143, 211, 242, 0.1) 0%, rgba(143, 211, 242, 0.2) 100%);
}

.partners-title {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.partners-title::after {
    background-color: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.partner-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.partner-link:hover {
    transform: translateY(-10px);
}

.partner-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.partner-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-link:hover .partner-logo {
    transform: scale(1.1);
}

/* Responsive pour la section partenaires */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 3rem 0;
        background-attachment: scroll;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .partner-card {
        padding: 1.5rem;
        min-height: 120px;
    }

    .partner-logo {
        max-height: 60px;
    }
}

/* Page Recrutement */
.recruitment-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--off-white) 0%, #f8fafb 100%);
    position: relative;
    overflow: hidden;
}

.recruitment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.recruitment-message {
    text-align: center;
}

.recruitment-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.recruitment-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.recruitment-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.btn-contact {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.btn-contact:hover {
    background-color: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(143, 211, 242, 0.3);
}

.btn-back {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-back:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Illustration côté droit */
.recruitment-illustration {
    display: none;
}

.illustration-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--hover-blue) 100%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.illustration-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.illustration-dots::before,
.illustration-dots::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    opacity: 0.3;
}

.illustration-dots::before {
    top: 20%;
    left: 20%;
    animation: float 4s ease-in-out infinite;
}

.illustration-dots::after {
    bottom: 20%;
    right: 20%;
    animation: float 5s ease-in-out infinite reverse;
}

/* Navigation active state */
.nav-link.active {
    background-color: var(--primary-blue);
    color: var(--white) !important;
}

.nav-link.active::after {
    display: none;
}

/* Animation flottante */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive pour la page recrutement */
@media (max-width: 768px) {
    .recruitment-section {
        padding: 6rem 0 2rem;
    }

    .recruitment-title {
        font-size: 2.5rem;
    }

    .recruitment-description {
        font-size: 1.1rem;
    }

    .recruitment-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-contact,
    .btn-back {
        width: auto;
        min-width: 180px;
        max-width: 250px;
    }
}

/* Section Contact */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), #B8E3F7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.contact-details h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.contact-details p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.contact-details a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--hover-blue);
    text-decoration: underline;
}

/* Contact CTA Section */
.contact-cta {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cta-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
}

.cta-content p {
    font-size: 18px;
    color: #666;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(143, 211, 242, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(143, 211, 242, 0.4);
}

/* Responsive pour la section contact */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-content {
        gap: 40px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-cta {
        padding: 30px 20px;
    }
    
    .cta-content h3 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Message de copie email */
.copy-message {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.copy-message.show {
    opacity: 1;
    transform: translateY(0);
}

.copy-content {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.copy-icon {
    font-size: 16px;
}

.copy-text {
    font-family: 'Inter', sans-serif;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-copyright {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.footer-rights {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

/* Legal Page */
.legal-section {
    padding: 120px 0 4rem 0;
    background: var(--background-color);
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
}

.legal-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

.legal-item {
    margin-bottom: 2.5rem;
}

.legal-item h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.legal-item ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-item li {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.legal-back {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.btn-back-legal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-legal:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .title-main {
        font-size: 3rem;
    }

    .title-sub {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }
    
    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}
