* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================= */
/* === HEADER ============================ */
/* ======================================= */
.main-header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.main-header.scrolled {
    background-color: #1a1a1a;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo:hover img {
    transform: scale(1.05);
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #e60000;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.main-nav a:hover {
    color: #e60000;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-login {
    background-color: #e60000;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-login:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0;
    z-index: 1005;
    visibility: hidden;
}

.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.active a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* ======================================= */
/* === SECTIONS ========================== */
/* ======================================= */
.hero { 
    height: 100vh; 
    background: url('image/transport-w_express_car-2.png') center center/cover no-repeat; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center;
}
.overlay { 
    background-color: rgba(0, 0, 0, 0.7); 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
}
.hero-content { 
    position: relative;
    z-index: 2;
    color: #fff; 
    padding: 20px; 
}
.hero h1 { 
    font-size: 3.5rem; 
    color: #e60000; 
    margin-bottom: 20px; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
}
.hero p { 
    font-size: 1.25rem; 
    color: #eee; 
}

section { 
    padding: 100px 0; 
}
.section-title { 
    font-size: 2.5rem; 
    color: #e60000; 
    margin-bottom: 50px; 
    text-align: center; 
}

#services {
    background-color: #0a0a0a;
}
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
}
.service-block { 
    background-color: #1a1a1a; 
    border: 1px solid #333; 
    border-radius: 12px; 
    padding: 40px 25px; 
    text-align: center; 
    transition: transform 0.3s, box-shadow 0.3s; 
}
.service-block:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.2); 
}
.icon { 
    height: 70px; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.icon img { 
    width: 50px; 
    height: 50px; 
}
.service-block h3 { 
    color: #e60000; 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
}
.service-block p { 
    font-size: 0.95rem; 
    color: #ccc; 
}

.about-section { 
    background-color: #000; 
}
.about-container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 40px; 
}
.about-text { 
    flex-basis: 50%; 
    text-align: left; 
}
.about-image { 
    flex-basis: 50%; 
}
.about-image img { 
    width: 100%; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}
.about-text .section-title { 
    text-align: left; 
    margin-bottom: 2rem; 
}
.about-text .about-p1 { 
    color: #eee; 
    margin-bottom: 1rem; 
    font-size: 1.1rem; 
}
.about-text .about-p2 { 
    color: #aaa; 
    font-size: 1rem; 
}

#contact { 
    background-color: #0a0a0a; 
}
form { 
    max-width: 600px; 
    margin: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 20px;
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
}
form select, form input, form textarea { 
    padding: 15px; 
    font-size: 1rem; 
    border: 1px solid #444; 
    border-radius: 8px; 
    background-color: #2a2a2a; 
    color: #fff; 
    transition: all 0.2s ease-in-out; 
}
form input:focus, form textarea:focus, form select:focus { 
    outline: none; 
    box-shadow: 0 0 0 2px #e60000; 
    border-color: #e60000; 
}
form button { 
    padding: 15px; 
    font-size: 1.1rem; 
    background-color: #e60000; 
    color: #fff; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: background-color 0.3s, transform 0.3s; 
    font-weight: 600;
    margin-top: 10px;
}
form button:hover { 
    background-color: #cc0000; 
    transform: scale(1.05); 
}

/* ======================================= */
/* === FOOTER ============================ */
/* ======================================= */
.main-footer {
    background-color: #1a1a1a;
    padding: 60px 0;
    color: #ccc;
    border-top: 1px solid #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #e60000;
}

.copyright-bar {
    background-color: #000;
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #1a1a1a;
}

/* ======================================= */
/* === RESPONSIVE ======================== */
/* ======================================= */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .header-actions .btn-login {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .about-container { flex-direction: column; gap: 30px; }
    .about-text { text-align: center; }
    .about-text .section-title { text-align: center; }
    .footer-grid { text-align: center; }
}

/* ==================================================== */
/* === STYLE POUR PAGES LÉGALES (THÈME SOMBRE) === */
/* ==================================================== */
body.page-legale {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.page-content {
    padding: 120px 20px 60px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff; 
    margin-bottom: 10px;
    border-bottom: 3px solid #e60000;
    padding-bottom: 10px;
}

.page-content p, .page-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc; 
}

.page-content p em {
    color: #aaa;
    font-style: italic;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff; 
    margin-top: 40px;
    margin-bottom: 15px;
}

/* ===== NOUVEAU : SCROLLBAR PERSONNALISÉE ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background-color: #e60000;
    border-radius: 20px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #cc0000;
}
