@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
}
html, body {
  margin: 0;
  padding: 0;
 overflow-x: hidden;
 display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex-grow: 1;
  /* Optionnel, pour que le contenu ne soit pas collé au footer */
  padding-bottom: 20px;
  margin: 0 auto;
}

h1 {
    font-family: 'Audiowide', cursive;
    font-size: 35px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    margin: 60px 0 0 0;
    color:#400F10;
}
h2  {
    color:#8B0000;
    margin: 20px;
}

/* ACCUEIL - PRODUITS MISE EN AVANT */
.image-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.featured-product-link {
    position: relative;
    display: block;
    width: 250px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.featured-product-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.featured-product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    border-radius: 0 !important;
    display: block !important;
}

.featured-product-link:hover .featured-product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.featured-product-link:hover .product-overlay {
    transform: translateY(0);
}

.product-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.product-overlay p {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;
}

/* Responsive pour les produits d'accueil */
@media (max-width: 768px) {
    /* Supprime toutes les marges de html et body sur mobile */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
    }
    
    /* Supprime la marge automatique du main qui cause le problème */
    main {
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
    
    .image-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 10px;
    }
    
    .featured-product-link {
        width: 85%;
        max-width: 280px;
        height: 180px;
        margin: 0 auto;
    }
    
    /* OVERRIDE COMPLET pour les images 3 et 4 sur mobile */
    .image-3,
    .image-4 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #ffffff !important;
        border: 2px solid #e9ecef !important;
        padding: 10px !important;
    }
    
    .image-3 img,
    .image-4 img {
        width: auto !important;
        height: auto !important;
        max-width: 90% !important;
        max-height: 90% !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        margin: auto !important;
        border-radius: 5px !important;
    }
    
    /* Amélioration des overlays sur mobile pour ces images */
    .image-3 .product-overlay,
    .image-4 .product-overlay {
        background: linear-gradient(to top, rgba(139, 0, 0, 0.9), transparent);
        padding: 12px;
    }
}

/* Media query pour tablettes (769px à 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .image-row {
        gap: 15px;
        justify-content: center;
    }
    
    .featured-product-link {
        width: 220px;
        height: 180px;
    }
    
    /* Optimisation pour Imagecollée3 et Imagecollée4 sur tablette */
    .image-3 .featured-product-image,
    .image-4 .featured-product-image {
        object-fit: contain !important;
        object-position: center !important;
        padding: 5px !important;
        background-color: #f8f9fa !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }
}

        /* NAVBAR - FORCER LA RÉDUCTION DE HAUTEUR */
nav {
    background-color: #8B0000;
    padding: 10px !important; 
    justify-content: center; 
    align-items: center;
    min-height: 60px; 
    height: auto !important; 
    position: relative;
}

/* Menu burger - caché par défaut */
.burger-menu {
    display: none;
    position: absolute;
    right: 20px;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    top: 50%;
    transform: translateY(-50%);
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animation du burger */
.burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Menu mobile overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(139, 0, 0, 0.95);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 10px;
    transition: background-color 0.3s;
    display: block;
}

.mobile-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu .cart-count {
    color: white;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
}

/* Responsive pour le menu */
@media (max-width: 1024px) {
    .burger-menu {
        display: flex;
    }
    
    /* Cache complètement la navbar desktop sur mobile/tablette */
    nav > ul {
        display: none !important;
    }
    
    /* S'assure que seul le menu mobile est visible */
    nav ul:not(.mobile-menu ul) {
        display: none !important;
    }
    
    .navbar-brand {
        position: static;
        margin: 0;
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }
    
    /* S'assure que la nav est en flexbox avec une hauteur suffisante */
    nav {
        justify-content: space-between;
        padding: 15px 20px !important;
        min-height: 60px !important; /* Augmenté : 50px -> 60px */
        height: auto !important;
        align-items: center;
        display: flex;
    }
    
    /* Place le menu burger à droite */
    .burger-menu {
        position: relative !important;
        right: auto !important;
        transform: none !important;
        top: auto !important;
        flex-shrink: 0;
        margin-left: auto;
        order: 2;
    }
    
    /* Améliore la taille du logo sur mobile */
    .navbar-brand .logo {
        height: 50px !important; /* Encore plus grand : 40px -> 50px */
        width: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}

/* Suppression des styles navbar-small car plus nécessaires */

.navbar-brand {
    position: absolute;
    left: 10px;
}

/* Style spécifique pour mobile */
@media (max-width: 1024px) {
    .navbar-brand {
        position: relative !important;
        left: auto !important;
        order: 1;
        margin-right: auto;
    }
}

.navbar-brand .logo {
    height: 45px !important; /* Encore plus grand : 35px -> 45px */
    width: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center;
    align-items: center;
    line-height: 1 !important; /* réduit l'interlignage */
}

nav ul li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px !important; /* FORCE la réduction : 8px 16px -> 4px 8px */
    border-radius: 5px;
    transition: background-color 0.3s;
    line-height: 1 !important; /* réduit l'interlignage */
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav a.active {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Compteur panier */
.cart-count {
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 5px;
}

.cart-count-zero {
    color: #999;
    font-weight: normal;
}

        /* FOOTER */
footer {
    background-color:#8B0000 ;
    min-height: 80px;
    display: flex; 
    justify-content: center; 
    align-items: center;   
    margin-top: 100px;
}
footer p {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

        /* IMAGES */

img {
    display: flex;
    justify-content:center,
    
}

/* Images spécifiques pour la page d'accueil - NE PAS affecter les produits mis en avant */
.image-row img:not(.featured-product-image) {
    width: 22%; 
    height: auto;
    border-radius: 8px; 
}

/* Images des produits mis en avant - priorité absolue */
.featured-product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    border-radius: 0 !important; /* le border-radius est géré par le parent */
}

/* DÉSACTIVATION des règles générales pour les images 3 et 4 sur mobile */
@media (max-width: 768px) {
    .image-3 .featured-product-image,
    .image-4 .featured-product-image {
        all: unset !important;
        width: auto !important;
        height: auto !important;
        max-width: 90% !important;
        max-height: 90% !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        margin: auto !important;
        border-radius: 5px !important;
        transition: none !important;
    }
}
.image-icone {
    width: 100%;
    margin: 40px;
    max-width: 1600px;
}


.image-icone img {
    display: block;      /* Pour enlever l'espace blanc sous les images */
    width: 100%;         /* Image prend toute la largeur disponible */
    height: auto;        /* Garde la proportion de l'image */
    margin: 20px;
    border-radius: 8px;
}
.image-para-container {
    position: relative;
    width: 100%;
    display: inline-block;
}

.texte-sur-image {
    position: absolute;
    top: 50%; /* centre verticalement */
    left: 50%; /* centre horizontalement */
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 8px #000;
    text-align: center;
    width: 90%;
    pointer-events: none; /* le texte ne bloque pas les clics sur l'image */
}
img.full-width {
    width: 100vw;       /* largeur de la fenêtre complète */
    max-width: 100vw;   /* pas de dépassement */
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* Amélioration de la qualité de rendu */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-filter: contrast(1.1) brightness(1.05);
    filter: contrast(1.1) brightness(1.05);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

            /* BUTTONS */

button {
    display: block;              /* chaque bouton sur sa propre ligne */
    margin: 40px auto;          /* centre horizontalement avec un espace vertical */
    background-color: #8B0000;   
    color: #fff;               
    border: none;
    border-radius: 50px;         
    padding: 20px 32px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover {
    background-color: white;
    color:#8B0000;
 border: 2px solid #8B0000;
}
.filtrage_buttons  {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;   
    flex-wrap: wrap;
}
 
.filtrage_buttons button {
    display: inline-block;  /* Pour qu'ils soient côte à côte */
    margin: 0;              /* Supprime la marge globale */
    padding: 6px 12px;      /* Réduit la taille */
    font-size: 0.9em;
    border-radius: 60px;
    background-color: #8B0000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}
.filtrage_buttons button:hover {
    background-color: white;
    color: #8B0000;
    border: 2px solid #8B0000;
}

/* Styles pour les filtres */
.filters-container {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-form {
    margin-top: 20px;
}

.filtrage_buttons select {
    padding: 12px 20px;
    border: 2px solid #8B0000;
    border-radius: 50px;
    background-color: #8B0000;
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    margin: 5px;
}

.filtrage_buttons select:hover {
    background-color: white;
    color: #8B0000;
    border: 2px solid #8B0000;
}

.filtrage_buttons select:focus {
    outline: none;
    background-color: white;
    color: #8B0000;
    border: 2px solid #8B0000;
}

.btn-reset {
    background-color: #6c757d;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.2s;
    margin: 5px;
    display: inline-block;
}

.btn-reset:hover {
    background-color: #5a6268;
    color: white;
}
.btn-vendre {
    background-color: #8B0000;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    border-radius: 50px;
}
.btn-vendre:hover {
    background-color: #5c0000;
}
/* BARRE DE RECHERCHE */

.search-form {
    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: center;     /* centre verticalement */
    gap: 10px;
    width: 100%;
    max-width: 600px;       /* largeur maximale */
    margin: 0 auto;         /* centrage automatique */
    padding: 20px 0;        /* espacement vertical */
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-container span {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B0000;
    z-index: 2;
}

.search-input {
    padding: 10px 20px 10px 40px;
    border-radius: 20px;
    border: 2px solid #8B0000;
    width: 300px; 
}

.search-button {
    cursor: pointer;
    padding: 20px 32px;
    background-color: #8B0000;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1em;
    transition: background 0.2s;
}

.search-button:hover {
    background-color: white;
    color: #8B0000;
    border: 2px solid #8B0000;
}
.google-button {
  background-color: white;
  color: #8B0000;
  padding: 10px 20px;
  border: 2px solid #8B0000;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 25px;
}

.google-button:hover {
  background-color: #8B0000;
  color: white;
}
.inscription {
font-size: 12px;
  color: #666;
  text-align: center;
  margin: 5px 0;
  cursor: pointer;
}

             /* GALERIE PHOTOS */


.galerie.photos {
    display: flex;
    flex-wrap: wrap;          /* permet le retour à la ligne */
    justify-content: center;  
    gap: 20px;       
    padding: 20px;
}

.galerie.photos .photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
.photo-item {
    text-align: center;
    width: calc(33.333% - 20px);
    max-width: 250px;
}

.photo-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #333;
}
.deroulement {
    margin: 30px;
}
.carre-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

        /* CARRES ROUGES */
.carre {
    width: 200px;
    height: 200px;
    background-color: #8B0000;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;  
    word-break: break-word;
    white-space: normal;
    text-align: center;
    font-weight: normal;
}
.titre {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}
/* FORMULAIRE DE VENTE */ 

.form-vente {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
}

.form-vente .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-vente label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #8B0000;
}

.form-vente input {
    padding: 10px;
    border: 2px solid red;
    border-radius: 5px;
    font-size: 16px;
}

.form-vente select {
    padding: 10px;
    border: 2px solid red;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
}

.form-vente textarea {
    padding: 10px;
    border: 2px solid red;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
}

.form-vente label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #8B0000;
    display: block;
}

.form-vente button {
    background-color: #8B0000;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    border-radius: 40px;
}

.form-vente button:hover {
    background-color: white;
    color: #8B0000;
    border: 2px solid #8B0000;
}

            /* FORMULAIURES DE CONNEXION */
             

.conex-form {
    display: flex;
    flex-direction: column;
}
.conex-form input{
    padding: 10px;
    border: 2px solid red;
    border-radius: 5px;
    font-size: 16px;
    border-radius: 15px;
    margin-top: 40px;
}
.mot-de-passe-oublie {
    text-align: center;
    cursor: pointer;   /* si tu veux montrer que c’est cliquable */
}
.forgot-password {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin: 5px 0;
  cursor: pointer;
  text-decoration: underline;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: 15px;
}

.separator hr {
  flex: 1;
  border: none;
  height: 1px;
  background-color: #ccc;
}

.separator span {
  padding: 0 10px;
  color: #888;
  font-size: 14px;
}
.creation-form {
  display: flex;
  flex-direction: column;
  width: 500px; /* ou une autre largeur */
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.creation-form input { 
    padding: 10px;
    border: 2px solid red;
    border-radius: 5px;
    font-size: 16px;
    border-radius: 15px;
    margin-top: 20px;
}
.checkbox-label {
  font-size: 0.85rem; /* taille de police réduite */
  display: block;     /* pour gérer la marge plus facilement */
  margin-top: 15px;   /* marge au-dessus */
  margin-bottom: 15px; /* marge en dessous */
  cursor: pointer;
  line-height: 1.3;   /* un peu d'espace entre les lignes si le texte est long */
  text-align: center; /* centre le texte sous la checkbox */
}

.checkbox-label input[type="checkbox"] {
  transform: scale(0.9); /* optionnel : réduit légèrement la taille de la case */
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}
.BDL {
    margin-top: 100px;
}
.button-group {
  display: flex;
  gap: 10px; /* espace entre les boutons */
}
/* -------- Page de gestion des produits -------- */

h1 {
    font-family: 'Audiowide', cursive;
    font-size: 35px;
    margin: 40px 0 20px 0;
    text-align: center;
    color: #400F10;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background-color: #8B0000;
    color: white;
    margin-bottom: 20px;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: white;
    color: #8B0000;
    border: 2px solid #8B0000;
}

.btn-warning {
    background-color: #FFA500;
    color: black;
}

.btn-danger {
    background-color: #B22222;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.table {
    width: 90%;
    margin: auto;
    border-collapse: collapse;
    margin-bottom: 40px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table thead {
    background-color: #8B0000;
    color: white;
}

.table th,
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.table tbody tr:hover {
    background-color: #f9f9f9;
}

.alert-success {
    width: 90%;
    margin: 20px auto;
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    text-align: center;
}

/* Messages d'alerte */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Messages d'erreur pour les champs spécifiques */
.error-message {
    display: block;
    color: #721c24;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
    gap: 5px;
}

.pagination li {
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 6px 10px;
    color: #8B0000;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination li a:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.pagination li.active span {
    background-color: #8B0000;
    color: white;
    border-color: #8B0000;
    font-weight: bold;
}

.pagination li.disabled span {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Styles spéciaux pour les flèches Previous/Next */
.pagination li:first-child a,
.pagination li:last-child a {
    font-size: 12px;
    padding: 6px 12px;
}

.pagination li:first-child a:before {
    content: "‹ ";
    font-size: 16px;
    margin-right: 3px;
}

.pagination li:last-child a:after {
    content: " ›";
    font-size: 16px;
    margin-left: 3px;
}

/* BACKOFFICE STYLES */
.backoffice-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Pagination compacte pour le backoffice */
.backoffice .pagination {
    margin: 20px 0 15px 0;
    gap: 3px;
}

.backoffice .pagination li a,
.backoffice .pagination li span {
    min-width: 28px;
    height: 28px;
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 3px;
}

.backoffice .pagination li:first-child a,
.backoffice .pagination li:last-child a {
    padding: 4px 8px;
    font-size: 11px;
}

.backoffice .pagination li:first-child a:before {
    font-size: 14px;
    margin-right: 2px;
}

.backoffice .pagination li:last-child a:after {
    font-size: 14px;
    margin-left: 2px;
}

/* Pagination ultra-compacte */
.compact-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #8B0000;
    color: white;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: #400F10;
    transform: translateY(-1px);
}

.pagination-btn-disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.pagination-info {
    background-color: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

/* Pagination ultra-minimaliste (flèches seulement) */
.minimal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 10px 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #8B0000;
    color: white;
    border-radius: 2px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background-color: #400F10;
    transform: scale(1.1);
}

.nav-btn-disabled {
    background-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.backoffice-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group.last {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #400F10;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
    box-sizing: border-box;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.error-message {
    color: #8B0000;
    margin-top: 5px;
    font-size: 14px;
}

.nav-back {
    background-color: #8B0000;
    padding: 10px;
}

.nav-back ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-back a {
    color: white;
    text-decoration: none;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}

.btn-cancel:hover {
    background-color: #5a6268;
}
a.btn-cancel {
    display: flex;
    align-items: center;
    height: 50px;

}

/* PRODUCT IMAGES */
.product-image-preview {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-image-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.no-image-placeholder {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

.image-upload-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.form-input[type="file"] {
    padding: 8px;
    background-color: #f9f9f9;
}

/* STYLES POUR LA PAGE ACHETER DYNAMIQUE */
.no-products {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.no-products p {
    margin: 10px 0;
}

.no-products a {
    color: #8B0000;
    text-decoration: underline;
}

.category {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Pagination sur la page acheter - style intégré */
.pagination-wrapper .minimal-pagination,
.pagination-wrapper .compact-pagination {
    margin: 0; /* Reset margin car pagination-wrapper gère déjà */
}

.pagination-wrapper .nav-btn,
.pagination-wrapper .pagination-btn {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination-wrapper .nav-btn:hover,
.pagination-wrapper .pagination-btn:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Pagination spéciale pour la page acheter */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.shop-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #8B0000;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shop-nav-btn:hover {
    background-color: #400F10;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.shop-nav-disabled {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
}

.shop-nav-disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.shop-pagination-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-numbers {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background-color: #f8f9fa;
    padding: 4px 12px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

.total-items {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* FICHE PRODUIT */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 20px;
}

.btn-back {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 20px;
}

.btn-back:hover {
    background-color: #5a6268;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image-large {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-price .price {
    font-size: 2.5em;
    font-weight: bold;
    color: #8B0000;
}

.product-state, .product-category {
    display: flex;
    align-items: center;
    gap: 10px;
}

.state-label, .category-label {
    font-weight: bold;
    color: #333;
}

.state-value {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
}

.state-tres-bon { background-color: #28a745; }
.state-bon { background-color: #ffc107; color: #333 !important; }
.state-correct { background-color: #dc3545; }

.category-value {
    color: #8B0000;
    font-weight: bold;
}

.product-description h3 {
    color: #8B0000;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.product-actions .btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #8B0000;
    color: white;
}

.btn-primary:hover {
    background-color: #660000;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.product-details-extended {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.product-details-extended h3 {
    color: #8B0000;
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.detail-label {
    font-weight: bold;
    color: #333;
}

.detail-value {
    color: #8B0000;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* PANIER */
.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 20px;
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    align-items: center;
    background-color: white;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details h3 {
    margin: 0 0 5px 0;
    color: #8B0000;
}

.item-category, .item-state {
    margin: 2px 0;
    font-size: 0.9em;
    color: #666;
}

.item-quantity label {
    font-weight: bold;
    color: #333;
}

.item-price {
    text-align: right;
}

.unit-price {
    display: block;
    font-size: 0.9em;
    color: #666;
}

.total-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #8B0000;
}

.btn-remove {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-remove:hover {
    background-color: #c82333;
}

.cart-summary {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.total-section h3 {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 20px;
    text-align: center;
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.empty-cart h2 {
    color: #8B0000;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 25px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive panier */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.form-input[type="file"]:focus {
    outline: 2px solid #8B0000;
    outline-offset: 2px;
}

/* Bouton de déconnexion dans la navbar */
.navbar button[type="submit"],
.nav-logout-btn {
    background: none !important;
    border: none !important;
    color: white !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    padding: 4px 8px !important; /* réduit de moitié : 8px 16px -> 4px 8px */
    border-radius: 5px !important;
    transition: background-color 0.3s !important;
}

.navbar button[type="submit"]:hover,
.nav-logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

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

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.dashboard-card h2 {
    color: #8B0000;
    margin-bottom: 15px;
}

.dashboard-card ul {
    list-style-type: disc;
    margin-left: 20px;
}

.dashboard-card a {
    color: #8B0000;
    text-decoration: underline;
}

.dashboard-card a:hover {
    color: #5c0000;
}

/* STYLES POUR LA PAGE À PROPOS */
.apropos-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

.apropos-content h2 {
    color: #8B0000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.apropos-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.apropos-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.apropos-content li {
    margin-bottom: 8px;
}

/* Section Team centrée */
.team-section {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px auto 0 auto;
    display: block;
}

/* Sections alternées */
.section-alternated {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 50px 0;
    padding: 30px 0;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 0 0 400px;
}

.section-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Section avec image à droite */
.section-right {
    flex-direction: row;
}

/* Section avec image à gauche */
.section-left {
    flex-direction: row;
}

/* Bouton dans la section à propos */
.text-content .btn {
    margin-top: 20px;
    margin-left: auto;
    display: inline-block;
    align-self: flex-end;
}

.text-content {
    display: flex;
    flex-direction: column;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .section-alternated {
        flex-direction: column !important;
        gap: 20px;
    }
    
    .image-content {
        flex: none;
        width: 100%;
    }
    
    .section-image {
        max-width: 100%;
    }
}

/* Style spécifique pour le bouton Estimer votre jeu dans la page À propos */
.apropos-content .text-content .btn.btn-primary:hover {
    background-color: white !important;
    color: #8B0000 !important;
    border: 2px solid #8B0000 !important;
}

/* Style spécifique pour le bouton Procéder au paiement dans le panier */
.cart-summary .cart-actions .btn.btn-primary.btn-large:hover {
    background-color: white !important;
    color: #8B0000 !important;
    border: 2px solid #8B0000 !important;
}