@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,600;0,800;1,600&display=swap');

:root {
    --primary-color: #0097b2; /* Deep cyan for contrast */
    --secondary-color: #e53935; /* Strong red/magenta for contrast */
    --accent-color: #6200ea; /* Deep purple */
    --dark-bg: #f0f4f8; /* Very luminous light blue-grey background */
    --text-light: #1a1e23; /* Dark slate text for high contrast */
    --text-muted: rgba(0, 0, 0, 0.6);
    --white: #ffffff;
    
    /* Premium White Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    --glass-bg-hover: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-border-light: rgba(255, 255, 255, 1);
    --glass-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.08); /* Soft blue-ish shadow */
    --glass-blur: blur(24px);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   LUMINOUS SPIRITUAL BACKGROUND
========================================= */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background-color: #f8faff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 151, 178, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 192, 50, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 151, 178, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(229, 57, 53, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
}

.mesh-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 151, 178, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(229, 57, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Extra orb for more color */
.hero-3d-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 60%);
    filter: blur(140px);
    opacity: 0.2;
    z-index: -1;
    animation: pulse 15s infinite ease-in-out alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.2); }
}

@keyframes pulse {
    0% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.1); }
}

/* =========================================
   WHITE GLASSMORPHISM UTILITIES
========================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light);
    border-left: 1px solid var(--glass-border-light);
    border-radius: 30px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
    pointer-events: none;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.1));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-portal)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-portal):hover::after {
    width: 100%;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* =========================================
   BUTTONS
========================================= */
.btn-3d {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--primary-color), #00b4d8);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 151, 178, 0.3), inset 0 2px 0 rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-3d::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.btn-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 151, 178, 0.4), inset 0 2px 0 rgba(255,255,255,0.6);
}

.btn-3d:hover::after {
    opacity: 0.3;
    transform: scale(1);
}

.btn {
    transition: var(--transition);
    padding: 14px 30px;
}
.btn:hover {
    background: rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

/* =========================================
   HERO SECTION WITH VIDEO
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Soft white/grey gradient over the video to make dark text readable */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 6.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(180deg, var(--text-light) 0%, rgba(0,0,0,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

/* =========================================
   MISSION CARDS
========================================= */
.mission-card {
    position: relative;
    padding: 50px 40px;
    border-radius: 30px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light);
    border-left: 1px solid var(--glass-border-light);
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mission-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.mission-card:hover {
    transform: translateY(-15px);
    background: var(--glass-bg-hover);
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.12), 0 0 20px rgba(0, 151, 178, 0.1);
}

.mission-card:hover::before {
    opacity: 1;
}

.mission-card .icon-3d {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02), 0 10px 20px rgba(31, 38, 135, 0.08);
    transition: var(--transition);
}

.mission-card:hover .icon-3d {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 151, 178, 0.3);
}

.mission-card:hover .icon-3d i {
    color: #ffffff !important;
}

/* =========================================
   FOOTER
========================================= */
/* =========================================
   ADVANCED FOOTER
========================================= */
footer {
    background: rgba(255, 192, 50, 0.08); /* Transparent yellow base */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 4px solid #ffc032;
    padding: 100px 0 40px;
    margin-top: 150px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 192, 50, 0.1), transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 151, 178, 0.1), transparent 40%);
    pointer-events: none;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand {
    flex: 1.5;
    min-width: 300px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 15px rgba(255, 192, 50, 0.2));
}

.brand-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 450px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid rgba(255, 192, 50, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc032;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.social-icon:hover {
    background: #ffc032;
    color: white;
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 20px rgba(255, 192, 50, 0.3);
}

.footer-nav-group {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ffc032;
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column a {
    color: var(--text-muted);
    transition: var(--transition);
    font-weight: 400;
}

.footer-column a:hover {
    color: #ffc032;
    padding-left: 8px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: var(--text-muted);
    margin-bottom: 20px !important;
}

.contact-info i {
    color: #ffc032;
    width: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 192, 50, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright span {
    color: #ffc032;
    font-weight: 800;
}

.copyright a {
    color: var(--primary-color);
    font-weight: 600;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE FIRST)
========================================= */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .nav-links {
        display: none; /* À remplacer par un menu burger JS si nécessaire */
    }

    .hero-title {
        font-size: 3.5rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content p {
        font-size: 1.2rem !important;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .btn-3d, .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 60px 0 !important;
    }

    h2 {
        font-size: 2.5rem !important;
    }

    .container {
        padding: 0 25px;
    }

    .mission-card {
        padding: 30px 20px;
    }
    
    .founder-img-container {
        min-width: 100% !important;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
}

/* =========================================
   SCROLL TO TOP BUTTON
========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid #ffc032;
    border-radius: 50%;
    color: #ffc032;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(255, 192, 50, 0.2);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #ffc032;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 192, 50, 0.4);
}

.scroll-top-btn i {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

