/* Habillage de la boutique, repris de l'apparence de l'ancien site (couleurs et blocs). */
:root {
    --couleur-principale: #1266f1;
    --couleur-info: #39c0ed;
    --couleur-attention: #e69500;
    --couleur-succes: #00b74a;
    --couleur-danger: #f93154;
    --jaune: #ffe600;
}

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }

body { font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: #4f4f4f; }
button, input, select, textarea { font-family: inherit; }
.body-gradient-custom { background: #146eb4; background: linear-gradient(to left, #146eb4, #48c6ef); min-height: 100vh; }
a { color: var(--couleur-principale); }

/* En-tête */
header .logo-texte { display: inline-block; background: var(--jaune); color: #111; font-size: 1.8rem; letter-spacing: .08em; padding: .2rem .6rem; }
header .logo-texte b { background: #0b3d91; color: #fff; padding: 0 .4rem; border-radius: 4px; }
.btn-recherche { background: var(--jaune); color: #6c6c6c; border: 0; }
.select-white select { background-color: #fff; }
.barre-jaune { background: var(--jaune); }
.barre-jaune .nav-link, .barre-jaune .navbar-brand { color: #1f1f1f; }
.barre-jaune .navbar-toggler { border: 0; font-size: 1.4rem; }

/* Menus déroulants sans bibliothèque : ouverts au survol (ordinateur) ou au clic */
.nav-item.dropdown { position: static; }
@media (min-width: 768px) {
    .nav-item.dropdown:hover > .dropdown-menu { display: block; }
}
.dropdown-menu.mega-menu { left: 0; right: 0; width: 100%; margin-top: 0; border-radius: 0 0 .5rem .5rem; }
.dropdown-menu.mega-menu a { color: #333; text-decoration: none; }
.dropdown-menu.mega-menu a:hover { color: var(--couleur-principale); }
.nav-item.dropdown > .dropdown-menu:not(.mega-menu) { min-width: 14rem; }
@media (min-width: 768px) { .nav-item.dropdown:has(> #menuPages) { position: relative; } }

/* Blocs d'information (style « note ») */
.note { padding: 1rem; border-left: 5px solid #9e9e9e; background: #f5f5f5; border-radius: .25rem; }
.note-warning { border-color: #b8860b; background: #fbeed9; }
.note-info { border-color: #2c96b5; background: #dff1f7; }
.note-light { border-color: #9e9e9e; background: #f5f5f5; }
.text-warning-note { color: var(--couleur-attention); }
.text-info-note { color: #39a6c9; }

/* Boutons */
.btn-primary { background: var(--couleur-principale); border-color: var(--couleur-principale); box-shadow: 0 4px 9px -4px rgba(18,102,241,.7); }
.btn-info { background: var(--couleur-info); border-color: var(--couleur-info); color: #fff; text-transform: uppercase; font-size: .75rem; font-weight: 500; }
.btn-info:hover, .btn-info.active { background: #2c96b5; border-color: #2c96b5; color: #fff; }
.btn-danger { background: var(--couleur-danger); border-color: var(--couleur-danger); box-shadow: 0 4px 9px -4px rgba(249,49,84,.7); }
.badge-stock { display: inline-block; background: var(--couleur-succes); color: #fff; padding: .4rem .8rem; border-radius: .3rem; font-weight: 500; text-transform: uppercase; }
.badge-epuise { background: var(--couleur-danger); }

/* Fiche produit */
.fiche-prix { color: var(--couleur-principale); font-weight: 700; font-size: 1.6rem; }
.fiche-prix-barre { color: #757575; text-decoration: line-through; font-size: 1.3rem; }
.produit-img { max-width: 100%; height: auto; }
.miniature { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border: 1px solid #ddd; border-radius: .25rem; padding: .25rem; background: #fff; }
.picto-fidelite { flex: none; color: #2c96b5; }
.vignette { max-width: 70px; max-height: 70px; }
.onglets { position: sticky; top: 0; z-index: 5; background: #fff; }
.onglets .btn { border-radius: 0; }
.description-produit img { max-width: 100%; height: auto; }

/* Pied de page */
footer img { max-height: 50px; width: auto; }
footer .pied-logo { max-height: 50px; }
.pied-bleu { background: #005499; }
.pied-sombre { background: rgba(0,0,0,.2); }
.pied-bleu a { text-decoration: none; }
.pied-bleu a:hover { text-decoration: underline; }

/* Pages simples (compte, panier, commande) : mêmes repères que l'ancien style */
main label { display: block; margin-top: .8rem; font-weight: 600; }
main input:not([type=checkbox]):not([type=radio]):not([type=search]), main select, main textarea { width: 100%; padding: .5rem; box-sizing: border-box; }
main .filtres input, main .filtres select { width: auto; }
main .filtres label { margin-top: 0; font-size: .85rem; }
main button[type=submit] { margin-top: 1rem; padding: .55rem 1.2rem; background: var(--couleur-principale); color: #fff; border: 0; border-radius: .25rem; box-shadow: 0 4px 9px -4px rgba(18,102,241,.7); }
main button.btn-link { background: none; color: var(--couleur-principale); box-shadow: none; margin-top: 0; padding: 0; }
main table { width: 100%; border-collapse: collapse; }
main td, main th { padding: .45rem; border-bottom: 1px solid #e0e0e0; text-align: left; vertical-align: middle; }
.droite { text-align: right !important; }
.erreur { color: #b00020; font-size: .9rem; }
.prix { font-weight: 600; color: var(--couleur-principale); }
.barre { text-decoration: line-through; color: #777; font-weight: normal; }
.filtres { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: .8rem 0; }
.filtres button { margin-top: 0; }

/* Rangées de produits de l'accueil (équivalent du carrousel de l'ancien site) */
.carrousel-piste { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem 2.2rem; scrollbar-width: none; }
.carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-item-produit { flex: 0 0 50%; scroll-snap-align: start; }
@media (min-width: 768px) { .carrousel-item-produit { flex-basis: 25%; } }
.carrousel-item-produit img { max-width: 100%; max-height: 150px; width: auto; }
.petit-titre { height: 3em; overflow: hidden; font-size: .9rem; }
.carrousel-fleche { position: absolute; top: 35%; z-index: 2; border: 0; background: rgba(0,0,0,.25); color: #fff; width: 2rem; height: 2.5rem; border-radius: .25rem; margin: 0; padding: 0; box-shadow: none; }
.carrousel-prec { left: 0; } .carrousel-suiv { right: 0; }
.note-danger { border-color: #c0243e; background: #fde4e8; }
.note-success { border-color: #12803a; background: #dcf3e4; }
.text-danger-note { color: var(--couleur-danger); }

/* Menu Catalogue aéré, comme l'ancien site : titres en majuscules, liens espacés séparés par un filet */
.mega-colonnes { padding: 0 1rem; }
.mega-titre { display: block; text-transform: uppercase; font-weight: 700; font-size: .85rem; letter-spacing: .02em; color: #1f1f1f !important; padding: .35rem 0 .6rem; border-bottom: 1px solid #d9d9d9; margin-bottom: .1rem; }
a.mega-titre:hover { color: var(--couleur-principale) !important; }
.mega-lien { display: block; font-size: .9rem; padding: .5rem 0 .5rem .6rem; border-bottom: 1px solid #efefef; color: #4f4f4f !important; }
.mega-lien:hover { background: #f6f8ff; color: var(--couleur-principale) !important; }
@media (max-width: 767px) { .dropdown-menu.mega-menu { max-height: 70vh; overflow-y: auto; } }

/* Rangées de produits de l'accueil : plus aérées (cartes séparées, image plus grande, prix mis en avant) */
.carrousel-piste { gap: 1rem; padding: 1rem 2.6rem 1.2rem; }
.carrousel-item-produit { background: #fff; border: 1px solid #e6e6e6; border-radius: .5rem; padding: 1rem .8rem !important; flex-basis: calc(50% - .5rem); }
@media (min-width: 768px) { .carrousel-item-produit { flex-basis: calc(25% - .75rem); } }
.carrousel-item-produit:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.carrousel-item-produit img { max-height: 170px; margin-bottom: .8rem; }
.petit-titre { height: 3.6em; line-height: 1.2; margin-bottom: .5rem; }
.petit-titre a { color: #333; text-decoration: none; }
.petit-titre a:hover { color: var(--couleur-principale); }
.carrousel-item-produit strong { color: var(--couleur-principale); font-size: 1.05rem; }
.carrousel-fleche { top: 40%; }
section.my-4 { margin-top: 2.2rem !important; margin-bottom: 2.2rem !important; }

/* Page famille */
.ligne-produit { border-radius: 0; }
.ligne-produit .img-thumbnail { background: #fff; }
.picto-colonne { margin-left: .6rem; }
.picto-colonne img { display: block; max-height: 1.6em; margin: 0 auto .4rem; }
.picto-colonne .badge { display: block; margin-bottom: .4rem; }
.carte-vente { background: #fff; border: 1px solid #e6e6e6; border-radius: .5rem; padding: 1rem; }
.carte-vente img { max-height: 150px; max-width: 100%; }
.filtres-liste .form-label { font-weight: 600; font-size: .85rem; text-transform: uppercase; color: #6b6b6b; }
.pagination, nav[role=navigation] { margin: 1rem 0; }
.carte-rubrique { background: #fff; border-radius: .5rem; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; }
.carte-rubrique .list-group-item { border-left: 0; border-right: 0; padding: .7rem .25rem; }
.carte-rubrique .badge-demo { background: #dff1f7; color: #2c96b5; font-size: .7rem; padding: .25rem .5rem; border-radius: .25rem; }

/* Panier et commande (tableau bleu de l'ancien site) */
.table-panier { width: 100%; border-collapse: collapse; background: #fff; }
.table-panier thead th { background: #146eb4; color: #fff; text-transform: uppercase; font-size: .8rem; padding: .7rem .6rem; text-align: center; }
.table-panier thead th.text-start { text-align: left; }
.table-panier tbody tr:nth-child(even) { background: #d9ecff; }
.table-panier td { text-align: center; vertical-align: middle; padding: .7rem .6rem; border-bottom: 1px solid #e0e0e0; }
.table-panier td.text-start { text-align: left; }
.table-panier .quantite { white-space: nowrap; }
.table-panier .quantite form { display: inline-block; }
.table-panier button.pm { margin: 0 .3rem; padding: .1rem .55rem; background: #fff; color: #146eb4; border: 1px solid #146eb4; border-radius: .25rem; box-shadow: none; line-height: 1.2; }
.table-panier button.pm:hover { background: #146eb4; color: #fff; }
.table-panier button.supprimer { color: #c0243e; border-color: #c0243e; }
.table-totaux { width: 100%; background: #fff; }
.table-totaux th { background: #146eb4; color: #fff; padding: .45rem .8rem; text-align: left; width: 55%; }
.table-totaux td { background: #d9ecff; color: #146eb4; padding: .45rem .8rem; text-align: right; font-weight: 600; border-bottom: 1px solid #fff; }
.table-totaux tr.total td { color: #c0243e; font-size: 1.15rem; }
.text-primary-fidelite { color: #12803a; }
