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

   IDAcars - Composants

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



/* Hero Section */

.hero {

    position: relative;

    color: white;

    padding: 6rem 0;

    overflow: hidden;

    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #3b82f6 100%);

}



.hero-canvas {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

}



.hero-overlay {

    position: absolute;

    inset: 0;

    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));

}



.hero-content {

    position: relative;

    z-index: 10;

    max-width: 1152px;

    margin: 0 auto;

    padding: 0 1rem;

}



.hero-title {

    font-size: 2.25rem;

    font-weight: bold;

    margin-bottom: 1.5rem;

    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);

}



.hero-subtitle {

    font-size: 1.25rem;

    margin-bottom: 2rem;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

}



@media (min-width: 768px) {

    .hero-title {

        font-size: 3.75rem;

    }

}



/* Cartes de véhicules */

.vehicle-card {

    background: white;
    position: relative;
    border-radius: 1rem;

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

    overflow: hidden;

    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;

}



.vehicle-card:hover {

    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    transform: translateY(-8px);

}



.vehicle-card-image {

    position: relative;

    height: 14rem;

    overflow: hidden;

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

}



.vehicle-card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;

}



.vehicle-card:hover .vehicle-card-image img {

    transform: scale(1.1);

}



.vehicle-card-badge {

    position: absolute;

    top: 1rem;

    right: 1rem;

    background: #2563eb;

    color: white;

    padding: 0.5rem 0.75rem;

    border-radius: 9999px;

    font-size: 0.875rem;

    font-weight: 600;

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

}



/* Badge VENDU en diagonale (haut gauche) */
.sold-badge {
    position: absolute;
    top: 30px;
    left: -35px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 8px 50px;
    font-weight: 900;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    transform: rotate(-45deg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    z-index: 15;
    pointer-events: none;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.sold-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}


/* Style pour les cartes de véhicules vendus */

.vehicle-card.sold {

    opacity: 0.85;

}



.vehicle-card.sold .vehicle-card-image {

    filter: grayscale(50%);

}



.vehicle-card.sold:hover {

    transform: translateY(-4px);

}



.vehicle-card-fuel {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);

    padding: 1rem;

}



.vehicle-card-fuel span {

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

    backdrop-filter: blur(4px);

    color: #1f2937;

    padding: 0.25rem 0.75rem;

    border-radius: 9999px;

    font-size: 0.75rem;

    font-weight: 600;

}



.vehicle-card-content {

    padding: 1.5rem;

}



.vehicle-card-title {

    font-size: 1.5rem;

    font-weight: bold;

    margin-bottom: 0.75rem;

    color: #1f2937;

    transition: color 0.3s;

}



.vehicle-card:hover .vehicle-card-title {

    color: #2563eb;

}



.vehicle-card-specs {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    color: #6b7280;

    margin-bottom: 0.5rem;

}



.vehicle-card-specs svg {

    width: 1.25rem;

    height: 1.25rem;

}



.vehicle-card-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 1rem;

    border-top: 1px solid #f3f4f6;

}



.vehicle-card-price {

    font-size: 1.875rem;

    font-weight: bold;

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

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



/* Filtres */

.filter-container {

    background: white;

    border-radius: 1rem;

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

    padding: 1.5rem;

    margin-bottom: 2rem;

    border: 1px solid #f3f4f6;

}



.filter-header {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    margin-bottom: 1rem;

}



.filter-header svg {

    width: 1.5rem;

    height: 1.5rem;

    color: #2563eb;

}



.filter-header h3 {

    font-size: 1.125rem;

    font-weight: 600;

    color: #1f2937;

}



.filter-controls {

    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

    align-items: center;

    justify-content: space-between;

}



.filter-select {

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

    border: 2px solid #e5e7eb;

    padding: 0.5rem 1rem;

    border-radius: 0.75rem;

    transition: all 0.3s;

}



.filter-select:focus {

    outline: none;

    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);

}



/* Modals */

.modal {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.7);

    backdrop-filter: blur(4px);

    z-index: 50;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 1rem;

}



.modal.hidden {

    display: none;

}



.modal-content {

    background: white;

    border-radius: 1rem;

    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    max-width: 42rem;

    width: 100%;

    max-height: 90vh;

    overflow-y: auto;

}



.modal-header {

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

    color: white;

    padding: 1.5rem;

    border-radius: 1rem 1rem 0 0;

}



.modal-header-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.modal-title {

    font-size: 1.5rem;

    font-weight: bold;

}



.modal-subtitle {

    color: rgba(255, 255, 255, 0.9);

    margin-top: 0.25rem;

}



.modal-close {

    color: white;

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

    border-radius: 9999px;

    padding: 0.5rem;

    transition: background 0.3s;

    border: none;

    cursor: pointer;

}



.modal-close:hover {

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

}



.modal-body {

    padding: 1.5rem;

}



/* Galerie d'images */

.gallery-main {

    position: relative;

    height: 600px;

    overflow: hidden;

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

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 1rem;

}



.gallery-main img {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

    cursor: zoom-in;

    transition: all 0.3s;

    border-radius: 0.5rem;

    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

}



.gallery-main img:hover {

    transform: scale(1.05);

}



.gallery-overlay {

    position: absolute;

    inset: 0;

    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);

    pointer-events: none;

}



.gallery-zoom-btn {

    position: absolute;

    top: 1rem;

    right: 1rem;

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

    backdrop-filter: blur(4px);

    color: #1f2937;

    padding: 0.5rem 1rem;

    border-radius: 9999px;

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

    transition: all 0.3s;

    border: none;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.gallery-zoom-btn:hover {

    background: white;

}



.gallery-thumbnails {

    background: white;

    border-top: 1px solid #e5e7eb;

    padding: 1.5rem;

}



.gallery-thumbnails-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 1rem;

}



.gallery-thumbnails-header h3 {

    font-size: 1.125rem;

    font-weight: 600;

    color: #1f2937;

}



.gallery-thumbnails-count {

    font-size: 0.875rem;

    color: #6b7280;

}



.gallery-thumbnails-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 0.75rem;

}



@media (min-width: 768px) {

    .gallery-thumbnails-grid {

        grid-template-columns: repeat(6, minmax(0, 1fr));

    }

}



@media (min-width: 1024px) {

    .gallery-thumbnails-grid {

        grid-template-columns: repeat(8, minmax(0, 1fr));

    }

}



.gallery-thumbnail {

    position: relative;

    cursor: pointer;

}



.gallery-thumbnail img {

    width: 100%;

    height: 5rem;

    object-fit: cover;

    border-radius: 0.5rem;

    border: 2px solid #e5e7eb;

    transition: all 0.3s;

}



.gallery-thumbnail img.active {

    border-color: #2563eb;

    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);

}



.gallery-thumbnail img:hover {

    border-color: #60a5fa;

}



.gallery-thumbnail-overlay {

    position: absolute;

    inset: 0;

    background: rgba(37, 99, 235, 0);

    border-radius: 0.5rem;

    transition: all 0.3s;

}



.gallery-thumbnail:hover .gallery-thumbnail-overlay {

    background: rgba(37, 99, 235, 0.1);

}



.gallery-thumbnail-badge {

    position: absolute;

    top: -0.5rem;

    right: -0.5rem;

    background: #2563eb;

    color: white;

    font-size: 0.75rem;

    padding: 0.25rem 0.5rem;

    border-radius: 9999px;

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

}



/* Zoom Modal */

.zoom-modal {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.95);

    backdrop-filter: blur(4px);

    z-index: 50;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 1rem;

}



.zoom-modal.hidden {

    display: none;

}



.zoom-modal-content {

    position: relative;

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

}



.zoom-modal img {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

    border-radius: 0.5rem;

    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

}



.zoom-modal-close,

.zoom-modal-nav {

    position: absolute;

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

    backdrop-filter: blur(4px);

    color: #1f2937;

    border-radius: 9999px;

    width: 3.5rem;

    height: 3.5rem;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.3s;

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

    border: none;

    cursor: pointer;

    font-size: 1.5rem;

}



.zoom-modal-close:hover,

.zoom-modal-nav:hover {

    background: white;

}



.zoom-modal-close {

    top: 1.5rem;

    right: 1.5rem;

}



.zoom-modal-nav.prev {

    left: 1.5rem;

}



.zoom-modal-nav.next {

    right: 1.5rem;

}



.zoom-modal-counter {

    position: absolute;

    bottom: 1.5rem;

    left: 50%;

    transform: translateX(-50%);

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

    backdrop-filter: blur(4px);

    color: #1f2937;

    padding: 0.75rem 1.5rem;

    border-radius: 9999px;

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

    font-weight: 600;

}



.zoom-modal-instructions {

    position: absolute;

    top: 1.5rem;

    left: 1.5rem;

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

    backdrop-filter: blur(4px);

    color: #4b5563;

    padding: 0.5rem 1rem;

    border-radius: 9999px;

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

    font-size: 0.875rem;

}



/* Spécifications du véhicule */

.spec-card {

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

    padding: 1.5rem;

    border-radius: 0.75rem;

    border: 1px solid #bfdbfe;

}



.spec-card.fuel {

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

    border-color: #bfdbfe;

}



.spec-card.transmission {

    background: linear-gradient(to bottom right, #f0fdf4, #dcfce7);

    border-color: #bbf7d0;

}



.spec-card.color {

    background: linear-gradient(to bottom right, #faf5ff, #f3e8ff);

    border-color: #e9d5ff;

}



.spec-card.mileage {

    background: linear-gradient(to bottom right, #fff7ed, #ffedd5);

    border-color: #fed7aa;

}



.spec-icon {

    font-size: 1.875rem;

    margin-bottom: 0.5rem;

}



.spec-label {

    color: #6b7280;

    font-size: 0.75rem;

    text-transform: uppercase;

    font-weight: 600;

    margin-bottom: 0.25rem;

}



.spec-value {

    font-weight: bold;

    font-size: 1.125rem;

    color: #1f2937;

}



/* Couleur du véhicule */

.color-display {

    display: flex;

    align-items: center;

    gap: 0.75rem;

}



.color-swatch {

    width: 3rem;

    height: 3rem;

    border-radius: 9999px;

    border: 3px solid #d1d5db;

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

}



/* Section Contact */

.contact-cta {

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

    padding: 2rem;

    border-radius: 0.75rem;

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

    color: white;

}



.contact-cta h2 {

    font-size: 1.875rem;

    font-weight: bold;

    margin-bottom: 1rem;

}



.contact-cta p {

    color: rgba(219, 234, 254, 1);

    margin-bottom: 1.5rem;

    font-size: 1.125rem;

}



.contact-cta-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

}



/* Features Section */

.features-grid {

    display: grid;

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

    gap: 2rem;

}



.feature-item {

    text-align: center;

}



.feature-icon {

    font-size: 2.5rem;

    margin-bottom: 1rem;

}



.feature-title {

    font-size: 1.25rem;

    font-weight: bold;

    margin-bottom: 0.5rem;

}



.feature-description {

    color: #6b7280;

}



/* Info Box */

.info-box {

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

    border: 1px solid #bfdbfe;

    border-radius: 0.5rem;

    padding: 1rem;

}



.info-box.warning {

    background: linear-gradient(to bottom right, #fef3c7, #fde68a);

    border-color: #fcd34d;

}



.info-box.success {

    background: linear-gradient(to bottom right, #d1fae5, #a7f3d0);

    border-color: #6ee7b7;

}



.info-box.error {

    background: linear-gradient(to bottom right, #fee2e2, #fecaca);

    border-color: #fca5a5;

}

/* ===== Scroll indicator (bouton) ===== */
.scroll-indicator-modern{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 9999px;

  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  cursor: pointer;
  user-select: none;

  transition: transform .2s ease, opacity .2s ease;
}

.scroll-indicator-modern:hover{
  transform: translateX(-50%) translateY(-2px);
}

.scroll-indicator-modern.hidden{
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

.si-icon{
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  display: grid;
  place-items: center;

  background: rgba(59,130,246,0.25);
  border: 1px solid rgba(255,255,255,0.16);

  animation: si-bounce 1.4s ease-in-out infinite;
}

@keyframes si-bounce{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.si-text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.si-title{ font-weight: 800; font-size: 13px; }
.si-sub{ font-size: 12px; opacity: .85; }

@media (max-width: 640px){
  .si-sub{ display:none; }
}
/* ===== End Scroll indicator (bouton) ===== */
