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

:root {
    --primary-red: #AE0000;
    --grey-light: #FAFAFA;
    --white: #FFFFFF;
    --grey-dark: #626262;
    --black: #000000;
    --text-color: #333;
    --success: #28a745;
    --error: #dc3545;
    --border-color: #ddd;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header with Video */
.header-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--black);
}

.header-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.header-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio - 100vw * (9/16) */
    min-width: 177.78vh; /* Si écran très haut, utiliser la hauteur comme référence */
    min-height: 100vh; /* Toujours au moins 100vh de hauteur */
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: cover;
}

.video-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
}

.play-button,
.pause-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 50%;
}

.header-video-wrapper {
    position: relative;
}

.pause-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button:hover,
.pause-button:hover {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.5);
}

.play-button.hidden,
.pause-button.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon,
.pause-icon {
    width: 104px;
    height: 104px;
    display: block;
}


.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.header-logo {
    position: relative;
    line-height: 0;
}

.logo-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline-block;
    line-height: 0;
    vertical-align: top;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-cta-btn {
    background: var(--grey-dark);
    color: var(--white);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 6px;
    border-radius: 4px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-cta-btn:hover {
    background: var(--primary-red);
}

.nav-cta-active {
    background: var(--primary-red);
}

.nav-cta-active:hover {
    background: var(--primary-red);
}

.nav-cta-red {
    background: var(--primary-red);
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nav-cta-red:hover {
    background: var(--grey-dark);
}

.nav-arrow {
    width: 15px;
    height: 13px;
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.social-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid;
    border-radius: 50%;
    position: relative;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icon svg {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

/* Header social icons - white circle and icon by default, red on hover */
.header-social-icon {
    border-color: #FAFAFA;
}

.header-social-icon .social-icon-path {
    fill: #FAFAFA;
    transition: fill 0.3s ease;
}

.header-social-icon:hover {
    border-color: var(--primary-red);
}

.header-social-icon:hover .social-icon-path {
    fill: var(--primary-red);
}

/* Footer social icons - grey circle and icon by default, red on hover */
.footer-social-icon {
    border-color: var(--grey-dark);
}

.footer-social-icon .social-icon-path {
    fill: var(--grey-dark);
    transition: fill 0.3s ease;
}

.footer-social-icon:hover {
    border-color: var(--primary-red);
}

.footer-social-icon:hover .social-icon-path {
    fill: var(--primary-red);
}

/* Text Section */
.text-section {
    padding: 80px 0;
    background: var(--white);
}

.main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--grey-dark);
    text-align: center;
    margin-bottom: 11px;
}

.title-divider {
    display: flex;
    justify-content: center;
    margin-bottom: 11px;
}

.divider-line {
    width: 200px;
    height: 1px;
    display: block;
}

.model-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 60px;
}

.text-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.text-image {
    width: 100%;
}

.text-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.text-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.text-paragraph {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--grey-dark);
    line-height: 1.8;
}

.more-about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.more-about-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.icon-brochure {
    width: 32px;
    height: 22px;
    display: inline-block;
    object-fit: contain;
}

.icon-mirror {
    transform: scaleX(-1);
}

.icon-question {
    width: 32px;
    height: 22px;
    display: inline-block;
    object-fit: contain;
}

.more-about-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--grey-dark);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-download {
    background: var(--primary-red);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(174, 0, 0, 0.3);
}

.btn-arrow {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn-submit {
    background: var(--primary-red);
    color: var(--white);
    width: auto;
    min-width: 200px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(174, 0, 0, 0.3);
}

.btn-submit .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-footer-cta {
    background: var(--primary-red);
    color: var(--white);
    padding: 6px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    width: 167px;
    transition: all 0.3s ease;
}

.btn-footer-cta:hover {
    opacity: 0.8;
}

.btn-arrow {
    width: 15px;
    height: 13px;
    display: inline-block;
}

/* Carousel Section */
.carousel-section {
    width: 100%;
    position: relative;
    background: var(--black);
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: var(--white, #FFF);
    border: none;
    border-radius: 6px;
    opacity: 0.8;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.carousel-btn:hover {
    background: var(--primary-red);
    opacity: 1;
}

.carousel-btn:hover svg path {
    fill: var(--white);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: transparent;
}

.contact-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}

.contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.icon-question {
    font-size: 24px;
}

.contact-form {
    max-width: 912px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-three {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    margin-bottom: 0;
}

.form-group-full {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-color);
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 93px;
}

.form-submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.form-consent input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin-top: 4px;
    flex-shrink: 0;
}

.form-consent label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--grey-dark);
    line-height: 1.6;
    cursor: pointer;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
    font-family: 'Poppins', sans-serif;
}

.form-message.success {
    background: #d4edda;
    color: var(--success);
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: var(--error);
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
.footer {
    background: var(--grey-light);
    color: var(--black);
    padding: 60px 0 40px;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: flex-start;
}

.footer-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-icon {
    width: 18px;
    height: 23px;
    flex-shrink: 0;
}

.footer-rm-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.footer-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--black);
}

.footer-text p {
    margin: 0;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social .social-icon {
    color: var(--grey-dark);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--grey-dark);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top:hover {
    background: var(--primary-red);
    color: var(--white);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-video {
        height: auto;
        min-height: 400px;
        position: relative;
        display: flex;
        flex-direction: column;
    }
    
    .header-video-wrapper {
        position: relative;
        order: 2;
        width: 100%;
        height: auto;
        min-height: 200px;
    }
    
    .header-video-bg {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 200px;
        transform: none;
        min-width: 100%;
    }
    
    .play-button,
    .pause-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .header-overlay {
        position: relative;
        order: 1;
        flex-direction: column;
        padding: 15px 20px;
        gap: 20px;
        background: transparent;
        align-items: center;
        justify-content: center;
    }
    
    .header-logo {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .header-nav {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-icons {
        display: none;
    }
    
    .nav-menu {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .model-subtitle {
        font-size: 20px;
    }
    
    .text-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .carousel-container {
        aspect-ratio: 16 / 9;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
        width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .nav-cta-btn {
        padding: 3px 15px;
        border-radius: 4px;
        width: auto;
    }
}

@media (max-width: 520px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-cta-btn,
    .nav-cta-red {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 24px;
    }
    
    .text-heading,
    .more-about-title,
    .contact-title {
        font-size: 20px;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
}
