/* Cloud M365 Specific Styles */

/* Hero Section */
.hero-m365 {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 50%, #005a9e 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-m365::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-m365 .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #00bcf2;
}

.hero-m365 h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(45deg, #00bcf2, #40e0d0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-m365 p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* M365 Icons Animation */
.hero-visual {
    position: relative;
    height: 400px;
}

.m365-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.icon-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-width: 80px;
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-float:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.icon-float i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.icon-float span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Positioning des icônes */
.icon-float[data-app="outlook"] {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.icon-float[data-app="teams"] {
    top: 10%;
    right: 20%;
    animation-delay: 1s;
}

.icon-float[data-app="sharepoint"] {
    top: 50%;
    left: 0%;
    animation-delay: 2s;
}

.icon-float[data-app="word"] {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.icon-float[data-app="excel"] {
    bottom: 10%;
    right: 10%;
    animation-delay: 4s;
}

.icon-float[data-app="powerpoint"] {
    top: 40%;
    right: 0%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Services M365 */
.services-m365 {
    padding: 100px 0;
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card-m365 {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.service-card-m365::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0078d4, #00bcf2);
}

.service-card-m365:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 120, 212, 0.15);
}

.service-card-m365 .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0078d4, #00bcf2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.service-card-m365 h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.service-card-m365 p {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #475569;
}

.service-features i {
    color: #0078d4;
    font-size: 0.9rem;
}

.btn-service {
    background: linear-gradient(135deg, #0078d4, #00bcf2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 120, 212, 0.3);
}

/* License Calculator */
.license-calculator {
    padding: 80px 0;
    background: white;
}

.calculator-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.calculator-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.calculator-header p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.calculator-form {
    background: #f8fafc;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.calculator-result {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    border: 1px solid #e2e8f0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item .label {
    font-weight: 500;
    color: #374151;
}

.result-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0078d4;
}

.result-savings {
    background: #dbeafe;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e40af;
    font-size: 0.9rem;
}

.result-savings i {
    color: #3b82f6;
}

/* CTA Section */
.cta-m365 {
    background: linear-gradient(135deg, #1e293b 0%, #374151 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-content h3 {
    color: #1e293b;
    margin-bottom: 30px;
    text-align: center;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-m365 .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-m365 h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-form {
        padding: 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 25px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .icon-float {
        padding: 15px;
        min-width: 70px;
    }
    
    .icon-float i {
        font-size: 1.5rem;
    }
    
    .icon-float span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-m365 {
        padding: 80px 0 60px;
    }
    
    .calculator-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}