/* Variables */
:root {
    --color-black: #000000;
    --color-dark-purple: #002c33;
    --color-purple: #003f81;
    --color-light-purple: #01a1df;
    --color-shadow-03: #01a1df30;
    --color-shadow-05: #01a1df60;
    --color-white: #ffffff;
    --color-gray: #f5f5f7;
    --font-primary: 'Inter', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-purple) 100%);
    overflow-x: hidden;
    cursor: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: var(--color-white);
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--color-light-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-light-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    display: flex;
    align-items: center;
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-white), var(--color-light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo h1 img {
    height: 30px;
    margin: 0 10px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 1.6rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-light-purple);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    width: 30px;
    height: 25px;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
    z-index: 999;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 60rem;
    z-index: 2;
}

.hero-title {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    position: relative;
    overflow: hidden;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.7s;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: linear-gradient(to right, var(--color-purple), var(--color-light-purple));
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-white);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.9s;
    box-shadow: 0 10px 20px var(--color-shadow-03);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--color-shadow-05);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s forwards 1.1s;
}

.parallax-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.features {
    padding: 10rem 0;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-purple), var(--color-light-purple));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    grid-template-rows: repeat(2, 1fr);    /* 2 lignes */
    gap: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 4rem;
    color: var(--color-light-purple);
    margin-bottom: 2rem;
}

.feature-card h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.feature-card p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Demo Section */
.demo {
    padding: 10rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.demo-container {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.demo-before, .demo-after {
    flex: 1;
    text-align: center;
    position: relative;
}

.demo-before h3, .demo-after h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

.demo-before img, .demo-after img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.demo-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.demo-button {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50px;
    color: var(--color-white);
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.demo-button:hover {
    background: var(--color-light-purple);
    transform: translateY(-3px);
}

.demo-button.active {
    background: var(--color-light-purple);
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    padding: 10rem 0;
}

.contact-form {
    max-width: 60rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--color-white);
    font-size: 1.6rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-light-purple);
    background: rgba(255, 255, 255, 0.15);
}

.submit-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: linear-gradient(to right, var(--color-purple), var(--color-light-purple));
    border: none;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px var(--color-shadow-03);
}

.submit-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--color-shadow-05);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 6rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo h2 {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-white), var(--color-light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.footer-links a {
    font-size: 1.6rem;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--color-light-purple);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Effets de survol améliorés */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-light-purple) 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-light-purple) 0%, var(--color-purple) 100%);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.cta-button:hover::before {
    opacity: 0.2;
}

/* Effet de brillance amélioré */
@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.hero-title::before, .section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shine 3s infinite;
    z-index: -1;
}

/* 360° */

.pnlm-container *{
    box-sizing: border-box;
}

.pnlm-about-msg, .pnlm-about-msg a{
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    display: none !important;
}

.pnlm-load-box{
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: #0000004a;
}

.pnlm-load-box p{
    display: none;
}

.pnlm-load-box .pnlm-loading{
    animation: none;
    background-color: transparent;
}

.pnlm-load-box .pnlm-loading::after {
    font-family: "Font Awesome 6 Pro";
    content: '\f3f4';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    animation: spin-pnlm 2s infinite linear;
}

.pnlm-zoom-controls, .pnlm-fullscreen-toggle-button{
    display: none !important;
}

.pnlm-controls-container{
    bottom: 4px;
    top: unset !important;
}

.pnlm-hotspot{
    border-radius: 50px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid white;
    animation: shadow-hotspot-anim 2s infinite ease-in-out;
    cursor: pointer;
}

.pnlm-hotspot.pnlm-equipement{
    background: var(--color-light-purple) !important;
}

.pnlm-hotspot.pnlm-equipement:hover{
    box-shadow: var(--color-light-purple) 0px 0px 15px 5px !important;
    z-index: 99;
}

.pnlm-hotspot:after{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: white;
}

.pnlm-hotspot.pnlm-equipement:after{
    content: 'ℹ';
}

div.pnlm-tooltip:hover span:after{
    display: none !important;
}

.pnlm-hotspot > span{
    background-color: white !important;
    border-radius: 100px !important;
    color: black !important;
    font-weight: 600 !important;
    width: fit-content !important;
    white-space: nowrap;
    max-width: none !important;
    padding: 8px 15px 6px 15px !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60px);
    margin: 0 !important;
}

.pnlm-hotspot  > span i{
    margin-right: 5px;
}

.pnlm-hotspot.pnlm-equipement > span i{
    color: var(--color-light-purple) !important;
}

.pnlm-hotspot.pnlm-frais > span i{
    color: #9f9e00 !important;
}

@keyframes spin-pnlm {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes shadow-hotspot-anim {
    0%{box-shadow: 0px 0px 0px 4px #ffffff88}
    50%{box-shadow: 0px 0px 0px 2px #ffffff88}
    100%{box-shadow: 0px 0px 0px 4px #ffffff88}
}

/* Responsive Styles */
@media (max-width: 1024px) {
    html {
        font-size: 60%;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-image {
        width: 40%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 15rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        margin-top: 4rem;
        transform: none;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links, .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .contact-form {
        padding: 3rem;
    }
    
    .demo-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-button {
        width: 100%;
        max-width: 250px;
    }
}

/* Popup 360° */
.popup-360 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    margin: 5vh auto;
    background-color: var(--color-dark-purple);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px var(--color-shadow-05);
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.2rem;
    color: var(--color-white);
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.close-popup:hover {
    background-color: var(--color-light-purple);
    transform: rotate(90deg);
}

#panorama {
    width: 100%;
    height: 100%;
}

/* Ajustements pour le viewer 360° */
.pnlm-container {
    background-color: transparent !important;
}

.pnlm-controls {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 10px !important;
}

.pnlm-load-button {
    background-color: var(--color-light-purple) !important;
    border-radius: 5px !important;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.language-flag {
    width: 24px;
    height: 16px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.language-flag:hover {
    transform: scale(1.1);
    border-color: var(--color-light-purple);
}

.language-flag.active {
    border: 2px solid var(--color-light-purple);
    transform: scale(1.1);
} 

.vehicle-thumbnails {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.vehicle-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border 0.2s;
}
.vehicle-thumb.active {
    border: 2px solid #007bff;
} 