/* style.css - V5 White Edition & Animation */
:root {
    --black: #111111;
    --white: #ffffff;
    --gray: #f4f4f4;
    --accent: #000000;
}

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    background-color: var(--white);
    color: var(--black);
    margin: 0; line-height: 1.6;
    /* Animation de fond subtile */
    background-image: radial-gradient(#ccc 1px, transparent 1px);
    background-size: 30px 30px;
    animation: bgMove 60s linear infinite;
}

@keyframes bgMove {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

/* --- STRUCTURE --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.page-title { text-align: center; margin: 60px 0 40px; text-transform: uppercase; font-size: 2.5rem; letter-spacing: -1px; }

/* --- HEADER BLANC --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0; position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid #eee;
    backdrop-filter: blur(5px);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

/* ASTUCE LOGO : On inverse les couleurs du logo blanc pour qu'il devienne noir */
.logo img { height: 45px; display: block; cursor: pointer; filter: invert(1); } 

nav ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
nav a {
    color: var(--black); text-decoration: none; font-weight: 600; 
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
    padding-bottom: 5px; border-bottom: 2px solid transparent; transition: 0.3s;
}
nav a:hover, nav a.active { border-bottom: 2px solid var(--black); }

/* --- HERO --- */
.hero {
    text-align: center; padding: 100px 20px; background: white;
    border-bottom: 1px solid #eee; margin-bottom: 40px;
}
.hero h1 { font-size: 3.5rem; font-weight: 900; margin: 0; text-transform: uppercase; line-height: 1.1; }

/* --- CARDS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.card {
    border: 1px solid #ddd; background: white; transition: 0.3s;
    display: flex; flex-direction: column; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: black; }

.card-img { height: 220px; background: #f9f9f9; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-price { font-size: 1.5rem; font-weight: 800; margin-top: 15px; display: block; }

/* --- BOUTONS --- */
.btn {
    background: var(--black); color: white; padding: 14px 28px; text-decoration: none;
    display: inline-block; font-weight: bold; margin-top: 10px; border: none; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem;
}
.btn:hover { background: #333; }
.btn-outline { background: transparent; border: 2px solid var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: white; }
.btn-danger { background: #d32f2f; border: none; }

/* --- FORMULAIRES (VR) --- */
input, textarea, select { 
    width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ccc; 
    box-sizing: border-box; background: #fdfdfd; font-family: inherit;
}
input:focus { border-color: black; outline: none; background: white; }

/* --- ADMIN --- */
#admin-panel { background: #f9f9f9; padding: 30px 0; border-bottom: 3px solid red; }
.admin-box { background: white; padding: 25px; margin-bottom: 25px; border: 1px solid #ddd; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.admin-box h3 { margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 15px; }

/* --- FOOTER BLANC --- */
footer { 
    background: var(--white); color: var(--black); padding: 80px 0; 
    font-size: 0.9rem; margin-top: 80px; border-top: 1px solid #eee; 
}
footer h3 { font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
footer p { color: #555; }