* {
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

li {
    list-style: none;
}

body {
    background-color: black;
    margin: 0px;
}


#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #050505;
}

.background {
    position: absolute;
    inset: 0;
    background: url(images/bancpuissance.jpg);
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
    opacity: 0.35;
    z-index: 0;
}

canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#particles {
    z-index: 2;
    pointer-events: none;
}

#lightning {
    z-index: 4;
}

.smoke {
    z-index: 3;
}

.flash {
    z-index: 5;
}

#engine {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    height: 200px;
    transition: top 1.5s;
    z-index: 20;
}
nav ul {
    width: 60%;
    padding-right: 100px;
}

ul {
    display: flex;
    justify-content: space-between;
}

nav li img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
nav li img:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 0 20px orange;
}




#icons {
    cursor: pointer;
    display: none;
}

.landing-page {
    z-index: 20;
    position: relative;
    padding: 20px 50px;
}


.scroll-down {
    color: #F66102;
    text-decoration: none;
    text-shadow: 7px 7px 4px black;
    position: absolute;
    bottom: 160px;
}

.cartes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.card {
    width: 350px;
    height: 500px;
    perspective: 1000px;
    transition: 0.3s;
    border-radius: 20px;
}

.card:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 0 30px rgba(246, 97, 2, 0.5);
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: 0.8s;
    transform-style: preserve-3d;
}

.card-front,
.card-back{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.card-front img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: 0.5s;
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.card-back {
    transform: rotateY(180deg);
    background: #F66102;
}

.card button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
}

.btn-info {
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #F66102;
    color: black;
    cursor: pointer;
}

.btn-rdv {
    width: 110px;
    height: 15px;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #F66102;
    color: black;
    font-size: 8px;
    cursor: pointer;
}

.card.flip .card-inner {
    transform: rotateY(180deg);
}

#liste-mecanique {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 25px;
    margin-top: 40px;
}

.carteMeca {
    background: #111;
    border: 2px solid #2a2a2a;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.35s;
}

.carteMeca:hover {
    border-color: #ff7b00;
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(255, 123, 0, 0.4);
}
.carteMeca h2 {
    font-size: 1rem;
    font-weight: bold;
    color: #F66102;
}

.carteMeca h3 {
    color: #ff7b00;
    margin-bottom: 15px;
}

.carteMeca p {
    color: white;
    font-size: 25px;
}

.carteMeca .ajouter {
    margin-top: auto;
    width: 180px;
    padding: 12px 20px;
    background: linear-gradient(135deg,#ff7300,#ff9800);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.35s;    
}

.carteMeca:hover .ajouter {
    opacity: 1;
    transform: translateY(0);
}

.carteMeca .ajouter:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 123, 0, 0.6);
}

.devis {
    width:600px;
    max-width:90%;
    margin:60px auto;
    background:#111;
    border-radius:20px;
    padding:30px;
    border:2px solid #ff7300;
}

.devis h2{
    color:#ff7300;
    margin-bottom:20px;
    text-align:center;
}

.ligneDevis{
    display:flex;
    justify-content:space-between;
    align-items: center;
    color:white;

    padding:15px 0;

    border-bottom:1px solid #333;
}

.ligneDevis div{
    display:flex;
    align-items:center;
    gap:15px;
}

.supprimer{

    width:32px;
    height:32px;

    border:none;
    border-radius:50%;

    background:#ff7300;
    color:white;

    cursor:pointer;

    transition:.25s;
}

.supprimer:hover{

    background:red;
    transform:rotate(90deg);

}

.total{
    margin-top:25px;

    display:flex;
    justify-content:space-between;

    font-size:24px;
    color:#ff7300;
    font-weight:bold;
}

#prix-total{
    display:block;
    margin-top:25px;
    padding-top:20px;

    border-top:2px solid #ff7300;

    color:#ff7300;

    font-size:32px;
    font-weight:bold;

    text-align:right;
}

#devis{
    margin-top:50px;
    padding:30px;
    color: #ff7300;
    background:#111;

    border:2px solid #ff7300;

    border-radius:20px;
}

#liste-devis{
    margin-top:20px;
    color: #ff7300;
}

div.texte {
    display: flex;
}

.qui {
    color: white;
    text-align: center;
    font-size: 35px;
}

.reseaux{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;

    margin:40px 0;
}

.reseaux a{

    width:60px;
    height:60px;

    display:flex;
    justify-content:center;
    align-items:center;

    text-decoration:none;

    border:2px solid #ff7300;
    border-radius:50%;

    color:#ff7300;

    font-size:28px;

    transition:.3s;
}

.reseaux a:hover{

    background:#ff7300;
    color:#111;

    transform:translateY(-6px);

    box-shadow:0 0 25px rgba(255,115,0,.7);

}

@media (max-width: 650px) {
    #icons {
        display: block;
    }
    #icons::before {
        content: "\2630";
        color: #F66102;
    }
    .active #icons::before {
        content: "\2715";
        color: #F66102;
    }
    nav ul {
        position: fixed;
        left: -100%;
        top: 5%;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.25s;
    }
    nav li {
        padding: 3px 0;
    }
    nav.active ul {
        left: 0;
        transition: 0.25s;
    }
    .card {
    width: 150px;
    height: 250px;
    perspective: 1000px;
    transition: 0.3s;
    }
    button {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .btn-info {
    width: 110px;
    height: 15px;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #F66102;
    color: black;
    font-weight: bold;
    font-size: 8px;
    cursor: pointer;
    }
}
