/* ==================== LANDING PAGE ==================== */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    display: block;
}

.landing-page.hidden {
    display: none;
}

/* Header */
.landing-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #5994B8;
    letter-spacing: 2px;
    margin: 0;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #565654;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #5994B8;
}

.nav-cta-btn {
    background: #5994B8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-cta-btn:hover {
    background: #4a7ea0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 148, 184, 0.3);
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 30px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.hero-btn.primary {
    background: #5994B8;
    color: white;
    border: none;
}

.hero-btn.primary:hover {
    background: #4a7ea0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 148, 184, 0.3);
}

.hero-btn.secondary {
    background: white;
    color: #5994B8;
    border: 2px solid #5994B8;
}

.hero-btn.secondary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.energy-icon {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Services Section */
.services-section {
    background: white;
    padding: 80px 30px;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

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

.service-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: #5994B8;
}

.service-icon {
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.service-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 80px 30px;
    background: linear-gradient(135deg, #5994B8 0%, #3d6d8a 100%);
    color: white;
}

.about-section .section-title {
    color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
}

/* Contact Section */
.contact-section {
    padding: 80px 30px;
    background: white;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-icon {
    font-size: 32px;
    min-width: 60px;
    text-align: center;
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Footer */
.landing-footer {
    background: #333;
    padding: 30px;
    text-align: center;
}

.footer-content p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Back Button */
.back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .landing-nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

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

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .about-text {
        font-size: 16px;
    }
}

/* ==================== PAGE DE CONNEXION ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5994B8 0%, #3d6d8a 100%);
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 32px;
    color: #5994B8;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.login-subtitle {
    color: #888;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #565654;
}

.form-group input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #5994B8;
    box-shadow: 0 0 0 3px rgba(89, 148, 184, 0.1);
}

.login-error {
    background: #fee;
    color: #c00;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.login-btn {
    background: #5994B8;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #4a7ea0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(89, 148, 184, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* ==================== PAGE MENU ==================== */
.menu-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f7fa;
}

.menu-header {
    background: #5994B8;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.app-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    color: white;
    font-size: 14px;
    opacity: 0.9;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== CONTENU MENU ==================== */
.menu-content {
    flex: 1;
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.site-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-selector label {
    font-size: 16px;
    font-weight: 600;
    color: #565654;
}

.site-selector select {
    padding: 12px 20px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    min-width: 300px;
    cursor: pointer;
    transition: all 0.2s;
}

.site-selector select:focus {
    outline: none;
    border-color: #5994B8;
    box-shadow: 0 0 0 3px rgba(89, 148, 184, 0.1);
}

.welcome-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.welcome-subtitle {
    text-align: center;
    color: #888;
    font-size: 16px;
    margin-bottom: 50px;
}

.menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.menu-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #5994B8;
}

.menu-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5994B8 0%, #3d6d8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.menu-card-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.menu-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.menu-card-description {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

.menu-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== FOOTER ==================== */
.menu-footer {
    background: #333;
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* ==================== UTILITAIRES ==================== */
.hidden {
    display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 25px;
    }
    
    .menu-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .menu-content {
        padding: 40px 20px;
    }
    
    .menu-cards {
        grid-template-columns: 1fr;
    }
}
