
/* Styles généraux */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #2a1810 0%, #4a2c1a 25%, #3d2415 50%, #4a2c1a 75%, #2a1810 100%);
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

/* Filigrane Bacchus */
body::before {
    content: '🍇';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 400px;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

body::after {
    content: '🍷 🍇 🍷 🍇 🍷 🍇 🍷 🍇 🍷';
    position: fixed;
    top: 10%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 80px;
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    position: relative;
    z-index: 1;
}

/* Headers */
header { 
    background: linear-gradient(135deg, #722f37 0%, #8b3a42 100%);
    color: white; 
    padding: 30px; 
    border-radius: 12px; 
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid #d4af37;
}

header h1 { 
    margin-bottom: 10px;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    opacity: 0.95;
    font-size: 16px;
}

/* Boutons */
.back-btn { 
    display: inline-block; 
    margin-bottom: 20px; 
    padding: 10px 20px; 
    background: linear-gradient(135deg, #722f37 0%, #8b3a42 100%);
    color: white; 
    text-decoration: none; 
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-btn:hover { 
    background: linear-gradient(135deg, #591e24 0%, #6b2a32 100%);
    transform: translateY(-2px);
}

button, .btn-add { 
    background: linear-gradient(135deg, #722f37 0%, #8b3a42 100%);
    color: white; 
    padding: 12px 24px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover, .btn-add:hover { 
    background: linear-gradient(135deg, #591e24 0%, #6b2a32 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section { 
    background: rgba(255, 255, 255, 0.98);
    padding: 20px; 
    margin-bottom: 20px; 
    border-radius: 12px; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.section:hover {
    border-color: #d4af37;
}

.section h2 { 
    color: #722f37; 
    font-size: 18px; 
    margin-bottom: 15px; 
    border-bottom: 2px solid #722f37; 
    padding-bottom: 10px; 
}

/* Formulaires */
input, select, textarea { 
    width: 100%; 
    padding: 10px; 
    border: 2px solid #ddd; 
    border-radius: 6px; 
    font-family: inherit;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus { 
    outline: none;
    border-color: #722f37;
    box-shadow: 0 0 8px rgba(114, 47, 55, 0.3);
}

.form-group { 
    margin-bottom: 20px; 
}

label { 
    display: block; 
    margin-bottom: 8px; 
    color: #333; 
    font-weight: bold; 
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

/* Cartes d'informations */
.info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
}

.info-item { 
    padding: 10px; 
    background: #f9f9f9; 
    border-radius: 6px;
    border-left: 4px solid #722f37;
}

.info-label { 
    color: #666; 
    font-size: 12px; 
    text-transform: uppercase; 
}

.info-value { 
    color: #333; 
    font-size: 16px; 
    font-weight: bold; 
    margin-top: 5px; 
}

/* Éléments d'entrée */
.entry-item { 
    background: #f9f9f9; 
    padding: 15px; 
    margin-bottom: 10px; 
    border-radius: 6px;
    border-left: 4px solid #722f37;
}

.remove-btn { 
    background: #f44336; 
    padding: 8px 12px; 
    font-size: 12px; 
    margin-top: 10px;
}

.remove-btn:hover { 
    background: #da190b;
}

.add-btn { 
    background: #4CAF50; 
    padding: 8px 16px; 
    font-size: 14px;
    margin-top: 10px;
}

.add-btn:hover { 
    background: #45a049;
}

/* Aperçu photo */
.photo-preview { 
    margin-top: 10px; 
    max-width: 200px; 
}

.photo-preview img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 6px; 
    border: 2px solid #d4af37;
}

/* Message vide */
.no-results { 
    text-align: center; 
    margin-top: 60px; 
    font-size: 18px; 
    color: #d4af37;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.no-results a { 
    color: #722f37; 
    text-decoration: none;
    font-weight: bold;
}

.no-results a:hover {
    text-decoration: underline;
}
