/* Base and Variables */
:root {
    /* Couleurs inspirées de l'interface EASYFILE+241 */
    --primary-bg: #f8fafc;
    --secondary-bg: #ffffff;
    
    --brand-blue-dark: #122a54; /* Bleu très foncé de la barre latérale */
    --brand-blue: #1d4ed8;      /* Bleu primaire (texte EasyFile) */
    --brand-green: #059669;     /* Vert (texte +241) */
    --brand-red: #ef4444;       /* Rouge (notifications, icônes) */
    
    --accent-blue-glow: rgba(29, 78, 216, 0.2);
    --accent-green-glow: rgba(5, 150, 105, 0.2);
    
    --text-main: #1e293b;       /* Texte principal (sombre) */
    --text-muted: #64748b;      /* Texte secondaire (gris) */
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 1);
    --glass-shadow: 0 8px 32px rgba(18, 42, 84, 0.05);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--primary-bg);
    color: var(--text-main);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-green { color: var(--brand-green); }
.text-blue { color: var(--brand-blue); }
.text-dark { color: var(--brand-blue-dark); }
.text-red { color: var(--brand-red); }

.bg-green { background-color: var(--brand-green); color: white; }
.bg-blue { background-color: var(--brand-blue); color: white; }
.bg-dark { background-color: var(--brand-blue-dark); color: white; }
.bg-red { background-color: var(--brand-red); color: white; }

.bg-green-light { background: rgba(5, 150, 105, 0.1); }
.bg-blue-light { background: rgba(29, 78, 216, 0.1); }
.bg-dark-light { background: rgba(18, 42, 84, 0.1); }
.bg-red-light { background: rgba(239, 68, 68, 0.1); }

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.highlight {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text {
    color: var(--brand-blue);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px; /* Coins légèrement arrondis comme dans l'app */
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
    background: #1e40af;
}

.btn-outline {
    background: transparent;
    color: var(--brand-blue-dark);
    border: 2px solid var(--brand-blue-dark);
}

.btn-outline:hover {
    background: var(--brand-blue-dark);
    color: #ffffff;
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--brand-blue-dark);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--brand-blue);
}

.logo-text .highlight {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--brand-green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--brand-blue);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--brand-blue);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Active Link Indicator */
.nav-links a:not(.btn).active {
    color: var(--brand-blue);
    font-weight: 600;
}

.nav-links a:not(.btn).active::after {
    width: 100%;
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--brand-blue-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f7fb 0%, #e2e8f0 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.08) 0%, rgba(255,255,255,0) 70%);
    top: -200px;
    left: -100px;
    border-radius: 50%;
}

.gradient-sphere.secondary {
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, rgba(255,255,255,0) 70%);
    bottom: -200px;
    right: -100px;
    top: auto;
    left: auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(18, 42, 84, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-blue-dark);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green-glow);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-blue-dark);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.mockup-panel {
    padding: 0.5rem;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    box-shadow: 0 25px 50px -12px rgba(18, 42, 84, 0.25);
    background: #ffffff;
    border-radius: 12px;
}

.mockup-panel:hover {
    transform: rotateY(0) rotateX(0);
}

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    border: 1px solid #e2e8f0;
}

.floating-card {
    position: absolute;
    background: #ffffff;
    border: 1px solid rgba(18, 42, 84, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-blue-dark);
    box-shadow: 0 10px 25px rgba(18, 42, 84, 0.1);
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.card-1 {
    top: -20px;
    right: -20px;
}

.card-2 {
    bottom: 20px;
    left: -30px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Features */
.features {
    padding: 6rem 0;
    background-color: var(--secondary-bg);
    position: relative;
}

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

.feature-card {
    padding: 2.5rem 2rem;
    transition: var(--transition);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-blue);
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--brand-blue-dark);
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background-color: var(--primary-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(18, 42, 84, 0.08);
    border-color: var(--brand-blue);
}

.pricing-card.popular {
    border: 2px solid var(--brand-blue);
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.12);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: 1.2rem;
    right: -2.5rem;
    background: var(--brand-blue);
    color: white;
    padding: 0.3rem 3rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(18, 42, 84, 0.1);
}

.pricing-title {
    font-size: 1.8rem;
    color: var(--brand-blue-dark);
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1rem;
}

.pricing-features li i {
    width: 24px;
    text-align: center;
}

.pricing-cta {
    text-align: center;
    margin-top: auto;
}

.pricing-cta .btn {
    width: 100%;
}

.security-note {
    background: rgba(29, 78, 216, 0.05);
    border-left: 4px solid var(--brand-blue);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    max-width: 800px;
    margin: 4rem auto 0;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.security-note i {
    font-size: 1.8rem;
    color: var(--brand-blue);
    margin-top: 0.2rem;
}

.security-note p {
    color: var(--text-main);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* About Section */
.about {
    padding: 8rem 0;
    background-color: var(--primary-bg);
}

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

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Team Cards */
.team-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(18, 42, 84, 0.05);
    transition: transform 0.3s ease;
}

.team-img-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: #e2e8f0;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-bottom: 3px solid var(--brand-blue);
}

.team-card:nth-child(2) .team-img-wrapper img {
    border-bottom-color: var(--brand-green);
}

.team-info {
    padding: 2rem;
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-role {
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .team-img-wrapper {
        height: 400px;
    }
}

@media (max-width: 540px) {
    .team-img-wrapper {
        height: 320px;
    }
}

.about-text strong {
    color: var(--brand-blue-dark);
}

.about-list {
    list-style: none;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.list-icon {
    width: 24px;
    height: 24px;
    background: var(--bg-green-light);
    color: var(--brand-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.stat-card:last-child {
    grid-column: span 2;
}

.stat-icon {
    font-size: 2rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--brand-blue-dark);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Security Notice */
.admin-notice {
    padding: 4rem 0 8rem;
    background-color: var(--secondary-bg);
}

.notice-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    background: var(--brand-blue-dark);
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(18, 42, 84, 0.2);
}

.notice-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: #ffffff;
}

.notice-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.notice-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.notice-text strong {
    color: #ffffff;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(18, 42, 84, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem 2rem;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 25px 50px -12px rgba(18, 42, 84, 0.25);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(29, 78, 216, 0.1);
    color: var(--brand-blue-dark);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--brand-blue-dark);
    color: #ffffff;
    transform: rotate(90deg);
}

.contact-form-wrapper {
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--brand-blue-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
    background-color: #ffffff;
}

.form-submit {
    margin-top: 1rem;
}

.w-100 {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--brand-blue-dark);
    color: #ffffff;
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer .logo-text {
    color: #ffffff;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.legal-links a:hover {
    color: #ffffff;
}

/* Animations */
.reveal, .reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active, .reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-container, .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .floating-card { display: none; }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a:not(.btn) {
        color: var(--brand-blue-dark);
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .hero-title { font-size: 2.2rem; }
    .hero-cta { flex-direction: column; }
    
    .section-title { font-size: 2rem; }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
