* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #111317;
}

/* Global responsive helpers */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* Anchor offset for fixed header */
#specs, #design, #cockpit { scroll-margin-top: 90px; }

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem;
}

nav {
    position: absolute;
    top: 12px;
    /* lowered a bit to align with logo and button */
    left: 50%;
    transform: translate(-50%, 0);
    padding: 8px 14px;
    display: flex;
    gap: 2rem;
    align-items: center;
    background: rgba(10, 12, 16, 0.28);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

a {
    text-decoration: none;
    color: #ffffff;
}

a:hover {
    color: #2085f1;
    transition: color 0.3s ease;
    cursor: pointer;
}

button {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 7px;
    cursor: pointer;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transition: background-color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
    transform: translateY(-2px);

}

.background-image {
    background-image: url('images/voiture.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
}

.titre {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffffc1;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
}

.specs {

    align-items: center;
    justify-content: center;
    margin-top: 40px;
    color: #ffffff;

}

.specs h2 {
    display: flex;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* New SPECIFICATIONS layout */
.specs {
    color: #fff;
}

.specs-header {
    text-align: center;
    margin: 2rem auto 1.25rem;
}

.specs-header h2 {
    letter-spacing: 0.2rem;
    font-size: 2.25rem;
    color: #e6ebf5;
}

.specs-header .accent-line {
    justify-content: center;
}

.specs-grid {
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.spec-card {
    background: linear-gradient(180deg, rgba(18, 20, 25, 0.85) 0%, rgba(14, 16, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 1.75rem 1.25rem;
    text-align: center;
}

.spec-card .spec-value {
    color: #25A0FF;
    font-size: 2rem;
    font-weight: 600;
}

.spec-card .spec-label {
    margin-top: 0.35rem;
    letter-spacing: 0.15rem;
    opacity: 0.9;
    color: #cfd6e4;
}

.spec-card .spec-sub {
    margin-top: 0.25rem;
    color: #9fb0c9;
}

.specs-feature {
    max-width: 1100px;
    margin: 1rem auto 0;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.specs-feature .feature-image,
.specs-feature .feature-content {
    background: linear-gradient(180deg, rgba(18, 20, 25, 0.85) 0%, rgba(14, 16, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.specs-feature .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.specs-feature .feature-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.specs-feature .feature-content h3 {
    font-size: 1.75rem;
    color: #e6ebf5;
    margin-bottom: 0.5rem;
}

.specs-feature .feature-content p {
    color: #cfd6e4;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.feature-cta {
    display: inline-block;
    color: #cfd6e4;
    text-decoration: none;
    letter-spacing: 0.15rem;
    font-weight: 600;
    position: relative;
}

.feature-cta::after {
    content: "";
    display: block;
    height: 2px;
    width: 44px;
    background: linear-gradient(90deg, #2aa8ff, #ff4d5a);
    border-radius: 999px;
    margin-top: 6px;
}



.specs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;

}

.specs-content-1,
.specs-content-2,
.specs-content-3 {
    text-align: center;
    background-color: #16181D;
    padding: 2rem;
    margin: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

h3 {
    font-size: 3rem;
    font-weight: lighter;
    color: #0086E5;
    margin-bottom: 1rem;
}

h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.moteur-image {
    background-color: #16181D;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem;
    display: flex;
    align-items: center;
}

.moteur-image img {
    border-radius: 15px;
    width: 100%;
    height: auto;
}

.moteur-content {
    display: flex;
    margin: 2rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
}

.moteur-content h2 {
    font-size: 3rem;
    font-weight: lighter;
    margin-bottom: 1rem;
}

.moteur-content p {
    font-size: 1rem;

}

.design {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 3rem 2rem;
    margin: 2rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 20, 25, 0.9) 0%, rgba(17, 19, 23, 0.9) 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.design-left {
    color: #cfd6e4;
}

.design-heading .overline {
    letter-spacing: 0.35rem;
    color: #e6ebf5;
    opacity: 0.8;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.design-heading .headline {
    font-size: 3rem;
    line-height: 1;
    margin: 0.25rem 0 0.75rem 0;
    color: #25A0FF;
    font-weight: 700;
}

.accent-line {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 1rem 0 1.5rem;
}

.accent-line .accent-blue {
    display: inline-block;
    height: 3px;
    width: 70px;
    background: #2aa8ff;
    border-radius: 999px;
}

.accent-line .accent-red {
    display: inline-block;
    height: 3px;
    width: 30px;
    background: #ff4d5a;
    border-radius: 999px;
}

.design-desc {
    color: #b8c2d6;
    line-height: 1.7;
    max-width: 58ch;
    margin-bottom: 1.5rem;
}

.design-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0 2rem;
    padding: 0;
}

.design-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #d2d8e6;
    opacity: 0.95;
}

.design-list .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px currentColor;
}

.design-list .dot-blue {
    color: #45b2ff;
    background: currentColor;
}

.design-list .dot-red {
    color: #ff6b6b;
    background: currentColor;
}

.design-list .dot-purple {
    color: #8b7bff;
    background: currentColor;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #1f8cf3;
    color: #fff;
    box-shadow: 0 8px 18px rgba(39, 133, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-primary:hover {
    background: #1779d6;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(39, 133, 255, 0.45);
}

.design-right {
    width: 100%;
    display: flex;
    justify-content: center;
}

.design-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1f25 0%, #0f1216 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(31, 140, 243, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.design-card img {
    width: 100%;
    height: auto;
    display: block;
}

.design-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 1rem;
    color: #e6ebf5;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(2px);
}

.design-caption .separator {
    opacity: 0.6;
    color: #f01818;
}



.cockpit {
    margin: 4rem 2rem 3rem;
    display: grid;
    gap: 2rem;
}

.cockpit-header {
    text-align: center;
}

.cockpit-header .section-title {
    color: #e6ebf5;
    font-size: 2.25rem;
    letter-spacing: 0.2rem;
    font-weight: 700;
}

.cockpit-header .section-subtitle {
    color: #25A0FF;
    font-size: 1.75rem;
    margin-top: 0.25rem;
}

.cockpit-header .section-desc {
    color: #b8c2d6;
    max-width: 78ch;
    margin: 0.75rem auto 0;
    line-height: 1.7;
}

.cockpit-card {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 980px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1f25 0%, #0f1216 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 48px rgba(31, 140, 243, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cockpit-card img {
    width: 100%;
    height: auto;
    display: block;
}

.cockpit-specs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    /* for subtle separators */
    background: linear-gradient(180deg, rgba(2, 12, 22, 0.0) 0%, rgba(2, 12, 22, 0.65) 100%);
    padding: 0.85rem 1rem 1rem;
}

.cockpit-specs .spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #dbe3f1;
    text-align: center;
}

.cockpit-specs .spec-title {
    color: #25A0FF;
    font-weight: 700;
}

.cockpit-specs .spec-sub {
    opacity: 0.8;
    font-size: 0.82rem;
}

.cockpit-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 980px;
    margin: 0 auto;
}

.cockpit-features .feature {
    background: linear-gradient(180deg, rgba(18, 20, 25, 0.85) 0%, rgba(14, 16, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 1.25rem 1.25rem 1rem;
    text-align: center;
}

.cockpit-features .feature h4 {
    color: #25A0FF;
    margin-bottom: 0.35rem;
}

.cockpit-features .feature p {
    color: #cfd6e4;
    opacity: 0.95;
}



footer {
    margin: 2.5rem 0 0;
    padding: 2rem 1.25rem 2.5rem;
    background: linear-gradient(180deg, rgba(9, 11, 14, 0) 0%, rgba(9, 11, 14, 0.55) 40%, rgba(9, 11, 14, 0.85) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e6ebf5;
    font-weight: 600;
}

.footer-brand img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.footer-nav {
    display: flex;
    gap: 1.25rem;
}

.footer-nav a {
    color: #cfd6e4;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #25A0FF;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 1.25rem 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom p {
    color: #9eacbf;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #9eacbf;
    text-decoration: none;
}

.footer-links a:hover {
    color: #e6ebf5;
}


/* Specs responsiveness */
@media (max-width: 980px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .specs-feature {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .design {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
    }

    .design-heading .headline {
        font-size: 2.5rem;
    }

    .design-right {
        order: -1;
    }
}

@media (max-width: 980px) {
    .cockpit {
        margin: 3rem 1.25rem 2rem;
    }

    .cockpit-specs {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 0.5rem;
    }

    .cockpit-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Additional global responsiveness */
@media (max-width: 1024px) {
    .moteur-image {
        flex-direction: column;
        align-items: stretch;
    }

    .moteur-image {
        margin: 1rem;
    }

    .moteur-content {
        margin: 1rem;
        padding: 1.25rem;
    }
}

@media (max-width: 900px) {
    header {
        padding: 0.75rem 1rem;
        position: fixed; /* Keep header fixed on small screens */
        background: transparent; /* Remove white bar */
        box-shadow: none; /* Remove shadow */
    }

    .logo {
        position: static;
        padding: 0;
        display: none; /* Hide logo on small screens */
    }

    nav {
        position: static;
        transform: none;
        padding: 8px 14px; /* Restore original pill size for proper blur area */
        gap: 2rem; /* Match desktop spacing */
        justify-content: center; /* Center nav items */
        margin: 0 auto; /* Ensure centered within header */
    }

    button {
        position: static;
        margin: 0 0 0 auto;
        display: none; /* Hide CONFIGURER button on small screens */
    }

    .background-image {
        height: 70vh;
    }

    .titre {
        font-size: 2.2rem;
        top: 45%;
    }

    .specs-content-1,
    .specs-content-2,
    .specs-content-3 {
        margin: 1rem;
        padding: 1.25rem;
    }
}

@media (max-width: 560px) {
    .titre {
        font-size: 1.8rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Hide scrollbars globally (keep scrolling enabled) */
html, body {
  -ms-overflow-style: none;      /* IE and older Edge */
  scrollbar-width: none;         /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0px;                    /* Chrome, Safari, Opera */
  height: 0px;
}