/* =========================================
   1. CONFIGURATION & VARIABLES (Palette Terre & Épices)
   ========================================= */
:root {
    /* Palette de couleurs */
    --color-cream: #E8D1A7;      /* Fond principal standard */
    --color-cream-light: #F6F5E8; /* Fond page catalogue (Papier) */
    --color-caramel: #84592B;    /* Accents et survols */
    --color-wine: #743014;       /* Boutons et Titres principaux */
    --color-olive: #9D9167;      /* Secondaire et déco */
    --color-cocoa: #442D1C;      /* Textes sombres et Footer */
    
    /* Variables de style */
    --glass-bg: rgba(232, 209, 167, 0.8);
    --glass-card: rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 10px 30px rgba(68, 45, 28, 0.15);
    --radius: 12px;
    --radius-l: 30px;
    --radius-round: 50px;
}

/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* =========================================
   2. RESET & BASES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--color-cream);
    color: var(--color-cocoa);
    line-height: 1.6;
    overflow-x: hidden;
    /* Motif de fond subtil (par défaut) */
    background-image: radial-gradient(var(--color-olive) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

/* Fond uni pour le catalogue style Hikone */
body.catalogue-page {
    background-color: #Fdfcf8; /* Blanc cassé très pur */
    background-image: none;
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   3. NAVIGATION (Commune)
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(232, 209, 167, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-olive);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.8rem;
    color: var(--color-wine);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-cocoa);
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-wine);
    background-color: rgba(132, 89, 43, 0.1);
}

.btn-login {
    border: 2px solid var(--color-cocoa);
    padding: 8px 20px;
    border-radius: var(--radius-round);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-login:hover {
    background: var(--color-cocoa);
    color: var(--color-cream);
}

/* =========================================
   4. HEADER / HERO (Page d'accueil)
   ========================================= */
header {
    min-height: 90vh;
    background: radial-gradient(circle at top right, #e8d1a7 0%, #d4b886 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
}

header::before {
    content: ''; position: absolute; border-radius: 50%; z-index: 0;
    width: 600px; height: 600px; background: var(--color-olive);
    filter: blur(120px); opacity: 0.2; top: -100px; right: -100px;
}

header::after {
    content: ''; position: absolute; border-radius: 50%; z-index: 0;
    width: 400px; height: 400px; background: var(--color-wine);
    filter: blur(100px); opacity: 0.15; bottom: 50px; left: -100px;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    animation: fadeIn 1.5s ease;
}

header h1 {
    font-size: 3.5rem;
    color: var(--color-wine);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-caramel);
    margin-bottom: 40px;
    font-style: italic;
}

/* =========================================
   5. BARRE DE RECHERCHE (Accueil)
   ========================================= */
.booking-bar {
    background: var(--glass-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap;
    margin: 0 auto;
}

.input-group {
    flex: 1;
    position: relative;
    padding: 0 20px;
    border-right: 1px solid rgba(68, 45, 28, 0.1);
    text-align: left;
}
.input-group:last-of-type { border-right: none; }

.input-group label {
    display: block; font-size: 0.75rem; font-weight: bold;
    color: var(--color-wine); margin-bottom: 5px; text-transform: uppercase;
}

.input-group input, .input-group select {
    width: 100%; background: transparent; border: none;
    font-family: 'Lato', sans-serif; font-size: 1rem;
    color: var(--color-cocoa); font-weight: bold; cursor: pointer; outline: none;
}

.search-btn {
    background-color: var(--color-wine); color: #fff; border: none;
    width: 60px; height: 60px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(116, 48, 20, 0.4);
}
.search-btn:hover { background-color: var(--color-caramel); transform: scale(1.1); }

/* =========================================
   6. SECTIONS D'ACCUEIL (Cartes & Info)
   ========================================= */
.featured-section {
    padding: 80px 10%;
    background: linear-gradient(to bottom, white 0%, var(--color-cream) 100%);
}

.section-header {
    display: flex; justify-content: space-between; align-items: end;
    margin-bottom: 50px; border-bottom: 2px solid var(--color-olive);
    padding-bottom: 15px;
}
.section-header h2 { font-size: 2.5rem; color: var(--color-cocoa); }

.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: white; border-radius: var(--radius); overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-soft); }

.card-image {
    height: 300px; background-color: var(--color-olive);
    background-size: cover; background-position: center; position: relative;
}

.card-badge {
    position: absolute; top: 15px; left: 15px;
    background: rgba(255, 255, 255, 0.95); padding: 5px 15px;
    border-radius: var(--radius-round); font-size: 0.8rem; font-weight: bold;
    color: var(--color-wine); box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-content { padding: 25px; text-align: center; }
.card h3 { color: var(--color-cocoa); font-size: 1.5rem; margin-bottom: 10px; }
.card-price { font-size: 1.1rem; color: var(--color-caramel); font-weight: bold; display: block; margin-bottom: 15px; }

.card-meta {
    display: flex; justify-content: center; gap: 15px;
    font-size: 0.9rem; color: var(--color-wine); opacity: 0.8; margin-bottom: 20px;
}

.btn-card {
    display: block; width: 100%; padding: 12px; text-align: center;
    background: var(--color-cocoa); color: var(--color-cream);
    border-radius: var(--radius); font-weight: bold; transition: background 0.3s;
}
.btn-card:hover { background: var(--color-wine); }

.info-section {
    background: var(--glass-card); backdrop-filter: blur(10px);
    margin: 60px auto; max-width: 1000px; padding: 50px;
    border-radius: var(--radius-l); text-align: center;
    border: 2px solid white; box-shadow: var(--shadow-soft);
}
.info-section h2 { color: var(--color-wine); margin-bottom: 20px; font-size: 2.2rem; }
.features-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 40px; }

.feature-item {
    flex: 1; min-width: 250px; background: rgba(255, 255, 255, 0.5);
    padding: 25px; border-radius: 15px; transition: transform 0.3s;
}
.feature-item:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.9); }
.feature-item i { font-size: 2.5rem; color: var(--color-caramel); margin-bottom: 15px; display: block; }

/* =========================================
   7. PAGE CATALOGUE (STYLE "HIKONE" - GRILLE ÉPURÉE)
   ========================================= */

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

/* En-tête de catégorie */
.cat-title-row {
    padding: 60px 0 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(68, 45, 28, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-title-row h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--color-cocoa);
    font-weight: 400;
}

.cat-title-row span {
    font-family: 'Lato', sans-serif;
    color: var(--color-olive);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* La Grille */
.minimal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

/* Carte Produit Minimaliste */
.minimal-card {
    display: block; /* Pour que tout soit cliquable si besoin */
    transition: transform 0.3s ease;
}

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

/* Boîte Image Carrée */
.img-box {
    background-color: rgba(255, 255, 255, 0.5); /* Fond très léger */
    aspect-ratio: 1 / 1; /* Carré parfait */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    transition: background-color 0.3s;
}

.minimal-card:hover .img-box {
    background-color: rgba(255, 255, 255, 0.9);
}

.img-box img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

.minimal-card:hover .img-box img {
    transform: scale(1.1) rotate(2deg);
}

/* Infos Texte */
.card-info {
    text-align: left;
}

.prod-title {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-cocoa);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    display: block;
}

.prod-desc {
    font-size: 0.85rem;
    color: var(--color-olive);
    margin-bottom: 8px;
    display: block;
}

.prod-price {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-wine);
}

/* Bouton discret "Ajouter" */
.btn-grid-action {
    float: right;
    font-size: 0.8rem;
    text-decoration: underline;
    color: var(--color-cocoa);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.minimal-card:hover .btn-grid-action {
    opacity: 1;
}

/* =========================================
   8. PAGE RÉSERVATION (STYLE MAYA / DASHBOARD)
   ========================================= */
.booking-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px; /* Coins très arrondis */
    box-shadow: 0 20px 60px rgba(68, 45, 28, 0.15);
    padding: 40px;
    border: 1px solid white;
    backdrop-filter: blur(20px);
}

.booking-header { text-align: center; margin-bottom: 40px; }
.booking-header h2 { font-size: 2rem; color: var(--color-cocoa); margin-bottom: 10px; }
.booking-header p { color: var(--color-olive); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }

/* Grille Principale */
.booking-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
}
.booking-left { display: flex; flex-direction: column; gap: 25px; }
.booking-right { display: flex; flex-direction: column; }

/* Inputs Modernes */
.input-modern-group label, .section-label {
    display: block; font-family: 'Playfair Display', serif; font-weight: bold;
    color: var(--color-wine); margin-bottom: 10px; font-size: 1.1rem;
}
.input-modern-group select, .input-modern-group input {
    width: 100%; padding: 15px; border: 1px solid #ddd;
    border-radius: 12px; font-size: 1rem; background: #FFFCF5; transition: all 0.3s;
}
.input-modern-group select:focus, .input-modern-group input:focus {
    border-color: var(--color-olive); background: white;
    box-shadow: 0 5px 15px rgba(157, 145, 103, 0.2); outline: none;
}

/* Infos client (2 colonnes) */
.client-info-box .two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.two-cols input {
    width: 100%; padding: 12px; border: 1px solid #ddd;
    border-radius: 12px; background: #FFFCF5;
}

/* Grille Horaires (Pillules) */
.time-slots-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px;
}
.time-slot {
    background: white; border: 1px solid #ddd; padding: 12px; text-align: center;
    border-radius: 50px; cursor: pointer; font-weight: bold; color: var(--color-cocoa);
    transition: all 0.2s;
}
.time-slot:hover { border-color: var(--color-olive); color: var(--color-olive); }
.time-slot.active {
    background-color: var(--color-olive); color: white;
    border-color: var(--color-olive); box-shadow: 0 5px 15px rgba(157, 145, 103, 0.4);
}

/* Carte Résumé */
.summary-card {
    background-color: var(--color-olive); color: white; padding: 25px;
    border-radius: 20px; margin-top: auto;
    box-shadow: 0 10px 30px rgba(157, 145, 103, 0.3);
}
.summary-card h3 {
    font-family: 'Playfair Display', serif; margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 10px;
}
.summary-row {
    display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; opacity: 0.9;
}
.total-price {
    margin-top: 15px; padding-top: 15px; border-top: 1px dashed rgba(255,255,255,0.3);
    font-size: 1.2rem; font-weight: bold; text-align: right;
}

/* Bouton Final */
.book-now-btn {
    margin-top: 20px; width: 100%; padding: 18px;
    background-color: var(--color-wine); color: white; border: none;
    border-radius: 50px; font-size: 1.1rem; font-weight: bold;
    cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
}
.book-now-btn:hover {
    background-color: var(--color-caramel); transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(116, 48, 20, 0.3);
}

/* Messages Succès/Erreur */
.reservation-success, .reservation-error {
    padding: 30px; border-radius: var(--radius); text-align: center;
    margin: 30px auto; max-width: 800px; backdrop-filter: blur(10px);
}
.reservation-success {
    background: rgba(157, 145, 103, 0.15); border: 2px solid var(--color-olive); color: var(--color-cocoa);
}
.reservation-error {
    background: rgba(116, 48, 20, 0.1); border: 2px solid var(--color-wine); color: var(--color-wine);
}
.return-btn {
    display: inline-block; margin-top: 15px; padding: 10px 25px;
    background: var(--color-olive); color: white; border-radius: 30px;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: var(--color-cocoa); color: var(--color-cream);
    text-align: center; padding: 40px 0; margin-top: auto;
    border-top: 5px solid var(--color-caramel);
}
footer p { opacity: 0.9; }

/* =========================================
   10. RESPONSIVE / ANIMATIONS
   ========================================= */
@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .booking-bar { flex-direction: column; border-radius: 20px; padding: 20px; }
    .input-group { border-right: none; border-bottom: 1px solid rgba(68, 45, 28, 0.1); padding-bottom: 15px; margin-bottom: 10px; }
    .search-btn { width: 100%; border-radius: 10px; }
    nav { flex-direction: column; gap: 15px; }
    .info-section { margin: 40px 20px; padding: 30px; }
    
    /* Responsive Formulaire Réservation */
    .booking-grid { grid-template-columns: 1fr; }
    .booking-wrapper { padding: 20px; margin: 20px; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}