/* Millenium Services Style */
/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Variables */
:root {
    --primary-color: #00AEEF;    /* Cyan Millenium */
    --secondary-color: #2C3E50;  /* Dark Blue */
    --text-color: #2C3E50;
    --bg-light: #f5f7fa;
}

/* Global & Typography */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
}

.has-text-primary {
    color: var(--primary-color) !important;
}

.has-background-primary {
    background-color: var(--primary-color) !important;
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: transparent;
    transition: all 0.3s ease;
}

.button.is-primary:hover {
    background-color: #009bd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
}

.has-background-primary-light {
    background-color: #d1effc !important; /* Light version of #00AEEF */
}

/* Navbar */
.navbar {
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar-item.brand-logo {
    color: var(--secondary-color);
}

.navbar-item {
    font-size: 1.15rem;
    font-weight: 500;
}

.navbar-item.brand-logo:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    /* Optionnel : motif subtil */
}

.hero-body {
    padding-top: 6rem; /* Compenser navbar fixed */
    padding-bottom: 6rem;
}

.title.is-1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

@media screen and (max-width: 768px) {
    .title.is-1 {
        font-size: 2.5rem;
    }
}

/* Section Common */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem !important;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Specific overrides for sections with primary background */
.has-background-primary .section-title {
    color: #efefef !important;
}

.has-background-primary .section-title::after {
    background: #ffffff;
}

.has-background-primary .subtitle {
    color: #efefef;
    opacity: 0.9;
}

/* Services */
.service-card {
    height: 100%;
    border-radius: 8px;
    border: 1px solid #eee; /* Light border */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden; /* For image radius */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.service-list {
    text-align: center; /* Centered as per new layout */
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
}

.service-list li {
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

/* Contact Box */
.contact-box {
    height: 100%;
    padding: 2rem;
}

.contact-box .icon {
    margin-right: 1rem;
    color: rgba(255,255,255,0.8);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 1.5rem;
}

.footer strong {
    color: var(--primary-color);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-4 { transition-delay: 0.4s; }

/* Scroll to Top */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Make it round if the image allows, or adjust padding */
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.4s ease, transform 0.3s ease;
    opacity: 1;
    visibility: visible;
    /* Optionnel : fond blanc ou transparent selon l'image */
    /* background-color: white; */ 
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#scrollToTop.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

#scrollToTop:hover {
    transform: translateY(-5px);
}
