:root {
    --primary-blue: #0d47a1;
    --light-blue: #42a5f5;
    --dark-bg: #0a192f;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVIGATION */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
}

nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 50px; /* Ajuste la taille du logo dans le menu */
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--light-blue);
}

.btn-cta {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(13, 71, 161, 0.6) 100%),
                url('..//images/camion.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 10%;
}

.hero-content h1 {
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* SERVICES SECTION */
#services {
    padding: 100px 5%;
    background: var(--gray-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--light-blue);
    margin: 10px auto;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border-bottom: 5px solid transparent;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--light-blue);
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* FOOTER */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    nav ul { display: none; } /* Menu burger à prévoir ici */
}
/* Subtitle */
.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1rem;
}

/* Icons */
.service-icon {
    font-size: 2.5rem;
    color: var(--light-blue);
    margin-bottom: 20px;
}

/* Lists inside cards */
.service-list {
    list-style: none;
    margin-top: 20px;
    text-align: left;
    padding-left: 0;
}

.service-list li {
    font-size: 0.9rem;
    padding: 5px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Container limits */
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.btn-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--light-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.btn-link:hover {
    border-bottom: 2px solid var(--light-blue);
    padding-left: 5px;
}

/* Container de la grille */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Style de la carte */
.service-card {
    position: relative;
    height: 400px; /* Hauteur fixe pour l'harmonie */
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: flex-end; /* Texte en bas */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Contenu intérieur */
.card-content {
    padding: 30px;
    width: 100%;
    background: linear-gradient(to top, rgba(13, 71, 161, 0.9), transparent);
}

.service-icon {
    font-size: 2.5rem;
    color: #42a5f5;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: none; /* Cache la liste par défaut pour épurer */
}

.service-card:hover .service-list {
    display: block; /* Affiche la liste au survol */
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}