/* =======================================*/
/* ============== RESET ==================*/
/* =======================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5; /* Gris léger commun à tout le site */
    color: #333;
    overflow-x: hidden;
}

/* Conteneur générique */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* =======================================*/
/* =============== NAVBAR ================*/
/* =======================================*/

nav {
    background: #333;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a.active {
    border-bottom: 2px solid #e67e22; /* Page active */
}

.btn-contact {
    background: #e67e22;
    padding: 8px 15px;
    border-radius: 5px;
}

/* =======================================*/
/* ================= HERO =================*/
/* =======================================*/

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://via.placeholder.com/1920x600?text=Matériel+BTP+et+Jardin');
    background-size: cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #f8f8f8;
}

.btn-main {
    background: #e67e22;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
}

/* =======================================*/
/* ======= SECTION POURQUOI LOUER ========*/
/* =======================================*/

.why-us-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.section-subtitle {
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1rem;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

.benefit-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 300px;
    max-width: 400px;
    width: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icon {
    font-size: 3rem;
    color: #e67e22;
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #2c3e50;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* =======================================*/
/* ====== SECTION RECHERCHE OUTILS =======*/
/* =======================================*/

/* Barre de recherche générale */
.search-bar {
    text-align: center;
    padding: 2rem;
    background: #ddd;
}

.search-bar input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
}

.search-bar button {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
}

.filters {
    margin-bottom: 20px;
    text-align: center;
}

.filters button {
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ccc;
}

.filters button.active-filter {
    background-color: #e67e22;
    color: white;
    border-color: #e67e22;
}

.catalogue-search {
    text-align: center;
    margin-bottom: 20px;
}

.catalogue-search input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.catalogue-search input:focus {
    border-color: #e67e22;
}

/* Grille produits */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Carte produit */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
    transition: opacity 0.3s ease-in-out;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.price {
    color: #e67e22;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-reserver {
    display: block;
    width: 100%;
    padding: 10px;
    background: #27ae60;
    color: white;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    border-radius: 5px;
}

/* =======================================*/
/* ================= FOOTER ==============*/
/* =======================================*/

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.socials a {
    color: #e67e22;
    margin: 0 10px;
    text-decoration: none;
}

/* =======================================*/
/* ========= HORAIRES & LOCALISATION =====*/
/* =======================================*/

.info-section {
    background-color: #fff;
    padding: 2rem 0;
}

.horaires-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.horaires-text h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
}

.horaires-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.horaires-table tr {
    border-bottom: 1px solid #eee;
}

.horaires-table td {
    padding: 12px 5px;
    color: #555;
}

.address-box {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #e67e22;
    border-radius: 4px;
}

.address-box p {
    margin-bottom: 5px;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
}

.admin-access {
    margin-top: 15px;
}

.admin-access a {
    color: white;
    font-size: 0.75rem;
    text-decoration: none;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.admin-access a:hover {
    opacity: 1;
    color: #e67e22;
}

/* =======================================*/
/* ============ PAGE CATALOGUE ===========*/
/* =======================================*/

.page-header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #ccc;
}

/* =======================================*/
/* ============== CONTACT ================*/
/* =======================================*/

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.contact-info-box {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
}

.contact-info-box h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e67e22;
    display: inline-block;
}

.intro-text {
    margin-bottom: 30px;
    color: #666;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: #e67e22;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-form-box {
    flex: 2;
    min-width: 300px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #e67e22;
    outline: none;
}

/* =======================================*/
/* ============== ADMIN LAYOUT ===========*/
/* =======================================*/

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    background-color: #1a252f;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #34495e;
    color: white;
    border-left-color: #e67e22;
}

.inactive {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #34495e;
    background-color: #233240;
}

.sidebar-footer a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    display: block;
    transition: color 0.3s;
}

.sidebar-footer a:hover {
    color: #ff7675;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* =======================================*/
/* ============== ADMIN PANELS ===========*/
/* =======================================*/

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.top-bar h1 {
    color: #2c3e50;
    margin: 0;
}

.btn-add {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    background-color: #219150;
}

.content-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa;
    color: #666;
    font-weight: 600;
}

.product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-ok {
    background: #e8f5e9;
    color: #27ae60;
}

.status-reserved {
    background: #ffebee;
    color: #c0392b;
}

.action-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.edit {
    color: #3498db;
}

.delete {
    color: #e74c3c;
}

/* =======================================*/
/* ============== MODALE ADMIN ===========*/
/* =======================================*/

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #333;
}

.btn-save {
    width: 100%;
    padding: 12px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-save:hover {
    background: #d35400;
}

/* --- Badges Statuts Réservation --- */
.status-attente {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
.status-confirmee {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.status-annulee {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Boutons d'action rapides */
.btn-mini {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 5px;
}
.btn-accept { background: #27ae60; color: white; }
.btn-accept:hover { background: #219150; }

.btn-refuse { background: #e74c3c; color: white; }
.btn-refuse:hover { background: #c0392b; }

.btn-disabled {
    background-color: #bdc3c7 !important;
    color: #fff;
    border: none;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* =======================================*/
/* ======== RESPONSIVE (MEDIA QUERIES) ===*/
/* =======================================*/

/* --- Tablettes et Mobiles (moins de 992px) --- */
@media (max-width: 992px) {

    /* Navigation en colonne */
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 15px;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        background: rgba(255,255,255,0.05);
        border-radius: 5px;
    }

    /* Admin : sidebar en haut */
    .admin-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
    }

    .sidebar-menu a {
        padding: 15px;
        border-left: none;
        border-bottom: 4px solid transparent;
        white-space: nowrap;
    }

    .sidebar-menu a:hover,
    .sidebar-menu a.active {
        border-left: none;
        border-bottom-color: #e67e22;
    }
}

/* --- Mobiles (moins de 768px) --- */
@media (max-width: 768px) {

    .hero {
        height: auto;
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info-box,
    .contact-form-box {
        min-width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .map-container iframe {
        height: 300px;
    }

    .admin-table,
    .horaires-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-add {
        width: 100%;
        justify-content: center;
    }
}

/* --- Très petits écrans (moins de 400px) --- */
@media (max-width: 400px) {

    .filters button {
        width: 100%;
        margin: 5px 0;
    }

    .search-bar input,
    .catalogue-search input {
        width: 100%;
    }
}

/* --- Desktop (au-dessus de 768px) : mise en ligne horaires + carte --- */
@media (min-width: 768px) {
    .horaires-content {
        flex-direction: row;
        align-items: center;
    }

    .horaires-text,
    .map-container {
        flex: 1;
    }
}


/* =======================================*/
/* ======= PAGE ADMIN SUPP FENETRE =======*/

/* Boutons de la modale suppression */
.btn-cancel {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-cancel:hover {
    background-color: #7f8c8d;
}

.btn-confirm-delete {
    background-color: #e74c3c; /* Rouge */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-confirm-delete:hover {
    background-color: #c0392b;
}


/* =======================================*/
/* ========== PAGE FICHE PRODUIT =========*/
/* =======================================*/

.product-detail-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #666;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    color: #e67e22;
}

.product-detail-wrapper {
    display: flex;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    align-items: flex-start;
}

.detail-image {
    flex: 1;
    max-width: 50%;
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

.detail-content {
    flex: 1;
}

.detail-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.detail-category {
    display: inline-block;
    background: #f0f2f5;
    padding: 5px 15px;
    border-radius: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.detail-price-box {
    background: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #e67e22;
    margin-bottom: 30px;
}

.detail-price {
    font-size: 2rem;
    font-weight: bold;
    color: #e67e22;
}

.btn-large-reserver {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.btn-large-reserver:hover {
    background: #219150;
}

/* Mobile responsive pour la fiche produit */
@media (max-width: 768px) {
    .product-detail-wrapper {
        flex-direction: column;
    }
    
    .detail-image {
        max-width: 100%;
    }
}

/* =======================================*/
/* ========== STYLE CALENDRIER ===========*/
/* =======================================*/

.reservation-box {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
}

.calendar-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff url('https://cdn-icons-png.flaticon.com/512/2702/2702604.png') no-repeat right 10px center;
    background-size: 20px;
    cursor: pointer;
}

.calendar-input:focus {
    border-color: #e67e22;
    outline: none;
}

/* Bouton désactivé (quand pas de dates) */
.disabled-link {
    background-color: #ccc !important;
    pointer-events: none; /* Empêche le clic */
    cursor: not-allowed;
    box-shadow: none;
}


/* =======================================*/
/* ======= MODALE ERREUR CUSTOM ==========*/
/* =======================================*/

/* Fond sombre derrière la modale */
.custom-modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px); /* Petit effet de flou moderne */
    align-items: center;
    justify-content: center;
}

/* La boîte blanche */
.custom-modal-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Icône et Texte */
.modal-icon-warning {
    font-size: 3.5rem;
    color: #e67e22; /* Orange Joyce Location */
    margin-bottom: 20px;
}

.custom-modal-box h3 {
    margin-bottom: 10px;
    color: #333;
}

.custom-modal-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Les boutons */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-modal-login {
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-weight: bold;
    flex: 1;
}
.btn-modal-login:hover { background: #000; }

.btn-modal-retry {
    background: #ecf0f1;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #bdc3c7;
    flex: 1;
}
.btn-modal-retry:hover { background: #dfe6e9; }

/* Animation pour attirer l'attention sur le formulaire de connexion */
@keyframes flashOrange {
    0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); transform: scale(1); }
    50% { box-shadow: 0 0 25px 0 rgba(230, 126, 34, 0.6); transform: scale(1.02); border-color: #e67e22; }
    100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); transform: scale(1); }
}

.highlight-login {
    animation: flashOrange 1s ease-out;
    border: 1px solid #e67e22 !important;
}

/* =======================================*/
/* ========== CHANGEMENT MDP =============*/
/* Styles spécifiques pour le Reset Mot de Passe */
.step-container {
    display: none; /* Tout caché par défaut */
    animation: fadeIn 0.3s;
}
.step-container.active {
    display: block;
}

.input-code {
    letter-spacing: 5px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
}

/* =======================================*/
/* ======= PERSONNALISATION CALENDRIER ===*/
/* =======================================*/

/* 1. Dates Indisponibles (Déjà réservées) -> EN ROUGE */
.flatpickr-day.disabled, 
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.disabled:hover {
    background-color: #ffebee !important; /* Force le fond rouge */
    color: #c0392b !important;            /* Texte rouge */
    border-color: #ffcdd2 !important;
    cursor: not-allowed !important;       /* Force le curseur sens interdit */
    pointer-events: auto !important;      /* IMPORTANT: Permet à la souris d'interagir (pour voir le curseur) */
    opacity: 1 !important;                /* Empêche le calendrier de rendre la date transparente */
}

/* 2. Dates Disponibles -> EN VERT */
/* On cible les jours qui ne sont ni désactivés, ni sélectionnés, ni d'un autre mois */
.flatpickr-day:not(.disabled):not(.selected):not(.prevMonthDay):not(.nextMonthDay) {
    background-color: #e8f5e9; /* Fond vert très clair */
    color: #27ae60;            /* Texte vert */
    border: 1px solid #c3e6cb; /* Bordure verte subtile */
    font-weight: bold;
}

/* 3. Au survol d'une date disponible (Hover) */
.flatpickr-day:not(.disabled):not(.selected):not(.prevMonthDay):not(.nextMonthDay):hover {
    background-color: #27ae60 !important; /* Devient vert foncé au survol */
    color: white !important;
    border-color: #27ae60 !important;
}

/* 4. Date sélectionnée (L'intervalle choisi) -> EN ORANGE (Ta couleur principale) */
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
    background: #e67e22 !important; /* Ton Orange Joyce Location */
    border-color: #e67e22 !important;
    color: white !important;
}

/* 5. La plage entre la date de début et de fin */
.flatpickr-day.inRange {
    box-shadow: -5px 0 0 #fce4ec, 5px 0 0 #fce4ec !important; /* Ombre portée */
    background: #fadbd8 !important; /* Orange très pâle pour la sélection en cours */
    border-color: #fadbd8 !important;
}

/* =======================================*/
/* == PERSONNALISATION CALENDRIER ADMIN ==*/
/* =======================================*/

#admin-calendar-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

#inline-calendar {
    width: 100%;
    display: flex;
    justify-content: center;
}

.flatpickr-calendar.inline {
    box-shadow: none !important;
    border: 1px solid #eee !important;
    background: #fff !important;
    top: 0 !important;
    margin: 0 auto;
}

.flatpickr-calendar.inline, 
.flatpickr-days, 
.dayContainer {
    width: 320px !important;
}

.admin-calendar-display {
    width: 100%;
    max-width: 320px;
    margin-bottom: 15px;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #e67e22;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    cursor: default;
    outline: none;
}

#inline-calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
