/* Style uniforme pour tous les liens du header/footer */
.nav-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
    padding: 0 8px;
    background: none;
    border: none;
    box-shadow: none;
    display: inline;
}
.nav-link:hover, .nav-link:focus {
    color: #f97316;
    background: none;
    box-shadow: none;
    text-decoration: none;
}
/* Effet d'écriture coloré */
.qalbi-orange {
    color: #f97316;
    font-weight: bold;
    display: inline;
}
.autocare-white {
    color: #fff;
    font-weight: bold;
    display: inline;
}

/* Services cards avec images */
/* Services cards avec images qui remplissent la div */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    min-height: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.09);
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: box-shadow 0.2s;
}
.service-card:hover {
    box-shadow: 0 8px 24px rgba(249,115,22,0.13);
}
.service-img-bg {
    flex: 1 1 0;
    min-height: 170px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.service-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #0f172a;
    padding: 18px 8px 16px 8px;
    background: #fff;
    letter-spacing: 1px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Footer nav style identique à header */
.footer-nav.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 30px;
    background: transparent;
    box-shadow: none;
    margin-bottom: 10px;
}
/* Les liens du footer sont sobres, noirs, orange au survol, sans fond ni bordure */
.footer-nav.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
    padding: 0 8px;
    background: none;
    border: none;
    box-shadow: none;
    display: inline;
}
.footer-nav.nav a:hover, .footer-nav.nav a:focus {
    color: #f97316;
    background: none;
    box-shadow: none;
    text-decoration: none;
}
/* Footer modernisé */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
}

.footer-social img {
    filter: grayscale(0.2) brightness(0.95);
    transition: transform 0.2s, filter 0.2s;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 3px;
}
.footer-social img:hover {
    filter: none;
    transform: scale(1.13) rotate(-6deg);
    box-shadow: 0 4px 16px rgba(249,115,22,0.13);
}

footer {
    background: rgba(15,23,42,0.95);
    color: #fff;
    padding: 30px 0 10px 0;
    text-align: center;
    margin-top: 60px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
}

footer a.btn0 {
    margin: 0 8px;
    font-size: 15px;
    padding: 10px 18px;
}

footer p {
    margin: 4px 0;
    color: #cbd5e1;
    font-size: 14px;
}

/* Conseils auto cards harmonisées */
.conseil .div1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 30px;
    margin-bottom: 40px;
}
.conseil .card {
    background: #fff;
    color: #0f172a;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.09);
    padding: 28px 22px 22px 22px;
    text-align: left;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.conseil .card h3 {
    color: #f97316;
    font-size: 20px;
    margin-bottom: 6px;
}
.conseil .card span {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.7em;
    opacity: 0.85;
}
.conseil .card p {
    color: #334155;
    font-size: 15px;
    margin-bottom: 0;
}
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: #0f172a;
    color: #334155;
    line-height: 1.6;
    background-image: url("/image/Autogarage.jpg"); 
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(2px); 
    z-index: 0;
    pointer-events: none;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Header et Navigation */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.nav h1 {
    font-size: 24px;
    color: #0f172a;
    font-weight: bold;
}

.nav h1 span {
    color: #f97316;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav a:hover {
    color: #f97316;
}

/* Boutons */
button, .btn0, .btn1 {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
    font-size: 14px;
}

.btn0 {
    background: #f97316;
    color: white;
}

.btn0:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(249, 115, 22, 0.3);
}

.btn1 {
    display: inline-block;
    background: #f97316;
    color: white;
    text-decoration: none;
    margin-top: 20px;
}

.btn1:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(249, 115, 22, 0.3);
}

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* Section Hero */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 30px;
    border-radius: 8px;
    text-align: center;
    color: #ffffff;
}

.div0 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.div0 h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #ffffff;
}

.div0 h2 span {
    color: #f97316;
}

.div0 p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 30px;
}

/* Section Services */
.service {
    margin-top: 80px;
}

.service h2 {
    text-align: center;
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 40px;
}

.div1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #0f172a;
    font-weight: 500;
    border-left: 4px solid #f97316;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
}

/* Section Conseils */
.conseil {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    margin-top: 60px;
}

.conseil h2 {
    font-size: 32px;
    color: #0f172a;
    margin-bottom: 30px;
    text-align: center;
}

.conseil ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.conseil li {
    padding: 15px 20px;
    background: #f0f4f8;
    border-left: 4px solid #f97316;
    border-radius: 4px;
    color: #0f172a;
    font-weight: 500;
}

.conseil li:hover {
    background: #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .div0 h2 {
        font-size: 28px;
    }

    .service h2,
    .conseil h2 {
        font-size: 24px;
    }

    main {
        padding: 30px 20px;
    }

    .hero {
        padding: 40px 20px;
    }
}
