/* Style CSS pour OptiSolutions */

/* ===== ÉCRAN DE CHARGEMENT ===== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f0f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    color: #333;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 0 auto;
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.5);
    object-fit: cover;
    background: linear-gradient(45deg, #cd7f32, #b8732d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
}

.company-name {
    font-size: 48px;
    font-weight: bold;
    margin: 30px 0;
    background: linear-gradient(45deg, #cd7f32, #b8732d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background-color: rgba(205, 127, 50, 0.3);
    border-radius: 2px;
    margin: 30px auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #cd7f32, #b8732d);
    border-radius: 2px;
    animation: loading 3s ease-in-out;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.7);
}

.loading-text {
    font-size: 16px;
    color: #cd7f32;
    margin-top: 20px;
    animation: fadeInOut 2s infinite;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { text-shadow: 0 0 20px rgba(205, 127, 50, 0.7); }
    100% { text-shadow: 0 0 30px rgba(205, 127, 50, 0.7); }
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Contenu principal caché au début */
.main-content {
    display: none;
}

/* ===== STYLES DU SITE PRINCIPAL ===== */

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* ===== SECTION HÉRO ===== */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 50, 100, 0.8) 0%, rgba(0, 30, 60, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
}

.brand-watermark {
    position: absolute;
    top: 25px;
    left: 30px;
    font-size: 64px;
    font-weight: bold;
    color: rgba(205, 127, 50, 0.7);
    z-index: 3;
    pointer-events: none;
    user-select: none;
}

.hero-text {
    max-width: 600px;
    color: white;
    z-index: 3;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.3;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* ===== SECTIONS SERVICES ===== */
.services-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.services-section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #333;
}

.services-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0099cc;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

.alt-bg {
    background-color: #ffffff;
}

/* ===== SECTION CONTACT ===== */
.contact-section {
    padding: 100px 0;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #333;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #0099cc;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0099cc;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin: 10px 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .brand-watermark {
        font-size: 40px;
        top: 15px;
        left: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-section h2,
    .contact-section h2 {
        font-size: 32px;
    }

    .company-name {
        font-size: 36px;
    }
}