/* =================================
   Il Fornello di Cata - Stylesheet
   Modern Italian Pizza Website
   Dark/Gold Theme, Responsive, PWA
================================= */

/* 1. CSS Custom Properties (Theming) */
:root {
    --primary-red: #8B0000;
    --cream: #FDF6EC;
    --charcoal: #2C2C2C;
    --gold: rgb(201, 154, 91);
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --dark-even: #1a1a1a;
    --white-cream: #FDF6EC;
    --shadow-light: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --glass-bg: rgba(253, 246, 236, 0.1);
    --glass-border: rgba(253, 246, 236, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 20px;
    --font-heading: 'Arsenal', serif;
    --font-body: 'Arsenal', sans-serif;
    --btn-radius: 8px;
}

[data-theme="dark"] {
    --glass-bg: rgba(26, 26, 26, 0.8);
    --glass-border: rgba(240, 240, 240, 0.2);
    color-scheme: dark;
}

/* 2. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--gold);
    background: var(--dark-bg);
    transition: var(--transition);
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
}

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

/* 3. Navigation (Glassmorphism) */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.float-btn {
    display: none;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    font-size: 1.1rem;
}

nav a {
    color: var(--white-cream);
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--gold);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--white-cream);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--glass-border);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white-cream);
    transition: 0.3s;
}

/* 4. Hero Section */
#hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-cream);
    position: relative;
    overflow: hidden;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 5. Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 48px; /* Touch target */
}

.btn-primary {
    background: var(--gold);
    color: #2C2C2C;
}

.btn-primary:hover {
    background: #2C2C2C;
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white-cream);
    border: 2px solid var(--white-cream);
}

.btn-secondary:hover {
    background: var(--white-cream);
    color: #2C2C2C;
}

/* 6. Sections */
section {
    padding: 100px 0;
}

section .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

section .content-right {
    display: flex;          
    flex-direction: column;
    align-items: center;    
    text-align: center; 
    gap: 40px;
}

section:nth-child(even) {
    background: var(--dark-even);
}

.italian-pizza {
    display: flex;
    flex-direction: row-reverse;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--gold);
    margin-bottom: 4rem;
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 2rem);
    color: rgb(201, 154, 91);
    margin-bottom: 4rem;
    margin-top: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
}

/* 7. About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

/* 8. Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 2rem;
    justify-content: center;
    justify-items: center;
    width: 100%;
    padding: 20px;
}

.pizza-card {
    background: var(--dark-card);
    color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    max-width: 350px;
    width: 100%;
}

.pizza-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pizza-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    width: 100%;
}

.pizza-image-src {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    padding: 15px;
}

.pizza-info {
    padding: 2rem;
}

.pizza-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.pizza-desc {
    color: #ddd;
    margin-bottom: 1.5rem;
}

.pizza-desc-supplement {
    color: #ddd;
    margin-bottom: 0.5rem;
}

.pizza-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.pizza-card.sold-out {
    opacity: 0.7;
    filter: grayscale(0.8);
}

.badge {
    background: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 10px;
}

/* 9. Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    height: 250px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item:nth-child(1) { background: linear-gradient(45deg, #FF6B6B, #FFD93D); }
.gallery-item:nth-child(2) { background: linear-gradient(45deg, #4ECDC4, #44A08D); }
.gallery-item:nth-child(3) { background: linear-gradient(45deg, var(--primary-red), #C9A84C); }
.gallery-item:nth-child(4) { background: linear-gradient(45deg, #FECA57, #FF9FF3); }
.gallery-item:nth-child(5) { background: linear-gradient(45deg, #A8E6CF, #88D8A3); }
.gallery-item:nth-child(6) { background: linear-gradient(45deg, #FF7675, #FD79A8); }

.instagram-btn {
    display: inline-block;
    background: linear-gradient(45deg, #E4405F, #F77737);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    margin: 0 auto;
    transition: var(--transition);
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(228, 64, 95, 0.4);
}

/* 10. Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 1.5rem;
}

.contact-card {
    background: var(--dark-card);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s;
}

.contact-map {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

.contact-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.contact-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: #ddd;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* 11. Footer */
footer {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-even) 100%);
    color: var(--white-cream);
    text-align: center;
    padding: 3rem 0;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--white-cream);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--gold);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 154, 91, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(201, 154, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 154, 91, 0); }
}

/* 13. Scroll Effects */
nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

nav.scrolled::after {
    opacity: 1;
}

/* 14. Loading Spinner (Utility) */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-size: 2rem;
    opacity: 1;
    transition: opacity 0.5s;
}

.logo img {
    width: 75%;
}

.menu-category {
    transition: opacity 0.3s ease-in-out;
}

/* =================================
   Login Page Styles
================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('pictures/hero-pizza.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    margin-bottom: 1rem;
}

.login-card h2 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-card p {
    color: var(--cream);
    opacity: 0.8;
}

/* Champs de formulaire modernes avec labels flottants */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group textarea {
    min-height: 100px; 
    resize: vertical;  
}

.input-group label:not(.file-label) {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(253, 246, 236, 0.5);
    pointer-events: none;
    transition: var(--transition);
}

.input-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    appearance: none; 
    cursor: pointer;
    color-scheme: dark;
}

.input-group select option {
    background-color: var(--dark-card); 
    color: white; 
    padding: 10px;
}

.input-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.input-group:has(select)::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--gold);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:focus,
.input-group textarea:not(:placeholder-shown) {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--gold);
    padding: 0 5px;
}

.checkbox-group {
    margin: 20px 0;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #fff;
    user-select: none;
    transition: color 0.3s;
}

.checkmark {
    height: 22px;
    width: 22px;
    background-color: transparent;
    border: 2px solid var(--gold); 
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: rgba(201, 154, 91, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid black; 
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.login-btn {
    width: 100%;
    margin-top: 1rem;
}

.error-msg {
    color: #ff4d4d;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.back-link {
    display: block;
    margin-top: 2rem;
    color: var(--gold);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

/* =================================
   ADMIN
================================= */

.category-row-header {
    background: rgba(201, 154, 91, 0.1) !important; 
}

.category-row-header td {
    padding: 15px 10px !important;
    border-bottom: 1px solid var(--gold) !important;
}

.cat-badge {
    background: var(--gold);
    color: black;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

#admin-table tr:not(.category-row-header):hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-header {
    height: 80px;
    background-color: var(--dark-card);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between; 
    align-items: center;     
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-logo {
    height: 50px;
    width: auto;
}

.admin-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.link-to-site {
    white-space: nowrap;
    color: var(--cream);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.link-to-site:hover {
    opacity: 1;
    color: var(--gold);
}

.btn-logout {
    padding: 8px 16px;
    font-weight: bold;
    width: auto; 
    margin-top: 0;
    font-size: 0.9rem;
    background: #2C2C2C;
    color: var(--gold);
    cursor: pointer;
    border: 1px solid var(--gold);
    border-radius: 4px;
    transform: translateY(-2px);
}

.admin-content {
    display: grid;
    grid-template-columns: 6fr 4fr; 
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-list-container {
    width: 100%;
    overflow: hidden; 
}

.table-wrapper {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px; /* Même arrondi que ton formulaire */
    overflow: hidden;    /* Important pour "couper" les coins du tableau */
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dark-card);
    table-layout: auto;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.admin-table th, 
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table th:last-child, 
.admin-table td:last-child {
    width: 1%;
    white-space: nowrap;
}
.admin-table th:first-child, 
.admin-table td:first-child {
    padding-left: 1.5rem !important;
}

.form-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    position: sticky; 
    top: 100px; 
}

.form-card h2 {
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.file-upload {
    margin-bottom: 1.5rem;
}

.file-upload label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.file-group {
    margin-bottom: 1.5rem;
}

.file-group-edit {
    margin-bottom: 1.5rem;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03); 
    border: 2px dashed var(--glass-border); 
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    color: rgba(253, 246, 236, 0.6);
}

.file-label input[type="file"] {
    display: none;
}

.file-icon {
    font-size: 1.5rem;
    filter: grayscale(1);
    transition: var(--transition);
}

.file-text {
    font-size: 0.9rem;
    text-align: center;
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    color: var(--gold);
}

.file-label:hover .file-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.file-label.has-file {
    border-style: solid;
    background: rgba(201, 154, 91, 0.1);
    border-color: var(--gold);
}

.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto; 
    padding: 20px 0;
}

.modal-content {
    margin: 2% auto;
    width: 90%;
    max-width: 500px;
    animation: slideDown 0.3s ease-out;
    background: var(--dark-card); 
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--gold);
    cursor: pointer;
}

.img-table {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.checkbox-group {
    margin: 1rem 0;
    color: var(--cream);
}

.btn-edit {
    background: var(--gold);
    color: black;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-delete {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-primary, .btn-edit, .btn-delete, .btn-logout {
    border-radius: var(--btn-radius) !important; 
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-form {
    background-color: var(--gold);
    color: black;
    padding: 12px 24px;
    font-weight: bold;
    width: 100%; 
    margin-top: 10px;
    font-size: 1rem;
    border-radius: var(--btn-radius) !important; 
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.status-cell {
    text-align: center;
    width: 80px;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-dot.status-on {
    background-color: #2ecc71;
}

.status-dot.status-off {
    background-color: #e74c3c;
}

.status-dot.online::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    animation: statusPulse 2s infinite;
    opacity: 0.4;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2.5); opacity: 0; }
}

.cookie-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: #1a1a1a; /* Fond sombre */
    border: 1px solid #C99A5B; /* Bordure dorée */
    padding: 20px;
    border-radius: 12px;
    z-index: 99999; /* Priorité maximale */
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    display: none; /* Masqué par défaut, géré par JS */
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.cookie-content p {
    color: #f4f1ea;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.btn-cookie-accept {
    background: #C99A5B;
    color: #1a1a1a;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie-refuse {
    background: transparent;
    color: #f4f1ea;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie-accept:hover { background: #b0854a; }
.btn-cookie-refuse:hover { background: rgba(255,255,255,0.1); }

/* 12. Responsive Design */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(44, 44, 44, 0.98);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .div_concours {
        text-align: center;
    }
    
    section .content {
        display: block;
    }

    .picture_concours {
        width: 50%;
    }

    .float-btn {
        display: flex;
        position: fixed;
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 25px;
        background-color: var(--gold);
        color: white;
        border-radius: 50%;
        text-align: center;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
        z-index: 999;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        animation: pulse 2s infinite;
    }

    .admin-content {
        display: flex !important;
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 2rem !important;
    }

    /* 2. LA SOLUTION : On cible les enfants DIRECTS pour l'ordre */
    .admin-form-container {
        order: -1 !important; /* Force le formulaire à passer en 1er */
        width: 100% !important;
    }

   .admin-list-container {
        order: 1 !important; 
        width: 100% !important;
    }

    .admin-table th:nth-child(1), .admin-table td:nth-child(1),
    .admin-table th:nth-child(4), .admin-table td:nth-child(4) {
        display: none;
    }

    /* 3. On s'assure que la ligne de catégorie reste bien visible et s'étale */
    .admin-table tr.category-row-header td {
        display: table-cell !important;
        width: 100% !important;
    }

    .admin-table th, 
    .admin-table td {
        padding: 1rem;
        font-size: 0.85rem; /* Texte un peu plus petit */
    }

    .admin-table td:nth-child(3) {
        font-weight: bold;
        color: var(--gold);
    }

    .admin-table {
        min-width: 100% !important; 
    }

    .table-wrapper {
        overflow-x: auto;
        border-radius: 12px;
        margin: 0; /* On gagne un peu de place sur les bords */
    }

    /* 3. On annule le côté "collant" du formulaire sur mobile */
    .form-card {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.5rem !important;
    }

    .admin-header {
        padding: 0 1rem !important; /* Réduit la marge interne */
        height: 70px !important; /* Un peu moins haut sur mobile */
    }

    .admin-logo {
        height: 40px !important; /* Logo plus petit */
    }

    /* ON CACHE LE TEXTE POUR GAGNER DE LA PLACE */
    .admin-title {
        display: none !important; 
    }

    .header-right {
        gap: 1rem !important; /* Réduit l'espace entre le lien et le bouton */
    }

    .link-to-site {
        font-size: 0.8rem !important;
    }
    
    /* On masque le texte du lien "Voir le site" pour ne garder que l'icône si besoin 
       ou on réduit juste la taille */
    .link-to-site span {
        display: none; 
    }

    .cookie-content { flex-direction: row; text-align: left; }

    /* 4. On permet au tableau de scroller horizontalement sans casser l'écran */
    /*.table-wrapper {
        width: 100% !important;
        overflow-x: auto !important; 
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        padding-bottom: 10px; 
        border-radius: 12px !important;
    }
    /* 5. Ajustements mineurs de taille pour gagner de la place */
    /*.admin-header {
        padding: 1rem !important;
    }*/

    /*.admin-table {
        width: 100% !important;
        min-width: 700px !important; 
        white-space: nowrap !important;
    }*/
    
    /*.admin-title {
        display: none; 
    }*/

    /*.modal-content {
        width: 95% !important;
        margin: 5% auto !important;
        padding: 1.5rem !important;
    }*/

}