/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #F0F0F0;
}

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

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.8rem;
}

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-logo .logo-link:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav-logo h1 {
    color: #4A148C;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    transition: color 0.3s ease;
}

.nav-logo .logo-link:hover h1 {
    color: #F4A261;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4A148C;
}

.nav-link.active {
    color: #F4A261;
    font-weight: bold;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #F4A261;
    border-radius: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background:  url('../images/hero-fondation.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.7) 0%, rgba(244, 162, 97, 0.7) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    
    padding: 0 20px;
    text-align: left;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #F4A261;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid white;
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline-white:hover {
    background-color: white;
    color: #4A148C;
}

/* Button Styles */
.btn-primary {
    background-color: #F4A261;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #e8956b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #4A148C;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: #6a1b9a;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #4A148C;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #4A148C;
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline:hover {
    background-color: #4A148C;
    color: white;
}

/* Section Styles */
section {
    padding: 40px 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.section-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4A148C;
}

.section-header p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Programme Section */
.programme {
    background-color: white;
}

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

.pricing-card {
    background-color: #F0F0F0;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: #F4A261;
    transform: scale(1.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4A148C;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #F4A261;
    margin-bottom: 1.5rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.features li:last-child {
    border-bottom: none;
}

/* Articles Section */
.articles {
    background-color: #F0F0F0;
}

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

.article-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4A148C, #F4A261);
    transition: left 0.3s ease;
}

.article-card:hover::before {
    left: 0;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 20, 140, 0.15);
    border-color: #F4A261;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-date {
    color: #666;
}

.article-category {
    background-color: #F4A261;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.article-card h3 {
    color: #4A148C;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.read-more {
    color: #F4A261;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Conferences Section */
.conferences {
    background-color: white;
}

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

.conference-card {
    background-color: #F0F0F0;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.conference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #4A148C;
}

.conference-status {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(45deg, #4A148C, #F4A261);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.conference-card h3 {
    color: #4A148C;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.date {
    color: #F4A261;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.location {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.conference-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.feature {
    color: #4A148C;
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

/* Publications Section */
.publications {
    background-color: #F0F0F0;
}

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

.publication-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #F4A261;
}

.publication-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #4A148C;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.publication-image {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.publication-card h3 {
    color: #4A148C;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.publication-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.publication-features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 1.5rem 0;
    text-align: left;
    background-color: #F0F0F0;
    padding: 1rem;
    border-radius: 8px;
}

.publication-features span {
    color: #4A148C;
    font-size: 0.9rem;
}

/* Resources Section */
.ressources {
    background-color: white;
}

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

.resource-card {
    background-color: #F0F0F0;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A148C, #F4A261);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(74, 20, 140, 0.15);
    border-color: #F4A261;
    background-color: white;
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-icon {
    transform: scale(1.2);
}

.resource-card h3 {
    color: #4A148C;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.resource-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resource-stats span {
    background-color: #4A148C;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background-color: #F0F0F0;
}

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

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author strong {
    color: #4A148C;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* About Us Section */
.about-us {
    background-color: white;
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: #4A148C;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-values {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    padding: 1.5rem;
    background-color: #F0F0F0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
    background-color: #4A148C;
    color: white;
}

.value-item h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.value-item p {
    margin: 0;
    font-size: 0.95rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(74, 20, 140, 0.3);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.7), rgba(244, 162, 97, 0.7));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

.about-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay span {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.image-overlay p {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    padding: 0 2rem;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    color: #4A148C;
    margin-bottom: 1rem;
}

.contact-item {
    margin: 1rem 0;
}

.contact-item a {
    color: #F4A261;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Form Styles - Minimalist Design */
.contact-form {
    background-color: white;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #eee;
    background-color: transparent;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #4A148C;
    background-color: rgba(74, 20, 140, 0.02);
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #4A148C;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

/* Cookie Popup - Right Corner */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333333;
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    border-left: 2px solid #e8956b;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.cookie-popup.show {
    transform: translateX(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.cookie-link {
    color: #F4A261;
    text-decoration: none;
}

.cookie-link:hover {
    text-decoration: underline;
}

.btn-accept {
    background-color: #F4A261;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-accept:hover {
    background-color: #e8956b;
}

/* Footer */
.footer {
    background-color: #333333;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: #F4A261;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #F4A261;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

/* Mobile Responsive */
@media screen and (max-width: 837px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: 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;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .pricing-grid,
    .articles-grid,
    .conferences-grid,
    .publications-grid,
    .resources-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2 {
        text-align: center;
        font-size: 2rem;
    }

    .cookie-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .cookie-content {
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .conference-features,
    .publication-features,
    .resource-stats {
        text-align: center;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .pricing-card.featured {
        transform: none;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 20px 0;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 100px 0 40px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .pricing-card,
    .article-card,
    .conference-card,
    .publication-card,
    .resource-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 0;
    }

    .section-icon {
        width: 50px;
        height: 50px;
    }

    .value-item:hover {
        transform: translateY(-5px);
    }

    .about-img {
        max-width: 300px;
        height: 200px;
    }

    .image-overlay {
        max-width: 300px;
    }

    .image-overlay span {
        font-size: 3rem;
    }

    .image-overlay p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero {
        background-attachment: scroll;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}