@font-face {
    font-family: 'Ethnocentric';
    src: url('https://fonts.cdnfonts.com/s/6220/ethnocentric%20rg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Eurostile-ExtendedTwo';
    src: url('/fonts/Eurostile-ExtendedTwo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Open Sans', sans-serif;
}

/* Variables globales */
:root {
    --couleur-principale: #ffffff;
    --couleur-secondaire: #FF1A05;
    --couleur-secondaire-fonce: #b31200;
    --couleur-fond: #000;
    --couleur-texte: #ffffff;
    --couleur-gris-clair: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, span, li {
    font-family: 'Ethnocentric', sans-serif;
}

body {
    background: var(--couleur-fond);
    color: var(--couleur-texte);
    overflow-x: hidden;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo img { height: 50px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--couleur-texte);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--couleur-secondaire); }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--couleur-secondaire);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    gap: 60px;
    flex-wrap: wrap;
}
.hero {
    position: relative;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5%;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    z-index: 0;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 1;
    text-align: left;
    color: #fff;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: inherit;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-style: italic;
}


.hero-content h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #ff0000;
    margin: 10px auto 0;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #cccccc;
    font-weight: 300;
}

.subtitle {
    font-family:  'Ethnocentric', sans-serif;
    font-size: 1.2rem !important;
}

.cta-button-incline {
    display: inline-block;
    padding: 18px 20px;
    background: #ff0000; /* Rouge vif */
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    transform: skewX(-10deg);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cta-button-incline span {
    display: inline-block;
    transform: skewX(10deg); /* Annule l'inclinaison du texte */
}

.cta-button-incline:hover {
    background: #d40000;
    transform: skewX(-20deg) scale(1.05); /* Zoom + inclinaison conservée */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 26, 5, 0.1), rgba(255, 0, 0, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.services {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    background: var(--couleur-principale);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 80px;
    margin: 80px auto 0 auto;
    max-width: 900px;
}

.service-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(50, 50, 50, 0.4));
    border: 1px solid rgba(255, 26, 5, 0.2);
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(255, 26, 5, 0);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
}


.service-card p {
    font-size: 1.2rem;
    color: var(--couleur-gris-clair);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--couleur-secondaire);
    box-shadow: 0 15px 30px rgba(255, 26, 5, 0.3);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.service-card h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--couleur-secondaire);
    margin: 8px auto 0;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--couleur-secondaire), var(--couleur-secondaire-fonce));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
}

.about {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(40, 40, 40, 0.7));
    padding: 120px 40px;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--couleur-principale);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.titre-decale {
    text-align: left;
}

.titre-decale .ligne-gauche {
    display: block;
    text-align: left;
}

.titre-decale .ligne-droite {
    display: block;
    text-align: right;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #ff0000;
    margin: 10px auto 0;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--couleur-gris-clair);
    margin-bottom: 30px;
    text-align: justify;
}

.stats {
    display: grid;
    justify-items: center;
    text-align: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--couleur-secondaire);
    display: block;
}

.stat-label {
    color: var(--couleur-gris-clair);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-more {
    text-align: center;
    padding-inline:  20px;
    margin-top: 20px;
}


.contact {
    padding: 120px 40px;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--couleur-principale);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact p {
    font-size: 1.2rem;
    color: var(--couleur-gris-clair);
    margin-bottom: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    justify-items: center;   /* Centre les items individuellement */
}

.contact-item {
    padding: 30px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(50, 50, 50, 0.4));
    border: 1px solid rgba(255, 26, 5, 0.2);
    text-align: center;
    width: 450px;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--couleur-secondaire);
    box-shadow: 0 15px 30px rgba(255, 26, 5, 0.3);
}

.contact-item h4 {
    color: var(--couleur-secondaire);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-item p {
    margin: 0;
    font-size: 1.2rem;
    color: var(--couleur-gris-clair);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 26, 5, 0.2);
}

footer p {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    
    .nav-links {
        display: none;
    }

    .hero {
        justify-content: center;
        padding: 20px;
        text-align: center;
    }

    .hero-content {
        background: rgba(0, 0, 0, 0.1);
        padding: 20px;
        border-radius: 10px;
        width: 90%;
        max-width: 600px;
        backdrop-filter: blur(3px);
        box-sizing: border-box;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .cta-button-incline {
        margin-top: 20px;
        padding: 15px 20px;
    }

    .about {
        padding: 20px 20px;
    }

   .about-content {
        display: block !important;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .about-text {
        background: rgba(0, 0, 0, 0.7);
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        width: 100%;
        margin: 0 auto 30px;
        box-sizing: border-box;
    }

    .about-text h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .about-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .about-content .about-visual {
        display: none;
    }

    .stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
    }

    .stat {
        flex: 1 1 130px;
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .services {
        padding: 80px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact {
        padding: 80px 20px;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .contact-item {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
    }

    .titre-decale .ligne-droite {
        text-align: left;
    }
}


.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s, box-shadow 0.5s;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);

}

.about-visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
}

.about-visual:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(255, 26, 5, 0.3);
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: flex-start; /* Le haut reste visible */
    overflow-y: auto;
    padding: 40px 20px; /* De l'air autour du contenu */
    z-index: 1000;
}


.popup-content {
    background: #111;
    padding: 50px;
    width: 100%;
    max-width: 550px;
    border-radius: 8px;
    margin: 0 auto;
}

.popup-content h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"] {
    flex: 1 1 48%;
    padding: 10px;
    background: #222;
    color: #fff;
    transform: skewX(-10deg);
}

.form-row label {
    flex: 1 1 100%;
    text-align: left;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--couleur-gris-clair);
    font-weight: 600;
}

.row-immat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.row-immat input::placeholder {
    color: #555;
}

.row-immat button {
    padding: 0 20px;
}

.immat-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-family: Arial, sans-serif;
}

.row-immat.hidden {
    display: none;
}

.immat-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-family: Arial, sans-serif;
}

.reset-immat {
    color: var(--couleur-secondaire);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.3s;
}

.reset-immat:hover {
    color: var(--couleur-secondaire-fonce);
}

.car-photo {
    width: 100px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
}

.car-info {
    font-size: 1.1rem;
    font-family:  'Ethnocentric', sans-serif;
    color: var(--couleur-gris-clair);
}

.popup-content button {
    background: #ff1a05;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: 0.3s;
    font-family:  'Ethnocentric', sans-serif;
    transform: skewX(-10deg);
}

.popup-content button:hover {
    background: #d40000;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
}

.form-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 15px 0;
}

.form-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.form-upload label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--couleur-gris-clair);
}

.form-upload input[type="file"] {
    width: 100%;
    padding: 8px;
    background: #222;
    color: #fff;
    border-radius: 5px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #323232;
    font-family:  'Ethnocentric', sans-serif;
    color: #fff;
    padding: 15px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0% 100%);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.show {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}