/*
Theme Name: Light
Theme URI: https://cmc-agency.me
Author: CMC AGENCY
Author URI: http://yourwebsite.com
Description: Light est un thème sur-mesure ultra minimaliste.
Version: 3.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: light
Tags: light, minimal, blog
*/

@font-face {
  font-family: 'Poppins';
  src: url('https://nutriai.app/wp-content/uploads/poppins.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* Import des nouvelles polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif !important;
}

.subtitle, .elementor-heading-title, .elementor-widget-heading .elementor-heading-title {
  font-family: 'Open Sans', sans-serif !important;
}

/* Style général du body avec Open Sans */
body {
color: #333;
	margin:0px!important;
 font-family: 'Open Sans', sans-serif !important;
}

/* .subscription_details a.cancel {display:none} */


b {font-weight:600}

:root{
    --color-primary: #B11F24;
    --color-secondary: #171918;
	--color-text: #FFFFFF;
font-family:"Poppins", Sans-serif!important;
transition: all 0.3s;
}

a {color: var(--color-primary);cursor:pointer!important}

.hide {display:none!important}


::-webkit-scrollbar{
width: 10px;
}
::-webkit-scrollbar-track{
background: transparent;
}

::-webkit-scrollbar-thumb{
	background: linear-gradient(-45deg, var(--color-primary), var(--color-secondary));border-radius:30px;
}


/** ______________________________________________________________ Mode Nuit ______________________________________________________________ */

 
 

 .elementor-button {
font-family: 'Open Sans', sans-serif;
font-weight:600!important;
	        background-image: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 51%, var(--color-primary) 100%);
            transition: 0.3s;
            background-size: 200% auto!important;
            color: white;
          cursor: pointer;
            border-radius: 6px!important;
            border:none;
            padding:7px 10px
          }


          
 .elementor-button:hover {
		   transform: scale(1.05)!important;
            background-position: right center!important;
            color: #fff!important;
	        box-shadow: none;
            text-decoration: none;
          }

/* ========================================
   SYSTÈME DE LOCATION DE VOITURE
   ======================================== */

.car-rental-search-form {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
}

.search-form-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.search-section {
    flex: 1;
}

.search-section:first-child {
    width: 30%;
    flex: none;
}

.section-label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: 'Open Sans', sans-serif;
}

.location-input {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid rgba(30, 58, 138, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.location-input i {
    margin-right: 10px;
    color: var(--color-secondary);
    font-size: 18px;
}

.location-input input {
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
    width: calc(100% - 30px);
    font-family: 'Open Sans', sans-serif;
}

.location-input input::placeholder {
    color: #666;
}

.different-return {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 14px;
    align-self: flex-end;
    font-family: 'Open Sans', sans-serif;
}

.different-return:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

.date-inputs {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.date-time-input {
    display: flex;
    gap: 0;
    align-items: center;
}

.date-time-input input[type="text"].date-input {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px 0 0 6px;
    padding: 12px 15px;
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-right: none;
    font-size: 16px;
    width: 110px;
    font-family: 'Open Sans', sans-serif;
    min-height: 48px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    cursor: pointer;
    position: relative;
}

.date-time-input input[type="text"].date-input:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 15px rgba(30, 58, 138, 0.2);
}

.date-time-input input[type="text"].date-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.date-time-input input[type="text"].date-input::placeholder {
    color: #999;
    font-size: 14px;
}

/* Style pour indiquer que c'est un champ de date */
.date-time-input input[type="text"].date-input::after {
    content: "📅";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
}

.date-time-input input[type="time"] {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 6px 6px 0;
    padding: 12px 15px;
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-left: none;
    font-size: 16px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    min-height: 48px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.date-time-input input[type="time"]::-webkit-calendar-picker-indicator {
    filter: none;
    cursor: pointer;
}



.show-cars-btn {
    background-image: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 51%, var(--color-primary) 100%);
    color: var(--color-text);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    background-size: 200% auto;
    min-height: 48px;
}

.show-cars-btn:hover {
    transform: scale(1.05);
    background-position: right center;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Styles pour les résultats */
.car-rental-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
}

.search-summary {
    background: rgba(30, 58, 138, 0.05);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.search-summary h2 {
    margin: 0 0 25px 0;
    color: var(--color-primary);
    font-family: 'Open Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
}

.search-summary h2 i {
    font-size: 32px;
    color: var(--color-secondary);
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.15);
    border-color: var(--color-secondary);
}

.summary-item i {
    font-size: 24px;
    color: var(--color-secondary);
    background: rgba(30, 58, 138, 0.1);
    padding: 12px;
    border-radius: 50%;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.summary-value {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 600;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.vehicle-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.vehicle-image {
    height: 200px;
    background: rgba(30, 58, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #666;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

.vehicle-details {
    padding: 20px;
}

.vehicle-details h3 {
    margin: 0 0 10px 0;
    color: var(--color-primary);
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
}

.vehicle-category {
    color: var(--color-secondary);
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    font-family: 'Open Sans', sans-serif;
}

.vehicle-description {
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
}

.pricing {
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 15px;
}

.price-per-day {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.price-on-request {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    font-style: italic;
}
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.deposit-price {
    color: #f59e0b;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.deposit-price.crossed-out {
    text-decoration: line-through;
    opacity: 0.5;
    color: #9ca3af;
}

.total-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

.rent-now-btn {
    background-image: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 51%, var(--color-primary) 100%);
    color: var(--color-text);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    background-size: 200% auto;
    position: relative;
}

.rent-now-btn:hover {
    transform: scale(1.05);
    background-position: right center;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Bulle de prix sur le bouton */
.price-bubble {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f59e0b;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    border: 2px solid white;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .search-form-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-section:first-child {
        width: 100%;
    }
    
    .date-time-input {
        flex-direction: column;
    }
    
    .date-time-input input[type="date"] {
        border-radius: 6px;
        border-right: 1px solid rgba(30, 58, 138, 0.2);
        border-bottom: none;
    }
    
    .date-time-input input[type="time"] {
        border-radius: 6px;
        border-left: 1px solid rgba(30, 58, 138, 0.2);
        border-top: none;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-details {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   STYLES POUR LE SHORTCODE ALL VEHICLES
   ======================================== */

.all-vehicles-display {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
}

.vehicles-header {
    text-align: center;
    margin-bottom: 40px;
}

.vehicles-header h2 {
    color: var(--color-primary);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
}

.vehicles-header p {
    color: #666;
    font-size: 18px;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

/* Responsive pour all-vehicles */
@media (max-width: 768px) {
    .all-vehicles-display {
        padding: 15px;
    }
    
    .vehicles-header h2 {
        font-size: 28px;
    }
    
    .vehicles-header p {
        font-size: 16px;
    }
}

/* ========================================
   STYLES POUR LE SHORTCODE VEHICLES GRID
   ======================================== */

.vehicles-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
}

.category-filter {
    margin-bottom: 30px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.category-btn {
    background-image: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 51%, var(--color-primary) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: 200% auto;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.category-btn:hover {
    transform: scale(1.05);
    background-position: right center;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.category-btn.active {
    background-image: linear-gradient(120deg, var(--color-secondary) 0%, var(--color-primary) 51%, var(--color-secondary) 100%);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.5);
}

/* Styles pour le message UTM et le lien "Show all categories" */
.utm-category-notice {
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 51%, var(--color-primary) 100%);
    background-size: 200% auto;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(177, 31, 36, 0.3);
    animation: gradientShift 3s ease infinite;
}

.utm-category-notice p {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.show-all-categories {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.show-all-categories:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.05);
    text-decoration: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive pour vehicles-grid */
@media (max-width: 768px) {
    .vehicles-grid-container {
        padding: 15px;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* ========================================
   STYLES POUR LES OPTIONS D'ASSURANCE
   ======================================== */

.insurance-option {
    margin: 20px 0;
    padding: 15px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

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

.insurance-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #313131;
    font-size: 14px;
}

.insurance-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #28a745;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
}

.insurance-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #28a745;
    border-color: #28a745;
}

.insurance-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.insurance-tooltip {
    position: relative;
    cursor: help;
    display: inline-block;
}

.insurance-tooltip i {
    color: var(--color-secondary);
    font-size: 18px;
    transition: color 0.3s ease;
    display: block;
}

.insurance-tooltip:hover i {
    color: var(--color-primary);
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 280px;
    z-index: 9999;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    transition: all 0.3s ease;
    pointer-events: none;
    /* État par défaut caché */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 8px solid transparent;
    border-top-color: white;
}

.tooltip-content strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 8px;
}

.insurance-details {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;    margin-top: 20px;
}

.insurance-price {
    color: #444;;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.deposit-info {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    padding: 12px;
    margin: 0;
    font-size: 13px;
    color: #92400e;
}

.deposit-amount {
    margin: 0;
    font-weight: 600;
}

/* Animation pour l'apparition des détails d'assurance */
.insurance-details,
.deposit-info {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.insurance-details[style*="display: none"],
.deposit-info[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
}

/* Classes pour la visibilité du tooltip */
.tooltip-content.tooltip-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.tooltip-content.tooltip-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
}

/* Responsive pour les options d'assurance */
@media (max-width: 768px) {
    .insurance-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tooltip-content {
        width: 250px;
        right: -50px;
    }
    
    .tooltip-content::after {
        right: 70px;
    }
    
    .insurance-option {
        padding: 12px;
    }
}

/* ========================================
   STYLES POUR LA GALERIE DE VÉHICULES
   ======================================== */

.vehicle-gallery-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.gallery-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Responsive pour la galerie */
@media (max-width: 768px) {
    .vehicle-gallery-display {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-image img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .vehicle-gallery-display {
        grid-template-columns: 1fr;
    }
    
    .gallery-image img {
        height: 200px;
    }
}

/* ========================================
   STYLES RESPONSIFS POUR LE RÉSUMÉ DE RECHERCHE
   ======================================== */

@media (max-width: 768px) {
    .search-summary {
        padding: 20px;
    }
    
    .search-summary h2 {
        font-size: 24px;
        gap: 10px;
    }
    
    .search-summary h2 i {
        font-size: 28px;
    }
    
    .summary-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .summary-item {
        padding: 15px;
        gap: 12px;
    }
    
    .summary-item i {
        font-size: 20px;
        padding: 10px;
        min-width: 40px;
        height: 40px;
    }
    
    .summary-value {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .search-summary {
        padding: 15px;
    }
    
    .search-summary h2 {
        font-size: 22px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .summary-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .summary-item i {
        margin-bottom: 5px;
    }
}

/* ========================================
   STYLES POUR LE BLOC DE RÉSERVATION MOBILE/TABLETTE
   ======================================== */

/* Masquer le bloc de réservation sur mobile et tablette par défaut */
@media (max-width: 1180px) {
    #bookingblock.booking-hidden-mobile {
        display: none !important;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #bookingblock.booking-visible-mobile {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Styles spécifiques pour les très petits écrans */
@media (max-width: 767px) {
    #bookingblock.booking-visible-mobile {
        margin-top: 20px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Animation d'apparition du bloc */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#bookingblock.booking-visible-mobile {
    animation: slideInFromBottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   POPUP DE RÉSERVATION POUR LES VÉHICULES
   ======================================== */

/* Overlay de la popup */
.rental-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* Contenu de la popup */
.rental-popup-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bouton de fermeture */
.rental-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.rental-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.rental-popup-close i {
    font-size: 18px;
    color: #666;
}

/* En-tête de la popup */
.rental-popup-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    text-align: center;
}

.rental-popup-header h2 {
    margin: 0 0 10px 0;
    color: var(--color-primary);
    font-size: 28px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
}

.vehicle-name {
    margin: 0;
    color: var(--color-secondary);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

/* Nouveau layout pour l'en-tête avec image */
.vehicle-header-content {
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
}

.vehicle-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(30, 58, 138, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vehicle-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-image-container .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 138, 0.1);
    color: #666;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
}

.vehicle-header-text {
    flex: 1;
    text-align: left;
}

.vehicle-header-text h2 {
    text-align: left;
    margin-bottom: 8px;
}

.vehicle-header-text .vehicle-name {
    text-align: left;
}

/* Corps de la popup */
.rental-popup-body {
    padding: 30px;
}

/* Sections de la popup */
.rental-section {
    margin-bottom: 40px;
}

.rental-section:last-child {
    margin-bottom: 0;
}

.rental-section h3 {
    margin: 0 0 20px 0;
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rental-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--color-secondary);
    border-radius: 2px;
}

/* Formulaire de réservation */
.rental-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-secondary);
    font-family: 'Open Sans', sans-serif;
}

/* Groupe de dates et heures */
.date-time-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Résumé des prix */
.price-summary {
    background: rgba(30, 58, 138, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    font-family: 'Open Sans', sans-serif;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row span:first-child {
    color: #666;
    font-weight: 500;
}

.price-row span:last-child {
    color: var(--color-primary);
    font-weight: 600;
}

.total-row {
    border-top: 2px solid var(--color-secondary);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
}

.total-row span:last-child {
    color: var(--color-secondary);
    font-size: 20px;
}

/* Lignes de prix journaliers */
.daily-price-row, .daily-insurance-row {
    border-bottom: 1px solid rgba(30, 58, 138, 0.05);
    background: rgba(30, 58, 138, 0.02);
    padding: 8px 0;
    margin: 0;
}

.daily-price-row span:last-child, .daily-insurance-row span:last-child {
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 500;
}

.daily-price-row span:first-child, .daily-insurance-row span:first-child {
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

.deposit-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    font-family: 'Open Sans', sans-serif;
}

.deposit-info span {
    color: #f59e0b;
    font-weight: 600;
}

/* Finalisation de la réservation */
.booking-completion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info, .email-recap {
    padding: 25px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.contact-info p, .email-recap p {
    margin: 0 0 20px 0;
    color: var(--color-secondary);
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

.contact-phone, .contact-us-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.contact-phone:hover, .contact-us-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-phone i, .contact-us-btn i {
    font-size: 16px;
}

/* Groupe d'email */
.email-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-input-group input[type="email"] {
    padding: 12px 15px;
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.email-input-group input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.send-recap-btn {
    padding: 12px 20px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-recap-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Styles pour les indicateurs visuels du bouton d'envoi */
.send-recap-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.send-recap-btn .btn-text,
.send-recap-btn .btn-loading {
    display: inline-block;
    vertical-align: middle;
}

.send-recap-btn .btn-loading i {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Styles pour les messages de statut */
.email-status {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    animation: statusSlideIn 0.3s ease;
}

.email-status .status-message {
    margin: 0;
    line-height: 1.4;
}

.email-status .status-message.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.email-status .status-message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

@keyframes statusSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   STYLES POUR L'ASSURANCE DANS LA POPUP
   ======================================== */

.insurance-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-secondary);
    font-family: 'Open Sans', sans-serif;
}

.insurance-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.insurance-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.insurance-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.insurance-info-icon {
    color: var(--color-primary);
    font-size: 18px;
    cursor: help;
    transition: all 0.3s ease;
}

.insurance-info-icon:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.insurance-info {
    text-align: center;
    margin-top: 8px;
}

.insurance-info small {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.insurance-tooltip-content {
    margin-top: 10px;
    padding: 15px;
    background: rgba(30, 58, 138, 0.05);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-secondary);
    font-family: 'Open Sans', sans-serif;
    display: none;
    animation: tooltipFadeIn 0.3s ease;
}

.insurance-checkbox:hover + .insurance-tooltip-content,
.insurance-tooltip-content:hover {
    display: block;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design pour la popup */
@media (max-width: 768px) {
    .rental-popup-content {
        width: 95%;
        max-height: 95vh;
        margin: 20px;
    }
    
    .rental-popup-header {
        padding: 20px 20px 15px 20px;
    }
    
    .vehicle-header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .vehicle-image-container {
        width: 100px;
        height: 70px;
    }
    
    .vehicle-header-text {
        text-align: center;
    }
    
    .vehicle-header-text h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .vehicle-header-text .vehicle-name {
        font-size: 16px;
        text-align: center;
    }
    
    .rental-popup-body {
        padding: 20px;
    }
    
    .date-time-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .booking-completion {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info, .email-recap {
        padding: 20px;
    }
    
    .rental-popup-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .rental-popup-content {
        width: 98%;
        margin: 10px;
    }
    
    .rental-popup-header {
        padding: 15px 15px 10px 15px;
    }
    
    .rental-popup-body {
        padding: 15px;
    }
    
    .rental-section {
        margin-bottom: 30px;
    }
    
    .price-summary {
        padding: 20px;
    }
    
    .contact-info, .email-recap {
        padding: 15px;
    }
    
    .vehicle-header-content {
        gap: 10px;
    }
    
    .vehicle-image-container {
        width: 80px;
        height: 60px;
    }
}
