/* ============================================

   IDAcars - Styles Spécifiques aux Pages

   ============================================ */



/* Page d'accueil */


.home-hero {

    min-height: 500px;

}



.home-latest-cars {

    padding: 4rem 0;

}



.home-features {

    background: white;

    padding: 4rem 0;

}



.home-cta {

    background: #f3f4f6;

    padding: 4rem 0;

}



/* Page Véhicules */

.vehicles-page {

    background: linear-gradient(to bottom right, #f9fafb, #eff6ff, #f3f4f6);

    min-height: 100vh;

}



.vehicles-hero {

    background: linear-gradient(to right, #2563eb, #1d4ed8, #1e40af);

    color: white;

    padding: 4rem 0;

    margin-bottom: 3rem;

}



.vehicles-hero-title {

    font-size: 3rem;

    font-weight: bold;

    margin-bottom: 1rem;

}



.vehicles-hero-subtitle {

    font-size: 1.25rem;

    color: #bfdbfe;

}



.vehicles-hero-badges {

    margin-top: 1.5rem;

    display: flex;

    align-items: center;

    gap: 1rem;

    flex-wrap: wrap;

}



.vehicles-hero-badge {

    background: rgba(255, 255, 255, 0.2);

    backdrop-filter: blur(4px);

    padding: 0.5rem 1rem;

    border-radius: 9999px;

    font-weight: 600;

}



.vehicles-grid {

    padding-bottom: 3rem;

}



.vehicles-empty {

    grid-column: 1 / -1;

    text-align: center;

    padding: 4rem 0;

}



.vehicles-empty-card {

    background: white;

    border-radius: 1rem;

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    padding: 3rem;

    border: 1px solid #f3f4f6;

}



.vehicles-empty-icon {

    width: 6rem;

    height: 6rem;

    margin: 0 auto 1rem;

    color: #d1d5db;

}



.vehicles-empty-title {

    font-size: 1.5rem;

    font-weight: bold;

    color: #1f2937;

    margin-bottom: 0.5rem;

}



.vehicles-empty-text {

    color: #6b7280;

}



/* Page Détails du Véhicule */

.car-details-page {

    background: #f3f4f6;

    min-height: 100vh;

    padding: 2rem 0;

}



.car-details-back {

    margin-bottom: 2rem;

}



.car-details-back a {

    color: #2563eb;

    text-decoration: none;

    transition: color 0.3s;

}



.car-details-back a:hover {

    color: #1e40af;

}



.car-details-card {

    background: white;

    border-radius: 0.5rem;

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    overflow: hidden;

}



.car-details-header {

    padding: 2rem;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    flex-wrap: wrap;

    gap: 2rem;

}



.car-details-title-section h1 {

    font-size: 2.25rem;

    font-weight: bold;

    margin-bottom: 0.5rem;

}



.car-details-subtitle {

    color: #6b7280;

    font-size: 1.25rem;

}



.car-details-price-section {

    text-align: right;

}



.car-details-price {

    font-size: 2.25rem;

    font-weight: bold;

    color: #2563eb;

    margin-bottom: 0.75rem;

}



.car-details-offer-btn {

    background: linear-gradient(to right, #10b981, #059669);

    color: white;

    padding: 0.75rem 1.5rem;

    border-radius: 0.5rem;

    font-weight: 600;

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    transition: all 0.3s;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    border: none;

    cursor: pointer;

}



.car-details-offer-btn:hover {

    background: linear-gradient(to right, #059669, #047857);

    transform: scale(1.05);

}



.car-details-offer-hint {

    font-size: 0.875rem;

    color: #6b7280;

    margin-top: 0.5rem;

}



.car-details-specs {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 1.5rem;

    margin-bottom: 2rem;

}



.car-details-description {

    margin-bottom: 2rem;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 0.75rem;

    padding: 1.5rem;

}



.car-details-description h2 {

    font-size: 1.5rem;

    font-weight: bold;

    margin-bottom: 1rem;

    display: flex;

    align-items: center;

}



.car-details-description h2 span {

    font-size: 1.875rem;

    margin-right: 0.75rem;

}



.car-details-description-text {

    color: #4b5563;

    line-height: 1.75;

    white-space: pre-line;

}

/* Galerie principale avec navigation */
.gallery-main {
    position: relative; /* IMPORTANT pour positionner les flèches */
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 20;
    border-radius: 50%;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: 10px;
}

.gallery-nav-btn.next {
    right: 10px;
}



/* Page Contact */

.contact-page {

    background: #f3f4f6;

    min-height: 100vh;

    padding: 2rem 0;

}



.contact-grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 2rem;

}



@media (min-width: 768px) {

    .contact-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}



.contact-form-section h1 {

    font-size: 1.875rem;

    font-weight: bold;

    margin-bottom: 2rem;

}



.contact-form {

    background: white;

    padding: 2rem;

    border-radius: 0.5rem;

    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);

}



.contact-info-section {

    background: white;

    padding: 2rem;

    border-radius: 0.5rem;

    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);

}



.contact-info-section h2 {

    font-size: 1.5rem;

    font-weight: bold;

    margin-bottom: 1.5rem;

}



.contact-info-item {

    margin-bottom: 1.5rem;

}



.contact-info-item h3 {

    font-size: 1.125rem;

    font-weight: 600;

    margin-bottom: 0.5rem;

}



.contact-info-item p {

    color: #6b7280;

}



/* Formulaire d'offre */

.offer-form-info {

    background: linear-gradient(to bottom right, #eff6ff, #dbeafe);

    padding: 1rem;

    border-radius: 0.75rem;

    margin-bottom: 1.5rem;

    border: 1px solid #bfdbfe;

}



.offer-form-info h3 {

    font-weight: bold;

    font-size: 1.125rem;

    color: #1f2937;

    margin-bottom: 0.5rem;

}



.offer-form-info-price {

    display: flex;

    align-items: center;

    gap: 1rem;

}



.offer-form-info-price span:first-child {

    color: #6b7280;

}



.offer-form-info-price span:last-child {

    font-size: 1.5rem;

    font-weight: bold;

    color: #2563eb;

}



.offer-form-group {

    margin-bottom: 1rem;

}



.offer-form-label {

    display: block;

    color: #374151;

    font-weight: 600;

    margin-bottom: 0.5rem;

}



.offer-form-label .required {

    color: #ef4444;

}



.offer-form-input {

    width: 100%;

    padding: 0.75rem 1rem;

    border: 1px solid #d1d5db;

    border-radius: 0.5rem;

    transition: all 0.3s;

}



.offer-form-input:focus {

    outline: none;

    border-color: #10b981;

    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);

}



.offer-form-price-input {

    position: relative;

}



.offer-form-price-input input {

    padding-right: 3rem;

}



.offer-form-price-currency {

    position: absolute;

    right: 1rem;

    top: 50%;

    transform: translateY(-50%);

    color: #6b7280;

    font-weight: 600;

}



.offer-form-price-diff {

    margin-top: 0.5rem;

    font-size: 0.875rem;

}



.offer-form-hint {

    font-size: 0.75rem;

    color: #6b7280;

    margin-top: 0.25rem;

}



.offer-form-note {

    background: #fef3c7;

    border: 1px solid #fcd34d;

    border-radius: 0.5rem;

    padding: 1rem;

}



.offer-form-note p {

    font-size: 0.875rem;

    color: #4b5563;

}



.offer-form-actions {

    display: flex;

    gap: 0.75rem;

    padding-top: 1rem;

}



.offer-form-submit {

    flex: 1;

    background: linear-gradient(to right, #10b981, #059669);

    color: white;

    padding: 0.75rem 1.5rem;

    border-radius: 0.5rem;

    font-weight: 600;

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    transition: all 0.3s;

    border: none;

    cursor: pointer;

}



.offer-form-submit:hover {

    background: linear-gradient(to right, #059669, #047857);

    transform: scale(1.05);

}



.offer-form-cancel {

    padding: 0.75rem 1.5rem;

    border: 2px solid #d1d5db;

    color: #4b5563;

    border-radius: 0.5rem;

    font-weight: 600;

    transition: all 0.3s;

    background: transparent;

    cursor: pointer;

}



.offer-form-cancel:hover {

    background: #f3f4f6;

}



/* Modal Téléphone */

.phone-modal-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 5rem;

    height: 5rem;

    background: #d1fae5;

    border-radius: 9999px;

    margin-bottom: 1rem;

}



.phone-modal-icon svg {

    width: 2.5rem;

    height: 2.5rem;

    color: #059669;

}



.phone-modal-text {

    color: #6b7280;

    margin-bottom: 1rem;

}



.phone-number {

    font-size: 2.25rem;

    font-weight: bold;

    color: #059669;

    margin-bottom: 0.5rem;

}



.phone-number-link {

    font-size: 2.25rem;

    font-weight: bold;

    color: #059669;

    text-decoration: none;

    display: block;

    margin-bottom: 0.5rem;

    transition: color 0.3s;

}



.phone-number-link:hover {

    color: #047857;

}



.phone-copy-btn {

    font-size: 0.875rem;

    color: #2563eb;

    display: flex;

    align-items: center;

    gap: 0.5rem;

    margin: 0 auto 0.5rem;

    background: none;

    border: none;

    cursor: pointer;

    transition: color 0.3s;

}



.phone-copy-btn:hover {

    color: #1d4ed8;

}



.phone-instruction {

    font-size: 0.875rem;

    color: #6b7280;

}



.phone-hours {

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    border-radius: 0.5rem;

    padding: 1rem;

    margin-bottom: 1.5rem;

}



.phone-hours p {

    font-size: 0.875rem;

    color: #4b5563;

}



/* Responsive */

@media (max-width: 768px) {

    .car-details-header {

        flex-direction: column;

    }

    

    .car-details-price-section {

        text-align: left;

        width: 100%;

    }

    

    .vehicles-hero-title {

        font-size: 2rem;

    }

    

    .contact-grid {

        grid-template-columns: 1fr;

    }

}

.simple-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
}

.simple-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.simple-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.simple-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.simple-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.simple-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.simple-lightbox-prev { left: 30px; }
.simple-lightbox-next { right: 30px; }

.simple-lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
}
