/* style.css - Version nettoyée et cohérente */

/* --- Importations & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400&display=swap');

:root {
    --primary-color: #A0522D;
    --secondary-color: #1a1a1a;
    --background-color: #F8F8F8;
    --card-background: #FFFFFF;
    --border-color: #E0E0E0;
    --light-hover: #f0f0f0;
}

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

body {
    font-family: 'Lato', sans-serif; 
    color: var(--secondary-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif; 
    color: var(--secondary-color);
    margin-bottom: 0.5em;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #6d3a1f; 
}

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

.page-title {
    font-size: 3.5em; 
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

/* --- Navigation --- */
.navbar {
    background-color: var(--card-background);
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 25px;
    color: var(--secondary-color);
    font-weight: 400;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cart-btn:hover {
    background-color: var(--light-hover);
}

.cart-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

.cart-count {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7em;
    border-radius: 50%;
    padding: 2px 6px;
    position: absolute;
    top: -5px;
    right: -10px;
}

/* --- Menu Mobile --- */
.mobile-menu-btn {
    display: none; 
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--light-hover);
    padding: 10px 20px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--secondary-color);
}

/* --- Boutons --- */
.btn {
    padding: 12px 25px; 
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    background: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #6d3a1f;
    border-color: #6d3a1f;
}

/* --- Hero Section --- */
.hero {
    height: 450px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('https://images.unsplash.com/photo-1578926375605-eaf7559b1458?w=1600') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-content {
    color: white;
}

.hero h1 {
    font-size: 4em;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- Features Section --- */
.features {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    flex-basis: 30%;
    text-align: center;
    padding: 30px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    font-size: 1.3em;
}

/* --- Galerie/Boutique --- */
.search-bar {
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--card-background);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-icon {
    font-size: 1.2em;
    margin: 0 10px;
    color: #888;
}

#searchInput {
    flex-grow: 1;
    border: none;
    padding: 5px;
    font-size: 1em;
    outline: none;
}

.category-filters {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    margin: 5px;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* --- Effet Zoom Images --- */
.product-image-container {
    width: 100%;
    height: 350px; 
    overflow: hidden;
    position: relative;
    background-color: #f4f4f4;
    cursor: zoom-in;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.15, 1, 0.3, 1);
}

.product-image-container:hover img {
    transform: scale(1.3);
}

.zoom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.product-image-container:hover .zoom-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.6em;
    margin-bottom: 5px;
}

.product-info p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 5px;
}

.product-price {
    font-size: 1.6em;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--light-hover);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.add-to-cart-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Page Réservation --- */
.cart-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap; 
}

.cart-items-list {
    flex: 2;
    min-width: 300px;
}

.cart-summary-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
}

#emptyCart {
    text-align: center;
    font-size: 1.2em;
    padding: 50px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cart-item {
    display: flex;
    align-items: center;
    background-color: var(--card-background);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f4f4f4;
}

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

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h3 {
    margin: 0;
    font-size: 1.2em;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary-color);
}

.remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.5em;
    padding: 5px;
}

.btn-reservation {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.cart-summary-card input[type="text"], 
.cart-summary-card input[type="email"], 
.cart-summary-card textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

/* --- Page Contact --- */
.contact-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.contact-info-container {
    flex: 1;
    min-width: 300px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-icon {
    font-size: 2em;
    color: var(--primary-color);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-form-container input[type="text"], 
.contact-form-container input[type="email"], 
.contact-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form-container textarea {
    resize: vertical;
}

/* --- Admin Panel --- */
.admin-body {
    background: var(--background-color);
}

.admin-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--secondary-color);
    color: white;
    padding: 30px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.main-content {
    padding: 40px 5%;
}

.panel {
    background: var(--card-background);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.panel h3 {
    margin-top: 0;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

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

.btn-add {
    background: var(--primary-color);
    color: white;
    width: 100%;
    border: none;
}

.btn-save {
    background: #2ecc71;
    color: white;
    border: none;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border: none;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-item-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
}

.admin-item-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.admin-item-card .info {
    padding: 10px;
}

.admin-item-card .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 30px;
    background-color: var(--secondary-color);
    color: white;
    margin-top: 50px;
}

.footer-subtitle {
    font-size: 0.8em;
    opacity: 0.7;
}

.subtitle {
    font-size: 1.1em;
    color: #666;
    font-weight: 300;
}

.no-results {
    text-align: center;
    padding: 50px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .features {
        flex-direction: column;
    }
    
    .feature-card {
        flex-basis: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image-container {
        height: 250px;
    }
    
    .cart-content, 
    .contact-grid {
        flex-direction: column;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        height: auto;
    }
}

/* Animation pour la lightbox */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Style spécifique pour la page À Propos */
.philosophy-box {
    font-style: italic;
    color: #555;
}

.about-main-img img:hover {
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

.expo-card img:hover {
    opacity: 0.9;
}

:root { --accent: #A0522D; --dark: #1a1a1a; }
body { font-family: sans-serif; margin: 0; background: #f9f9f9; }
.container { max-width: 1100px; margin: auto; padding: 20px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.product-card { background: white; padding: 15px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-align: center; }
.product-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; cursor: pointer; }
.btn-primary { background: var(--accent); color: white; border: none; padding: 10px 20px; cursor: pointer; }

/* ========================================
   BOUTONS RÉSERVER - SOBRE & ORIGINAL
   ======================================== */

/* Bouton Réserver dans la Galerie */
.product-info .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

/* Effet de remplissage progressif */
.product-info .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.product-info .btn-primary:hover::before {
    width: 100%;
}

/* Contenu du bouton au-dessus de l'effet */
.product-info .btn-primary span {
    position: relative;
    z-index: 1;
    transition: color 0.35s ease;
}

.product-info .btn-primary:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(160, 82, 45, 0.15);
}

/* Icône minimaliste */
.product-info .btn-primary::after {
    content: '→';
    font-size: 1.2em;
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease, color 0.35s ease;
}

.product-info .btn-primary:hover::after {
    transform: translateX(4px);
    color: white;
}

.product-info .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(160, 82, 45, 0.1);
}

/* ========================================
   BOUTON PANIER NAVIGATION - MINIMALISTE
   ======================================== */

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.25s ease;
    position: relative;
}

.cart-btn:hover {
    background: var(--background-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.cart-icon {
    font-size: 1.2em;
    transition: transform 0.25s ease;
}

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

.cart-count {
    background: var(--primary-color);
    color: white;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 10px;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
    transition: transform 0.25s ease;
}

.cart-btn:hover .cart-count {
    transform: scale(1.15);
}

/* ========================================
   BOUTON CONFIRMATION RÉSERVATION
   ======================================== */

.btn-reservation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 40px;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.btn-reservation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-reservation:hover::before {
    width: 400px;
    height: 400px;
}

.btn-reservation:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(160, 82, 45, 0.25);
}

.btn-reservation:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(160, 82, 45, 0.2);
}

/* Icône check minimaliste */
.btn-reservation::after {
    content: '✓';
    font-size: 1.2em;
    font-weight: bold;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .product-info .btn-primary {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .btn-reservation {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .cart-btn {
        padding: 6px 12px;
    }
}