/* General Body & Typography */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Colors */
:root {
    --graftic-primary: #1A237E; /* Dark Blue */
    --graftic-blue: #283593;    /* Slightly lighter dark blue */
    --graftic-blue-dark: #1A237E; /* Even darker blue for subtle accents */
    --graftic-blue-light: #C5CAE9; /* Light blue for backgrounds/icon wrappers */
    --graftic-yellow: #FFC107;  /* Bright yellow accent */
    --graftic-yellow-light: #FFECB3; /* Lighter yellow */
    --graftic-dark-alpha: rgba(0, 0, 0, 0.4); /* Dark overlay with transparency */
    --graftic-light-graftic: #F8F9FA; /* Light background for sections */
}

.bg-graftic-primary { background-color: var(--graftic-primary) !important; }
.bg-graftic-blue { background-color: var(--graftic-blue) !important; }
.bg-graftic-blue-light { background-color: var(--graftic-blue-light) !important; }
.text-graftic-blue { color: var(--graftic-blue) !important; }
.text-graftic-blue-dark { color: var(--graftic-blue-dark) !important; }
.text-graftic-yellow { color: var(--graftic-yellow) !important; }
.text-graftic-yellow-light { color: var(--graftic-yellow-light) !important; }
.bg-dark-graftic { background-color: #212529 !important; } /* Bootstrap's dark */
.bg-dark-graftic-alpha { background-color: var(--graftic-dark-alpha) !important; }
.bg-light-graftic { background-color: var(--graftic-light-graftic) !important; }

/* Navbar enhancements */
.navbar {
    transition: background-color 0.3s ease-in-out;
    background-color: rgba(33, 37, 41, 0.95); /* Slightly transparent dark */
}

.navbar.scrolled {
    background-color: #212529; /* Solid dark on scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-brand img {
    transition: transform 0.3s ease-in-out;
}
.navbar-brand:hover img {
    transform: scale(1.05); /* Slight zoom on logo hover */
}

.navbar-nav .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease-in-out;
    padding: 0.75rem 1rem; /* Adjust padding for links */
}

.navbar-nav .nav-link:hover {
    color: var(--graftic-yellow);
}

/* Active link indicator */
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    width: 30px; /* Width of the underline */
    height: 3px;
    background-color: var(--graftic-yellow);
    border-radius: 2px;
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active:hover::after {
    width: 60px; /* Expand on hover */
}

/* Google Translate Widget Styling in Navbar */
#google_translate_element_nav .goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0.9rem !important;
    line-height: 1.5rem !important; /* Vertically align with nav links */
    padding: 0 !important; /* Remove padding */
}
#google_translate_element_nav .goog-te-gadget-simple a {
    color: rgba(255,255,255,0.75) !important; /* Match nav link color */
    text-decoration: none !important;
    transition: color 0.3s ease-in-out;
}
#google_translate_element_nav .goog-te-gadget-simple a:hover {
    color: var(--graftic-yellow) !important;
}
#google_translate_element_nav .goog-te-gadget-simple img {
    display: none !important; /* Hide Google Translate logo */
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(26, 35, 126, 0.85), rgba(26, 35, 126, 0.85)), url('../images/hero-bg-placeholder.jpg'); /* Add a background image here */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    min-height: 100vh; /* Ensure it takes full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Subtle text shadow for readability */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3); /* Darker overlay for text readability */
    z-index: 0;
}

#hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
}
#hero p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.btn-hover-scale {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.btn-hover-scale:hover {
    transform: translateY(-3px) scale(1.02); /* Lift and slightly grow */
}

.btn-outline-light:hover {
    background-color: var(--graftic-yellow) !important;
    border-color: var(--graftic-yellow) !important;
    color: var(--graftic-primary) !important; /* Text color changes */
}
.btn-light:hover {
    background-color: var(--graftic-yellow) !important;
    border-color: var(--graftic-yellow) !important;
    color: var(--graftic-primary) !important;
}

/* Blob animations (refine if needed, your existing custom.js might handle this) */
.blob {
    position: absolute;
    background: rgba(255, 255, 255, 0.05); /* Very subtle white blobs */
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.7;
    z-index: 0;
}
.blob-1 { top: 10%; left: 5%; width: 150px; height: 150px; animation: moveBlob 10s infinite alternate ease-in-out; }
.blob-2 { bottom: 20%; right: 10%; width: 200px; height: 200px; animation: moveBlob 12s infinite alternate-reverse ease-in-out; }
/* ... define other blobs and keyframes as needed */

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 30px) scale(1.1); }
}


/* Section Dividers & Padding */
.section-divider {
    border: none;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    margin: 4rem auto; /* Adjust margin */
    width: 60%; /* Make it shorter */
    opacity: 0.5;
}

.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}
@media (min-width: 768px) {
    .py-md-6 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
}


/* About Section */
.about-image-tilt {
    transform: rotateZ(-2deg) scale(1.02); /* Subtle tilt for dynamism */
    transition: transform 0.5s ease-in-out;
}
.about-image-tilt:hover {
    transform: rotateZ(0deg) scale(1.05); /* Straighten and slightly enlarge on hover */
}


/* Service Cards */
.service-card-graftic {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease-in-out;
    transform-origin: center; /* Ensures smooth lift from center */
    padding-top: 1.5rem !important; /* Add more top padding */
    padding-bottom: 1.5rem !important;
}
.service-card-graftic:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important; /* Stronger shadow */
    border-color: var(--graftic-blue-light) !important;
}

.service-icon {
    width: 90px;
    height: 90px;
    font-size: 3rem; /* Adjust icon size */
    transition: all 0.3s ease-in-out;
    background-color: var(--graftic-blue-light);
}
.service-card-graftic:hover .service-icon {
    background-color: var(--graftic-yellow); /* Change icon background on hover */
    color: var(--graftic-primary) !important; /* Change icon color on hover */
}

.service-list-improved li {
    padding: 0.3rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}
.service-list-improved li i {
    font-size: 0.9rem; /* Smaller checkmark icons */
}


/* Why Us Section */
#why-us {
    background-image: linear-gradient(rgba(40, 53, 147, 0.9), rgba(40, 53, 147, 0.9)), url('../images/why-us-bg-placeholder.jpg'); /* Add a subtle background image here */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#why-us h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}
.feature-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
    padding: 2.5rem !important; /* More padding */
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
    background-color: rgba(0,0,0,0.5) !important; /* Darker on hover */
}
.feature-card i {
    transition: color 0.3s ease-in-out, transform 0.3s ease;
}
.feature-card:hover i {
    color: var(--graftic-yellow-light) !important; /* Brighter yellow on hover */
    transform: scale(1.1); /* Slightly enlarge icon */
}


/* Contact Section */
.form-floating .form-control,
.form-floating .form-select {
    height: calc(3.5rem + 2px); /* Default height for form-floating inputs */
    line-height: 1.25;
}
.form-floating label {
    padding: 1rem 0.75rem;
}

.custom-form-control:focus {
    border-color: var(--graftic-blue-dark);
    box-shadow: 0 0 0 0.25rem rgba(40, 53, 147, 0.25);
}

.contact-info-box {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}
.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--graftic-blue-light);
}
.contact-info-box i {
    transition: color 0.3s ease-in-out;
}
.contact-info-box:hover i {
    color: var(--graftic-yellow) !important;
}
.text-graftic-blue-hover:hover {
    color: var(--graftic-yellow) !important;
}


/* Footer */
.footer-links li a {
    transition: color 0.3s ease-in-out, transform 0.2s ease-out;
    display: inline-block; /* Allows transform on hover */
}
.footer-links li a:hover {
    color: var(--graftic-yellow) !important;
    transform: translateX(5px); /* Small slide effect */
}

.social-icon-hover {
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.social-icon-hover:hover {
    color: var(--graftic-yellow) !important;
    transform: translateY(-3px) scale(1.1);
}

/* General utility and override */
.lift-on-hover {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.lift-on-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Ensure padding top for sections considering fixed navbar */
section {
    padding-top: 5rem; /* Base padding for sections */
    padding-bottom: 5rem;
}
@media (min-width: 992px) {
    body[data-bs-spy="scroll"] section {
        scroll-margin-top: calc(75px + 1rem); /* Navbar height + some margin for smooth scroll */
    }
}
.lead-sm { /* For slightly smaller lead paragraphs where needed */
    font-size: 1.1rem;
}
/* Ajoutez ou vérifiez ces règles dans votre fichier CSS */
.hidden,
.initial-hidden {
    display: none !important; /* Important pour forcer le masquage et éviter les conflits */
}