:root {
    --color-primary-blue: #0d6efd;
    --color-dark-blue: #141d26;
    --color-light: #ffffff;
    --color-background: #f8f9fa;
    --text-dark: #1c2b3a;
    --text-light: #f0f0f0;
    --font-primary: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); line-height: 1.7; background-color: var(--color-light); color: var(--text-dark); }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- Header & Navigation --- */
.main-header { 
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000; height: 90px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.main-nav { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo-image { height: 50px; width: auto; }
.nav-menu { list-style: none; display: flex; align-items: center; }
.nav-menu li { margin-left: 40px; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 500; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--color-primary-blue); border-bottom-color: var(--color-primary-blue); }
.cta-button { 
    background: linear-gradient(45deg, #0d6efd, #0dcaf0); 
    color: var(--color-light); padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; 
    transition: all 0.3s ease; display: inline-block; border: none; cursor: pointer; 
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.3);
}
.cta-button:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4); }
.nav-cta { padding: 10px 25px; }
.hamburger { display: none; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 28px; height: 3px; margin: 6px 0; background-color: var(--text-dark); border-radius: 3px; transition: all 0.3s ease-in-out; }

/* --- Hero Section --- */
.hero { position: relative; color: var(--text-light); height: calc(95vh - 90px); display: flex; align-items: center; text-align: center; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: -2; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(20, 29, 38, 0.8); z-index: -1; }
.hero-content { max-width: 850px; margin: 0 auto; }
.hero-content h1, .hero-content p, .hero-content .cta-button { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.hero-content h1 { font-size: 3.8rem; font-weight: 700; margin-bottom: 10px; transition-delay: 0.3s; }
.hero-subtitle { font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 20px; text-transform: uppercase; font-weight: 400; transition-delay: 0.5s; }
.hero-content p:not(.hero-subtitle) { font-size: 1.25rem; margin-bottom: 40px; color: rgba(255, 255, 255, 0.9); transition-delay: 0.7s; }
.hero-content .cta-button { transition-delay: 0.9s; }
body.loaded .animate-on-load { opacity: 1; transform: translateY(0); }

/* --- Sections & Animations --- */
.content-section { padding: 120px 0; overflow: hidden; }
.animate-on-scroll { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.section-title { font-size: 2.8rem; font-weight: 700; text-align: center; margin-bottom: 20px; }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 60px auto; font-size: 1.1rem; color: #666; }
.dark-bg { background: linear-gradient(145deg, #1c2b3a, #141d26); color: var(--text-light); }
.dark-bg .section-title, .dark-bg .section-subtitle { color: var(--text-light); }

/* --- About Section --- */
.about-container { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: center; }
.values-box { background: linear-gradient(45deg, #0d6efd, #0dcaf0); color: var(--color-light); padding: 40px; border-radius: 10px; }
.values-box h3 { font-size: 1.8rem; margin-bottom: 20px; }
.values-box ul { list-style: none; padding: 0; }
.values-box ul li { font-size: 1.1rem; margin-bottom: 10px; padding-left: 25px; position: relative; }
.values-box ul li::before { content: '✓'; position: absolute; left: 0; }

/* --- Services Section --- */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 60px; 
}
.service-card { 
    background: rgba(44, 62, 80, 0.5); 
    backdrop-filter: blur(10px); 
    padding: 30px; 
    border-radius: 10px; 
    transition: all 0.3s ease; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    position: relative; 
    text-align: center; /* Ajouté pour centrer le contenu */
}
.service-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    border-radius: 10px; 
    border: 1px solid transparent; 
    transition: all 0.3s ease; 
}
.service-card:hover { 
    transform: translateY(-10px); 
    background: rgba(44, 62, 80, 0.8); 
}
.service-card:hover::before { 
    border-color: var(--color-primary-blue); 
}

/* --- MODIFICATIONS CLÉS CI-DESSOUS --- */

.service-icon { 
    /* Le conteneur qui crée le cercle */
    width: 80px;  /* Augmenté pour plus d'impact */
    height: 80px; 
    border-radius: 50%; /* Le rend parfaitement rond */
    margin: 0 auto 25px auto; /* Centre le cercle horizontalement */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    overflow: hidden; /* Cache les parties de l'image qui dépassent */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1); /* Fond subtil pour l'icône */
}
.service-card:hover .service-icon { 
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.5); /* Ajoute une lueur au survol */
}
.service-icon img { 
    /* L'image à l'intérieur du cercle */
    width: 100%;   /* L'image prend toute la largeur de son conteneur (le cercle) */
    height: 100%;  /* L'image prend toute la hauteur de son conteneur */
    object-fit: cover; /* ESSENTIEL: Redimensionne l'image pour remplir le cercle sans la déformer */
    /* Le 'filter: invert(1)' a été supprimé pour garder les couleurs d'origine */
}
.service-card h3 { 
    font-size: 1.4rem; 
    color: var(--color-light); 
    margin-bottom: 15px; 
}
.service-card p { 
    color: #aaa; 
}

/* --- Portfolio Section --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; }
.portfolio-item { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.portfolio-item img { display: block; width: 100%; height: 300px; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(13, 110, 253, 0.9), rgba(13, 110, 253, 0.5)); color: var(--color-light); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; opacity: 0; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
.portfolio-overlay h3 { font-size: 1.5rem; margin-bottom: 5px; }

/* --- News Section --- */
.news-container { max-width: 900px; margin: auto; }
.news-article-card { background-color: #2c3e50; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; display: flex; transition: all 0.3s ease; }
.news-article-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.news-image { width: 40%; object-fit: cover; }
.news-content { padding: 40px; width: 60%; }
.news-category { display: block; font-size: 0.8rem; font-weight: 600; color: #aaa; text-transform: uppercase; margin-bottom: 10px; }
.news-content h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--color-light); line-height: 1.4; }
.read-more-link { display: inline-block; color: var(--color-light); font-weight: 700; text-decoration: none; margin-top: 20px; transition: color 0.3s ease; }
.read-more-link::after { content: ' →'; transition: transform 0.3s ease; display: inline-block; }
.read-more-link:hover { color: var(--color-primary-blue); }
.read-more-link:hover::after { transform: translateX(5px); }

/* --- Contact Section --- */
#contact { background-color: var(--color-background); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.address-info a { color: var(--color-primary-blue); text-decoration: none; }
.form-group { position: relative; margin-bottom: 35px; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 0; border: none; border-bottom: 2px solid #ccc; background-color: transparent; font-size: 1rem; color: var(--text-dark); outline: none; transition: border-color 0.3s; }
.form-group label { position: absolute; top: 10px; left: 0; font-size: 1rem; color: #999; transition: all 0.3s; pointer-events: none; }
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown) + label { top: -15px; font-size: 0.8rem; color: var(--color-primary-blue); }
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--color-primary-blue); }
.contact-form button { width: 100%; }

/* --- Footer --- */
.main-footer { background-color: var(--color-dark-blue); color: #aaa; text-align: center; padding: 40px 0; }
.social-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 20px; }
.social-links a { border: 2px solid #555; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease; }
.social-links a img { height: 45px; width: auto; filter: invert(0.7); transition: filter 0.3s ease; }
.social-links a:hover { background-color: var(--color-primary-blue); border-color: var(--color-primary-blue); transform: translateY(-5px); }
.social-links a:hover img { filter: invert(1); }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 90px; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 5px 10px rgba(0,0,0,0.1); padding: 20px 0; }
    .nav-menu.active { display: flex; }
    .nav-menu li { margin: 15px 0; text-align: center; }
    .hamburger { display: block; }
    .about-container, .contact-grid { grid-template-columns: 1fr; }
    .news-article-card { flex-direction: column; }
    .news-image { width: 100%; height: 250px; }
    .news-content { width: 100%; }
}
@media (max-width: 768px) {
    .hero { height: auto; padding: 80px 20px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2.2rem; }
    .content-section { padding: 80px 0; }
}