/* =============================================
   GSB-SHOP – Feuille de style principale
   ============================================= */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ---- Header ---- */
header {
    background-color: rgba(255,255,255,.95);
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

header nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
    position: relative;
}

header nav a:hover { color: #667eea; }

header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width .3s;
}

header nav a:hover::after { width: 100%; }

/* ---- Main ---- */
main {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
    padding: 50px;
    margin: 40px auto;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p { font-size: 1.1em; color: #666; margin-bottom: 25px; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all .3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102,126,234,.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,.6);
}

/* ---- Forms ---- */
form { max-width: 450px; margin: 30px auto; }

input, select, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color .3s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }

/* ---- Cards ---- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    transition: transform .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

.card h3 { color: #667eea; margin-bottom: 15px; font-size: 1.5em; }

/* ---- Badge niveau ---- */
.badge-niveau {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .85em;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(102,126,234,.15), rgba(118,75,162,.15));
    color: #667eea;
}

/* ---- Lists ---- */
ul { list-style: none; margin-top: 20px; padding: 0; }

ul li {
    padding: 15px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(102,126,234,.1), rgba(118,75,162,.1));
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform .2s;
}

ul li:hover { transform: translateX(5px); }

/* ---- Footer ---- */
footer {
    background: rgba(255,255,255,.95);
    color: #666;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    box-shadow: 0 -2px 10px rgba(0,0,0,.1);
}

/* ---- Alerts ---- */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* ---- Dashboard ---- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(102,126,234,.3);
}

.stat-card h3 { font-size: 2em; margin-bottom: 10px; color: white; }
.stat-card p  { color: rgba(255,255,255,.9); margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    header nav { flex-direction: column; gap: 15px; }
    main { padding: 30px 20px; }
    h1   { font-size: 2em; }
    .cards { grid-template-columns: 1fr; }
}
