.livraison-form {
    background: #E6F1FB;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.livraison-form h2 {
    color: #0C447C;
    font-size: 16px;
    margin-bottom: 12px;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #0C447C;
}

.form-input {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 16px;
}

.field-error {
    color: #c0392b;
    font-size: 12px;
    margin-top: 3px;
    display: block;
    min-height: 16px;
}

.form-input.input-error {
    border-color: #c0392b;
    background-color: #fdecea;
}

.form-input.input-ok {
    border-color: #27ae60;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field > input {
    width: 100%;
    padding-right: 48px !important;
}

.password-field .password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 7px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent !important;
    color: #185FA5 !important;
    cursor: pointer;
    box-shadow: none !important;
    z-index: 2;
}

.password-field .password-toggle:hover,
.password-field .password-toggle:focus-visible {
    background: #E6F1FB !important;
    outline: none;
}

.password-field .password-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-closed,
.password-visible .password-toggle .eye-open {
    display: none;
}

.password-visible .password-toggle .eye-closed {
    display: block;
}

.confirmation-page {
    text-align: center;
    padding: 60px 30px;
    max-width: 500px;
    margin: 0 auto;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #d5f5e3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.confirmation-numero {
    background-color: #E6F1FB;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px auto;
    font-size: 18px;
    font-weight: bold;
    color: #185FA5;
}

.confirmation-recap {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 16px auto;
    text-align: left;
    font-size: 14px;
}

.confirmation-recap div {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.confirmation-recap div:last-child {
    border-bottom: none;
}

.confirmation-recap strong {
    color: #0C447C;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #2C2C2A;
    line-height: 1.6;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
}

#promo-banner {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, #4A0080, #8B2FC9, #C44FE8);
    color: #fff;
    padding: 10px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

#promo-banner button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* ===== TOAST (notifications non bloquantes) ===== */
#site-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    background: #0C447C;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10000;
    max-width: 90vw;
    text-align: center;
}

#site-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

#site-toast.error {
    background: #c0392b;
}

#site-toast.success {
    background: #185FA5;
}

.promo-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.promo-popup {
    position: relative;
    width: min(460px, 92vw);
    background: #fff;
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.promo-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
}

.promo-popup-label {
    color: #185FA5;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.promo-popup h3 {
    color: #0C447C;
    margin: 6px 0 10px;
}

.promo-popup-btn {
    background: #185FA5;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
}

main {
    flex: 1 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
li {
    list-style: none;
}

/* ===== PALETTE DE COULEURS (référence) =====
   Bleu principal      : #185FA5
   Bleu clair (fond)   : #E6F1FB
   Bleu foncé (texte)  : #0C447C
   Vert WhatsApp       : #25D366
   Vert clair (fond)   : #EAF3DE
   Vert texte          : #3B6D11
*/

/* ===== NAVIGATION ===== */
nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #185FA5;
    padding: 10px 30px;
    flex-wrap: nowrap;
    gap: 10px;
}

.nav-left {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-left a {
    display: flex;
    align-items: center;
}

.nav-left img {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
    margin: -10px 0;
    flex-shrink: 0;
}

.nav-center {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #185FA5;
    flex-direction: column;
    padding: 6px 30px;
    z-index: 100;
    gap: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.nav-center.open {
    display: flex;
}

.nav-center a {
    color: #E6F1FB;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.nav-center a:last-child {
    border-bottom: none;
}

.nav-center a:hover {
    background-color: #0C447C;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

/* Mobile adaptation pour nav-right */
@media (max-width: 480px) {
    .nav-right {
        gap: 6px;
    }
}

.nav-right form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 3px 3px 3px 16px;
    box-shadow: 0 2px 10px rgba(4, 44, 83, 0.18);
    flex: 1;
    max-width: 500px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-right form:focus-within {
    border-color: #FFC94A;
    box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.25), 0 4px 14px rgba(4, 44, 83, 0.22);
}

.nav-right form label {
    display: none;
}

.nav-right input[type="search"] {
    border: none;
    background: transparent;
    padding: 7px 8px 7px 0;
    font-size: 15px;
    color: #1a2d42;
    outline: none;
    flex: 1;
    width: auto;
    min-width: 0;
}

.nav-right input[type="search"]::placeholder {
    color: #8a97a8;
}

.nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    background-color: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-right form button {
    border: none;
    background-color: #185FA5;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='6'></circle><line x1='21' y1='21' x2='16.65' y2='16.65'></line></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 17px 17px;
    transition: background-color 0.2s, transform 0.15s;
}

.nav-right form button:hover {
    background-color: #0C447C;
    transform: scale(1.06);
}

.nav-right>a {
    color: #ffffff;
    font-weight: bold;
    background-color: #0C447C;
    padding: 8px 14px;
    border-radius: 5px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.nav-right>a:hover {
    background-color: #042C53;
}

/* Icon SVG (monochrome) for panier, connexion & compte links */
.nav-right a[href="panier.html"]::before,
.nav-right a[href="connexion.html"]::before,
.nav-right a[href="compte.html"]::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #ffffff;
    /* SVG uses currentColor for stroke */
}

.nav-right a[href="panier.html"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'><path d='M6 6h15l-1.5 9h-12z'/><circle cx='9' cy='20' r='1.5'/><circle cx='18' cy='20' r='1.5'/></svg>");
}

.nav-right a[href="connexion.html"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
}

.nav-right a[href="compte.html"]::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
}

.nav-right a[href="panier.html"],
.nav-right a[href="connexion.html"],
.nav-right a[href="compte.html"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* small polish: ensure cart count remains readable */
#cart-count {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 6px;
    font-weight: 700;
}

/* Icône panier pour petits écrans - seulement l'icône SVG sans texte */
@media (max-width: 480px) {
    /* Masquer tout le texte dans les liens de navigation */
    .nav-right a[href="panier.html"],
    .nav-right a[href="connexion.html"],
    .nav-right a[href="compte.html"] {
        padding: 8px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    /* Masquer le texte et le compteur */
    .nav-right a[href="panier.html"] span,
    .nav-right a[href="connexion.html"] span,
    .nav-right a[href="compte.html"] span,
    .nav-right a[href="panier.html"] #cart-count {
        display: none;
    }
    
    /* Agrandir toutes les icônes SVG */
    .nav-right a[href="panier.html"]::before,
    .nav-right a[href="connexion.html"]::before,
    .nav-right a[href="compte.html"]::before {
        margin-right: 0;
        width: 28px;
        height: 28px;
    }
    
    /* Adapter le formulaire de recherche pour mobile */
    .nav-right form {
        display: none;
    }
    
    /* Ajuster l'espacement entre les éléments */
    .nav-right {
        gap: 8px;
    }
}

/* ===== HERO ===== */
.hero {
    background:
        linear-gradient(rgba(8, 40, 74, 0.55), rgba(8, 40, 74, 0.65)),
        url("img/cover 3 index.avif") center/cover no-repeat;
    text-align: center;
    padding: 50px 20px;
    filter: saturate(1.2) contrast(1.05);
}

.hero h1 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.hero p {
    color: #FFC94A;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #FFC94A;
    color: #0C447C;
    padding: 15px 34px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 201, 74, 0.6);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    animation: hero-cta-pulse 2.6s ease-out 1.2s 3;
}

.hero a::after {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C447C' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>") center/contain no-repeat;
    transition: transform 0.2s;
}

.hero a:hover {
    background-color: #ffd770;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero a:hover::after {
    transform: translateX(4px);
}

.hero a:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

@keyframes hero-cta-pulse {
    0% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 201, 74, 0.6); }
    70% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 16px rgba(255, 201, 74, 0); }
    100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 201, 74, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero a { animation: none; }
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 40px 30px;
    text-align: center;
}

.categories h2 {
    font-size: 22px;
    color: #185FA5;
    font-weight: 700;
    margin-bottom: 12px;
}

.categories h2,
.featured-products h2 {
    text-align: center;
}

.categories h2::after,
.featured-products h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    background: #E6F1FB;
    margin: 10px auto 0;
    border-radius: 4px;
}

.category-list {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.category-item {
    background-color: #ffffff;
    border: 1px solid #e6edf6;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(8, 30, 60, 0.04);
    color: #185FA5;
    font-weight: 600;
    cursor: pointer;
    transition: transform 180ms cubic-bezier(.2, .9, .2, 1), box-shadow 180ms cubic-bezier(.2, .9, .2, 1);
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(8, 30, 60, 0.06);
}

/* Heading for featured products on homepage */
.featured-products h2 {
    font-size: 22px;
    color: #185FA5;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    width: 200px;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    background-color: #E6F1FB;
    display: block;
}

.product-card h3 {
    font-size: 14px;
    margin: 10px 12px 6px;
    color: #2C2C2A;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    text-align: center;
}

.product-card .price {
    color: #8B2FC9;
    font-weight: bold;
    font-size: 15px;
    margin: 0 12px 10px;
}

.btn-add-cart {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    background-color: #185FA5;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: auto;
}

.btn-add-cart:hover {
    background-color: #0C447C;
    transform: translateY(-2px);
}

/* ===== POURQUOI CHOISIR YAMES ===== */
.why-us {
    background-color: #EAF3DE;
    padding: 40px 30px;
    text-align: center;
}

.why-us h2 {
    color: #3B6D11;
    margin-bottom: 20px;
    font-size: 22px;
}

.why-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.why-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 18px 25px;
    color: #3B6D11;
    font-weight: bold;
    min-width: 160px;
}

/* ===== WHATSAPP ===== */
.whatsapp-cta {
    text-align: center;
    padding: 20px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.12);
    background-color: #1fbf4a;
}

.whatsapp-link:active {
    transform: translateY(-1px) scale(0.995);
}

.whatsapp-link .wh-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
}

/* ===== FOOTER ===== */
footer {
    background-color: #185FA5;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer-socials a {
    color: #E6F1FB;
    margin: 0 10px;
    font-weight: bold;
}

.footer-socials a:hover {
    text-decoration: underline;
}

footer p {
    margin-top: 10px;
    font-size: 13px;
    color: #B5D4F4;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    margin-top: 12px;
}

.footer-legal a {
    color: #B5D4F4;
    font-size: 12px;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== PAGE CATALOGUE ===== */
.catalogue-page {
    padding: 30px;
    /* leave space at bottom so sticky sidebar doesn't overlap the footer */
    padding-bottom: 160px;
}

.catalogue-page h1 {
    color: #185FA5;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.catalogue-layout {
    display: grid;
    /* larger sidebar to match product area and give room for filters */
    grid-template-columns: 360px 1fr;
    gap: 32px;
    align-items: start;
}

.catalogue-layout .product-grid {
    display: grid;
    /* colonnes fixes pour éviter que le produit unique s'étire */
    grid-template-columns: repeat(auto-fill, 240px);
    gap: 25px;
    width: 100%;
    justify-content: center;
    /* centre la grille lorsque moins de colonnes */
    justify-items: center;
    /* centre le contenu des cellules */
    align-items: stretch;
    padding-inline: 12px;
    /* espace entre la grille et le bord de la colonne */
    box-sizing: border-box;
}

.catalogue-layout .product-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    width: 240px;
    max-width: 240px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.catalogue-layout .product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
    background-color: #E6F1FB;
    display: block;
}

.catalogue-layout .product-card h3 {
    font-size: 16px;
    margin: 12px 12px 8px;
    color: #2C2C2A;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    text-align: center;
}

.catalogue-layout .product-card .price {
    color: #8B2FC9;
    font-weight: bold;
    font-size: 16px;
    margin: 0 12px 12px;
}

.catalogue-layout .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.catalogue-layout .btn-add-cart {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    background-color: #185FA5;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: auto;
}

.catalogue-layout .btn-add-cart:hover {
    background-color: #0C447C;
}

.catalogue-layout .pagination {
    grid-column: 2;
    justify-self: center;
    margin-top: 25px;
}

/* --- Sidebar filtres --- */
.filters {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 22px;
    width: 360px;
    flex-shrink: 0;
    /* keep filters visible while scrolling */
    position: sticky;
    top: 96px;
    align-self: start;
    transition: box-shadow 200ms cubic-bezier(.2, .9, .2, 1), transform 200ms cubic-bezier(.2, .9, .2, 1);
    /* small gap from page bottom/footer when scrolled to end */
    margin-bottom: 24px;
}

.filters h2 {
    color: #185FA5;
    font-size: 18px;
    margin-bottom: 15px;
}

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

.filter-group h3 {
    font-size: 14px;
    color: #0C447C;
    margin-bottom: 8px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    cursor: pointer;
}

.filter-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 120px;
    padding: 10px 14px;
    border: 2px solid #b8d4e8;
    border-radius: 8px;
    background: #f0f7fc;
    color: #0C447C;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-box:hover {
    border-color: #185FA5;
    background: #e0f0fb;
}

.filter-box input {
    display: none;
}

.filter-box:has(input:checked) {
    background: #185FA5;
    border-color: #0C447C;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(24,95,165,0.3);
}

.filter-box:has(input:checked)::before {
    content: '✓ ';
    font-weight: 900;
}

.filter-product-boxes {
    display: flex;
    gap: 8px;
}

.filter-box-btn {
    border: 2px solid #b8d4e8;
    background: #f0f7fc;
    color: #0C447C;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-box-btn:hover {
    border-color: #185FA5;
    background: #e0f0fb;
}

.filter-box-btn.active {
    background: #185FA5;
    border-color: #0C447C;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(24,95,165,0.3);
}

.filter-group input[type="text"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.filter-group input[type="number"] {
    width: 70px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.filter-group input[type="number"]::-webkit-outer-spin-button,
.filter-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-group select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.btn-reset {
    width: 100%;
    background-color: #E6F1FB;
    color: #0C447C;
    border: 1px solid #0C447C;
    padding: 8px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-reset:hover {
    background-color: #0C447C;
    color: #ffffff;
}

/* --- Grille produits dans le catalogue (définie plus haut) --- */

/* Pagination fix: always under the catalogue grid */
.catalogue-layout .pagination {
    grid-column: 2;
    justify-self: center;
    margin-top: 25px;
}

/* removed duplicate override that forced stretching */

.catalogue-layout .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.catalogue-layout .btn-add-cart {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    background-color: #185FA5;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: auto;
}

.catalogue-layout .btn-add-cart:hover {
    background-color: #0C447C;
}

/* --- Grille produits sur l'accueil --- */
.featured-products .product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.featured-products {
    padding: 36px 28px;
}

.featured-products p {
    max-width: 920px;
    margin: 0 auto 18px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.featured-products .product-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    width: 240px;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.featured-products .product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    background-color: #E6F1FB;
    display: block;
}

.featured-products .product-card h3 {
    font-size: 14px;
    margin: 10px 12px 6px;
    color: #2C2C2A;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    text-align: center;
}

.featured-products .product-card .price {
    color: #8B2FC9;
    font-weight: bold;
    font-size: 15px;
    margin: 0 12px 10px;
}

.featured-products .btn-add-cart {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    background-color: #185FA5;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: auto;
}

.featured-products .btn-add-cart:hover {
    background-color: #0C447C;
}

.no-result {
    text-align: center;
    color: #888;
    font-size: 15px;
    width: 100%;
    padding: 40px 0;
}

/* Le style générique des blocs produit est défini dans .featured-products et .catalogue-layout */

/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Centrage parfait sur la page */
.bientot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: #f3f4f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
}

/* Boîte de contenu */
.bientot-content {
    text-align: center;
    background: white;
    padding: 60px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

/* Titre */
.bientot-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #2563eb;
}

/* Texte descriptif */
.bientot-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 30px;
    text-align: center;
    text-wrap: balance;
    font-family: "Manrope", sans-serif;


}

/* Animation de chargement */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Overlay de chargement Sypha */
.sypha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity 0.25s ease;
}

.sypha-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.sypha-loader {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 5px solid #E6F1FB;
    border-top-color: #185FA5;
    animation: spin 0.9s linear infinite;
    position: relative;
}

.sypha-loader::after {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #185FA5;
    border-radius: 50%;
    animation: sypha-pulse 1.2s ease-in-out infinite;
}

@keyframes sypha-pulse {
    0%, 100% { transform: translateX(-50%) scale(0.8); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(1.3); opacity: 1; }
}

.sypha-text {
    color: #185FA5;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-page {
    padding: 30px 20px;
    font-family: Arial, sans-serif;
    color: #2c2c2a;
}

.contact-header {
    text-align: center;
    margin-bottom: 25px;
}

.contact-header h1 {
    color: #185FA5;
    margin-bottom: 10px;
    font-size: 28px;
}

.contact-header p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.contact-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-card h2 {
    color: #185FA5;
    font-size: 20px;
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 10px;
    color: #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form label {
    font-weight: bold;
    color: #0C447C;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
}

.contact-form button {
    background: #185FA5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover {
    background: #0C447C;
}

/* ===== PAGE PANIER ===== */
.panier-page {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.panier-page h1 {
    color: #185FA5;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

#panier-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.panier-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
}

.panier-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #E6F1FB;
    flex-shrink: 0;
}

.panier-item-info {
    flex: 1;
}

.panier-item-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
    color: #2C2C2A;
}

.panier-item-info .price-unit {
    font-size: 13px;
    color: #888;
}

.panier-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panier-qty button {
    background-color: #E6F1FB;
    color: #185FA5;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.panier-qty button:hover {
    background-color: #185FA5;
    color: #ffffff;
}

.panier-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: bold;
}

.panier-item-total {
    font-weight: bold;
    color: #8B2FC9;
    min-width: 90px;
    text-align: right;
}

.btn-remove {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.btn-remove:hover {
    color: #922b21;
    background: #fdecea;
}

.btn-remove svg {
    pointer-events: none;
}

.panier-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #E6F1FB;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.total-label {
    font-size: 16px;
    font-weight: bold;
    color: #0C447C;
}

.total-amount {
    font-size: 20px;
    font-weight: bold;
    color: #8B2FC9;
}

.coupon-section {
    background: #fff;
    border: 1px solid #d7e6f9;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
}

.coupon-section label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #0C447C;
    margin-bottom: 8px;
}

.coupon-row {
    display: flex;
    gap: 10px;
}

.coupon-row input {
    flex: 1;
    padding: 10px;
    border: 1px solid #cddbf5;
    border-radius: 6px;
    outline: none;
    font-size: 16px;
}

/* ===== CHOIX DU MODE DE PAIEMENT ===== */
.paiement-section {
    background: #fff;
    border: 1px solid #d7e6f9;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(12, 68, 124, 0.05);
}

.paiement-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: #0C447C;
    margin: 0 0 4px;
}

.paiement-header p {
    font-size: 13px;
    color: #6b7a8c;
    margin: 0 0 18px;
}

.paiement-groupe-titre {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8a97a8;
    margin: 4px 0 10px;
}

.paiement-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.paiement-option {
    display: block;
    cursor: pointer;
}

/* Paiement en ligne momentanément suspendu */
.paiement-bientot {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #FFF4D6;
    color: #8A6A00;
    font-size: 10px;
    letter-spacing: 0.4px;
    vertical-align: middle;
}

.paiement-option.indisponible {
    cursor: not-allowed;
}

.paiement-option.indisponible .paiement-option-content,
.paiement-option.indisponible:hover .paiement-option-content {
    opacity: 0.5;
    filter: grayscale(1);
    background: #F5F7FA;
    border-color: #E4E9F0;
    box-shadow: none;
    transform: none;
}

.paiement-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.paiement-option-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #e1e8f2;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.paiement-option:hover .paiement-option-content {
    border-color: #9dbfe3;
}

.paiement-option input[type="radio"]:focus-visible + .paiement-option-content {
    outline: 2px solid #185FA5;
    outline-offset: 2px;
}

.paiement-option input[type="radio"]:checked + .paiement-option-content {
    border-color: #185FA5;
    background: #f4f9ff;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.paiement-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #b8c6d6;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}

.paiement-option input[type="radio"]:checked + .paiement-option-content .paiement-radio {
    border-color: #185FA5;
}

.paiement-option input[type="radio"]:checked + .paiement-option-content .paiement-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #185FA5;
}

.paiement-texte {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.paiement-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a2d42;
}

.paiement-desc {
    font-size: 12px;
    color: #7a8899;
}

.paiement-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.logo-orange { background: #FF7900; color: #fff; }
.logo-wave { background: #1DC4FF; color: #fff; }
.logo-carte { background: #0C447C; color: #fff; }
.logo-livraison { background: #e8f5ee; color: #1e7e45; }

.paiement-securite {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7a8c;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 480px) {
    .paiement-section { padding: 16px; }
    .paiement-option-content { padding: 12px; gap: 10px; }
    .paiement-logo { width: 34px; height: 34px; font-size: 12px; }
}

.coupon-row button {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
}

.coupon-message {
    margin-top: 8px;
    font-size: 13px;
    color: #185FA5;
}

.coupon-message.success {
    color: #1f7a1f;
}

.coupon-message.error {
    color: #c0392b;
}

.coupon-button-anim {
    animation: coupon-pop 0.4s ease;
}

@keyframes coupon-pop {
    0% { transform: scale(1); }
    30% { transform: scale(0.92); }
    60% { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.3); }
    100% { transform: scale(1); box-shadow: none; }
}

.coupon-message-anim {
    animation: coupon-message-pop 0.4s ease;
}

@keyframes coupon-message-pop {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.discount-anim {
    animation: discount-flash 0.5s ease;
}

@keyframes discount-flash {
    0%, 100% { color: inherit; transform: scale(1); }
    50% { color: #25D366; transform: scale(1.15); }
}

.panier-summary {
    background: #f9fbff;
    border: 1px dashed #b7cde9;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.panier-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #2C2C2A;
}

.panier-summary strong {
    color: #8B2FC9;
}

.panier-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-continue {
    background-color: #ffffff;
    color: #185FA5;
    border: 1px solid #185FA5;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-continue:hover {
    background-color: #E6F1FB;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-whatsapp:hover {
    background-color: #1da851;
}

.panier-vide {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 15px;
}

/* Badge nombre d'articles dans la nav */
.nav-right #cart-count {
    background-color: #8B2FC9;
    color: #ffffff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
}

/* ===== BOUTON PAIEMENT ===== */
.btn-paiement {
    background-color: #185FA5;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-paiement:hover {
    background-color: #0C447C;
}

/* ===== INFORMATION PAIEMENT ===== */
.payment-info {
    background-color: #E6F1FB;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #185FA5;
}

.payment-info p {
    margin: 8px 0;
    color: #2C2C2A;
    font-size: 14px;
}

/* ===== MODAL PAIEMENT (DÉSACTIVÉ - UTILISATION MONEROO DIRECTE) ===== */
/* .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    width: 90%;
    max-width: 420px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
}

.modal-close:hover {
    color: #2C2C2A;
}

.modal-box h2 {
    color: #185FA5;
    font-size: 18px;
    margin-bottom: 18px;
    text-align: center;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: bold;
    color: #2C2C2A;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    text-align: left;
}

.payment-option:hover {
    background-color: #E6F1FB;
    border-color: #185FA5;
}

.payment-option.selected {
    background-color: #E6F1FB;
    border-color: #185FA5;
}

.payment-icon {
    font-size: 20px;
}

.payment-icon-img {
    width: 52px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-name {
    font-size: 14px;
    font-weight: bold;
    color: #2C2C2A;
}

.payment-desc {
    font-size: 11px;
    color: #888;
    font-weight: normal;
}

.payment-secure-note {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.payment-details {
    margin-top: 15px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
    color: #2C2C2A;
    display: none;
    line-height: 1.6;
}

.payment-details.active {
    display: block;
}

.payment-details strong {
    color: #185FA5;
}

.payment-details .btn-confirmer {
    margin-top: 12px;
    width: 100%;
    background-color: #25D366;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.payment-details .btn-confirmer:hover {
    background-color: #1da851;
}

/* ===== ANIMATION BOUTON "AJOUTER AU PANIER" ===== */
.btn-add-cart.added {
    background-color: #25D366;
}

/* Produit en rupture : bouton grisé et non cliquable */
.btn-add-cart.rupture,
.btn-add-cart.rupture:hover {
    background: #E4E9F0 !important;
    color: #7A8CA3 !important;
    border-color: #E4E9F0 !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed;
}

@keyframes pop-cart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

#cart-count.bump {
    animation: pop-cart 0.3s ease;
}

/* ===== RECHERCHE LIVE ===== */
.nav-right form {
    position: relative;
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.15s;
    text-decoration: none;
    color: #2C2C2A;
}

.search-result-item:hover {
    background-color: #E6F1FB;
}

.search-result-item img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #E6F1FB;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-info .nom {
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-info .prix {
    font-size: 12px;
    color: #185FA5;
}

.search-no-result {
    padding: 12px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* ===== PAGE PRODUIT (détail) ===== */
.produit-page {
    padding: 24px 30px 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.produit-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 24px rgba(12, 68, 124, 0.07);
}

.pd-fil {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9aa7b6;
    margin-bottom: -16px;
}

.pd-fil a {
    color: #6b7a8c;
    text-decoration: none;
}

.pd-fil a:hover {
    color: #185FA5;
    text-decoration: underline;
}

.produit-detail-image {
    min-width: 0;
}

.pd-image-cadre {
    position: sticky;
    top: 20px;
    background: linear-gradient(160deg, #F2F8FE 0%, #E6F1FB 100%);
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
}

.pd-image-cadre img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    mix-blend-mode: multiply;
}

.pd-image-cadre:hover img {
    transform: scale(1.06);
}

.produit-detail-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pd-categorie {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #185FA5;
    background: #E6F1FB;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.produit-detail-info h1 {
    color: #0C447C;
    font-size: 28px;
    line-height: 1.25;
    margin: 0 0 6px;
}

.pd-meta {
    font-size: 13px;
    color: #8a97a8;
    margin: 0 0 4px;
}

.pd-prix-ligne {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 14px 0 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
}

.produit-detail-price {
    color: #8B2FC9;
    font-size: 30px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
}

.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}

.pd-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.pd-stock.dispo { color: #1e8a4c; }
.pd-stock.faible { color: #c47a00; }
.pd-stock.rupture { color: #c0392b; }

.produit-detail-description {
    color: #4a5a6b;
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 24px;
}

.pd-achat {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.pd-quantite {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d7e2ee;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.pd-qte-btn {
    width: 42px;
    height: 50px;
    border: none;
    background: #f6f9fc;
    color: #0C447C;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pd-qte-btn:hover:not(:disabled) { background: #e6f1fb; }

.pd-quantite input {
    width: 46px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a2d42;
    -moz-appearance: textfield;
}

.pd-quantite input::-webkit-outer-spin-button,
.pd-quantite input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pd-btn-ajouter,
.pd-btn-acheter {
    height: 50px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.pd-btn-ajouter {
    flex: 1;
    border: none;
    background: #185FA5;
    color: #fff;
    box-shadow: 0 6px 16px rgba(24, 95, 165, 0.28);
}

.pd-btn-ajouter:hover:not(:disabled) {
    background: #0C447C;
    transform: translateY(-1px);
}

.pd-btn-acheter {
    width: 100%;
    background: #fff;
    color: #0C447C;
    border: 1.5px solid #0C447C;
    margin-bottom: 24px;
}

.pd-btn-acheter:hover:not(:disabled) {
    background: #FFC94A;
    border-color: #FFC94A;
}

.pd-btn-ajouter:disabled,
.pd-btn-acheter:disabled,
.pd-qte-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.pd-garanties {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    background: #f8fbff;
    border-radius: 12px;
    padding: 18px;
}

.pd-garanties li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pd-garanties .avantage-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: #ffffff;
    background-size: 20px 20px;
    box-shadow: 0 1px 4px rgba(12, 68, 124, 0.08);
}

.pd-garanties strong {
    display: block;
    font-size: 14px;
    color: #1a2d42;
}

.pd-garanties li span:not(.avantage-icon) {
    font-size: 12px;
    color: #7a8899;
}

.pd-notice {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #185FA5;
}

.pd-barre-mobile {
    display: none;
}

.avantages-yames {
    margin: 18px 0 0;
    padding: 12px 0 0;
}

.avantages-yames h3 {
    color: #185FA5;
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 700;
}

.avantages-yames-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.avantage-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2C2C2A;
    background: #f7faff;
    border: 1px solid #dfeeff;
    border-radius: 999px;
    padding: 6px 10px;
}

.avantage-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.icon-truck {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185FA5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3z'/%3E%3Cpath d='M14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7.5' cy='18' r='1.5'/%3E%3Ccircle cx='17.5' cy='18' r='1.5'/%3E%3C/svg%3E");
}

.icon-shield {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185FA5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4-2.5 7-7 9-4.5-2-7-5-7-9V6l7-3z'/%3E%3C/svg%3E");
}

.icon-check {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185FA5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.produits-similaires-section {
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.produits-similaires-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.produits-similaires-section h2 {
    color: #185FA5;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== PAGES CONNEXION / INSCRIPTION ===== */
.auth-page {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.auth-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 420px;
}

.auth-box h1 {
    color: #185FA5;
    font-size: 22px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: #666;
    font-size: 13px;
    text-align: center;
    margin-bottom: 18px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form label {
    font-weight: bold;
    color: #0C447C;
    font-size: 13px;
}

.auth-form input {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
}

.auth-form button {
    background: #185FA5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    margin-top: 8px;
}

.auth-form button:hover {
    background: #0C447C;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    margin-top: 15px;
    color: #555;
}

.auth-switch a {
    color: #185FA5;
    font-weight: bold;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-switch-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.auth-note {
    margin-top: 18px;
    font-size: 11px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

.auth-message {
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px;
    min-height: 0;
}

.auth-message.error {
    color: #c0392b;
    background-color: #fdecea;
    border-radius: 6px;
    padding: 8px;
}

.auth-message.success {
    color: #1e7e34;
    background-color: #e6f7e9;
    border-radius: 6px;
    padding: 8px;
}

/* ===== PAGE MON COMPTE ===== */
.compte-page {
    display: flex;
    justify-content: center;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.compte-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.compte-header h1 {
    color: #0C447C;
    font-size: 20px;
}

.btn-deconnexion {
    background-color: #ffffff;
    color: #c0392b;
    border: 1px solid #c0392b;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-deconnexion:hover {
    background-color: #c0392b;
    color: #ffffff;
}

.compte-section-title {
    color: #185FA5;
    font-size: 18px;
    margin-bottom: 12px;
}

.commande-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.commande-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
}

.commande-header .commande-statut {
    background-color: #EAF3DE;
    color: #3B6D11;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
}

.commande-items {
    font-size: 13px;
    color: #2C2C2A;
    line-height: 1.6;
}

.commande-total {
    margin-top: 8px;
    font-weight: bold;
    color: #185FA5;
    text-align: right;
}

.historique-vide {
    text-align: center;
    color: #888;
    padding: 30px 0;
    font-size: 14px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* ===== LIEN CONNEXION / MON COMPTE DANS LA NAV ===== */
.nav-compte-link {
    background-color: transparent !important;
    color: #E6F1FB !important;
    font-weight: bold;
    padding: 8px 12px !important;
    border-radius: 5px;
}

.nav-compte-link:hover {
    background-color: #0C447C !important;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 25px;
    width: 100%;
    grid-column: 2;
    justify-self: center;
}

.pagination-btn {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #185FA5;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #E6F1FB;
}

.pagination-btn.active {
    background-color: #185FA5;
    color: #ffffff;
    border-color: #185FA5;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== CATEGORIES AVEC IMAGE ===== */
.categories {
    padding: 50px 30px;
    text-align: center;
    background-color: #ffffff;
}

.categories .section-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #185FA5;
    margin-bottom: 8px;
}

.categories h2 {
    color: #0C447C;
    font-size: 26px;
    margin-bottom: 8px;
}

.categories .sous-titre {
    color: #777;
    font-size: 14px;
    margin-bottom: 35px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.category-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    min-width: 200px;
    flex: 1;
    max-width: 260px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(24, 95, 165, 0.12);
    border-color: #185FA5;
}

.category-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background-color: #E6F1FB;
    display: block;
}

.category-img-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #E6F1FB, #d0e8f8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.category-body {
    padding: 14px 16px 18px;
    text-align: left;
}

.category-body h3 {
    color: #0C447C;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}

.category-body p {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.category-link {
    color: #185FA5;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== SECTION APERÇU APROPOS ===== */
.apropos-preview {
    background-color: #f5f5f5;
    padding: 60px 30px;
}

.apropos-preview-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.apropos-preview-img {
    flex: 1;
    min-width: 260px;
}

.apropos-preview-img .img-box {
    background: linear-gradient(135deg, #E6F1FB, #d0e8f8);
    border-radius: 12px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.apropos-preview-img .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.apropos-preview-img .img-box span {
    font-size: 70px;
    opacity: 0.3;
}

.apropos-preview-texte {
    flex: 1;
    min-width: 260px;
}

.apropos-preview-texte .section-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #185FA5;
    margin-bottom: 10px;
}

.apropos-preview-texte h2 {
    color: #0C447C;
    font-size: 24px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.apropos-preview-texte p {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.apropos-preview-texte p strong {
    color: #185FA5;
}

.btn-en-savoir {
    display: inline-block;
    background-color: #185FA5;
    color: #ffffff;
    padding: 11px 26px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-en-savoir:hover {
    background-color: #0C447C;
}

/* ===== WHY US REDESIGN ===== */
.why-us {
    background-color: #ffffff;
    padding: 60px 30px;
    text-align: center;
}

.why-us .section-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #185FA5;
    margin-bottom: 8px;
}

.why-us h2 {
    color: #0C447C;
    font-size: 26px;
    margin-bottom: 8px;
}

.why-us .sous-titre {
    color: #777;
    font-size: 14px;
    margin-bottom: 45px;
}

.why-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.why-item {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px 22px;
    flex: 1;
    min-width: 180px;
    max-width: 210px;
    text-align: center;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.why-item:hover {
    transform: translateY(-4px);
    border-color: #185FA5;
    box-shadow: 0 6px 18px rgba(24, 95, 165, 0.1);
}

.why-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #E6F1FB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    position: relative;
}

.why-icon-circle svg {
    width: 32px;
    height: 32px;
}

.why-icon-circle .badge-check {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.why-item h3 {
    color: #0C447C;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.why-item p {
    color: #888;
    font-size: 12px;
    line-height: 1.6;
}

.contact-hero {
    background: linear-gradient(135deg, #0C447C 0%, #185FA5 100%);
    color: #ffffff;
    text-align: center;
    padding: 55px 30px;
}

.contact-hero .label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #B5D4F4;
    margin-bottom: 10px;
}

.contact-hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-hero p {
    color: #E6F1FB;
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto;
}

/* COORDONNÉES */
.contact-infos-section {
    background-color: #f5f5f5;
    padding: 50px 30px;
}

.contact-infos-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-infos-inner .label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #185FA5;
    margin-bottom: 8px;
}

.contact-infos-inner h2 {
    color: #0C447C;
    font-size: 22px;
    margin-bottom: 25px;
}

.infos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.info-bloc {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    min-width: 170px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.info-bloc:hover {
    border-color: #185FA5;
    box-shadow: 0 4px 12px rgba(24, 95, 165, 0.08);
}

.info-bloc-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #E6F1FB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-bloc-icon svg {
    width: 28px;
    height: 28px;
}

.info-bloc-content h3 {
    color: #0C447C;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-bloc-content p,
.info-bloc-content a {
    color: #555;
    font-size: 13px;
    line-height: 1.7;
    text-decoration: none;
    display: block;
}

.info-bloc-content a:hover {
    color: #185FA5;
}

.socials-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    color: #2C2C2A;
    text-decoration: none;
    transition: all 0.2s;
}

.social-btn:hover {
    background-color: #E6F1FB;
    border-color: #185FA5;
    color: #185FA5;
}

.social-btn.whatsapp {
    color: #25D366;
    border-color: #25D366;
}

.social-btn.whatsapp:hover {
    background-color: #e6f7ee;
}

/* CARTE + FORMULAIRE */
.contact-main {
    padding: 50px 30px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-map {
    flex: 1;
    min-width: 260px;
}

.contact-map h2 {
    color: #0C447C;
    font-size: 18px;
    margin-bottom: 14px;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
}

.contact-form-section {
    flex: 1.2;
    min-width: 280px;
}

.contact-form-section h2 {
    color: #0C447C;
    font-size: 18px;
    margin-bottom: 18px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form label {
    font-weight: bold;
    color: #0C447C;
    font-size: 13px;
    margin-bottom: 2px;
    display: block;
}

.contact-form .required {
    color: #c0392b;
    margin-left: 2px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #185FA5;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.08);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-row>div {
    flex: 1;
    min-width: 130px;
}

.contact-form button[type="submit"] {
    background-color: #185FA5;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 4px;
}

.contact-form button[type="submit"]:hover {
    background-color: #0C447C;
}

.form-success {
    display: none;
    background-color: #d5f5e3;
    color: #1e7e34;
    padding: 12px;
    border-radius: 7px;
    text-align: center;
    font-weight: bold;
    margin-top: 8px;
}

/* ===== OVERLAY RÉCAPITULATIF AJOUT PANIER ===== */
.cart-overlay {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 11000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-overlay.open {
    right: 0;
}

.cart-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.cart-overlay-header {
    padding: 20px;
    background: #185FA5;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-overlay-header h3 {
    margin: 0;
    font-size: 18px;
}

.cart-overlay-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.cart-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-overlay-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-overlay-product {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cart-overlay-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-overlay-product-info {
    flex: 1;
}

.cart-overlay-product-info h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #2C2C2A;
}

.cart-overlay-product-info p {
    margin: 0;
    font-size: 13px;
    color: #8B2FC9;
    font-weight: bold;
}

.cart-overlay-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.cart-overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-overlay-btn-primary {
    background: #185FA5;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.cart-overlay-btn-primary:hover {
    background: #0C447C;
}

.cart-overlay-btn-secondary {
    background: #ffffff;
    color: #185FA5;
    border: 2px solid #185FA5;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.cart-overlay-btn-secondary:hover {
    background: #E6F1FB;
}

@media (max-width: 768px) {
    .contact-main {
        flex-direction: column;
    }

    .infos-grid {
        flex-direction: column;
    }

    .contact-hero h1 {
        font-size: 24px;
    }

    .cart-overlay {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
}

/* ===== RESPONSIVE : redimensionnement progressif type Amazon ===== */

/* Polish de base */
img {
    max-width: 100%;
    height: auto;
}

.product-link,
.btn-add-cart {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}

/* Tablette paysage / petit desktop */
@media (max-width: 1024px) {
    .catalogue-layout {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }

    .filters {
        width: 260px;
        padding: 18px;
        top: 80px;
    }

    .catalogue-layout .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
        padding-inline: 0;
    }

    .catalogue-layout .product-card,
    .catalogue-layout .product-card {
        width: 100%;
        max-width: 100%;
    }

    .catalogue-layout .product-card img {
        height: 190px;
    }

    .category-list,
    .why-list,
    .infos-grid {
        gap: 14px;
    }
}

/* Tablette portrait (iPad) */
@media (max-width: 900px) {
    .catalogue-layout {
        grid-template-columns: 220px 1fr;
        gap: 16px;
    }

    .filters {
        width: 220px;
        padding: 16px;
    }

    .filters h2 {
        font-size: 16px;
    }

    .catalogue-layout .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 14px;
    }

    .catalogue-layout .product-card img {
        height: 170px;
    }

    .catalogue-layout .product-card h3 {
        font-size: 14px;
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        margin: 10px 10px 6px;
    }
}

/* Catalogue mobile : le filtre passe au-dessus de la grille, sans "sticky" ni saut de mise en page */
@media (max-width: 640px) {
    .catalogue-layout {
        display: block;
    }

    .filters {
        width: 100%;
        position: static;
        top: auto;
        order: 0;
        margin-bottom: 16px;
        padding: 14px;
    }

    .filters h2 {
        font-size: 16px;
    }

    .filter-group {
        margin-bottom: 14px;
    }

    .filter-group h3 {
        font-size: 13px;
    }

    .filter-box,
    .filter-box-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: auto;
    }

    /* Grille fluide : jamais moins de 2 colonnes, 3 dès que la place le permet */
    .catalogue-layout .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
        gap: 10px;
        padding-inline: 0;
        width: 100%;
        justify-items: stretch;
    }

    .catalogue-layout .product-card {
        width: 100%;
        max-width: 100%;
    }

    .catalogue-layout .product-card img {
        height: 130px;
    }

    .catalogue-layout .product-card h3 {
        font-size: 12px;
        margin: 8px 8px 4px;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
    }

    .catalogue-layout .product-card .price {
        font-size: 12px;
        margin: 0 8px 8px;
    }

    .catalogue-layout .btn-add-cart {
        font-size: 11px;
        padding: 7px;
        margin: 0 8px 8px;
        width: calc(100% - 16px);
    }

    .catalogue-layout .pagination {
        grid-column: 1 / -1;
    }
}

/* Mobile générique (téléphones) */
@media (max-width: 768px) {
    nav {
        padding: 8px 14px;
        gap: 6px;
    }

    .nav-left img {
        height: 55px;
        margin: -4px 0;
    }

    .nav-center {
        padding: 6px 14px;
    }

    .nav-right {
        gap: 8px;
    }

    .nav-right form {
        max-width: 320px;
    }

    .nav-right input[type="search"] {
        padding: 4px 6px;
        font-size: 16px;
    }

    .nav-right form button {
        width: 28px;
        height: 28px;
        background-size: 14px 14px;
    }

    .nav-right>a {
        padding: 5px 8px;
        font-size: 11px;
    }

    .nav-right a[href="panier.html"]::before,
    .nav-right a[href="connexion.html"]::before {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }

    .product-grid {
        gap: 14px;
    }

    .featured-products .product-card {
        flex: 1 1 45%;
        width: auto;
        min-width: 140px;
        max-width: calc(50% - 7px);
    }

    .featured-products .product-card img {
        height: 150px;
    }

    .product-card h3 {
        font-size: 13px;
    }

    .product-card .price {
        font-size: 14px;
    }

    .produit-page {
        padding: 12px 12px 0;
    }

    .produit-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
        border-radius: 14px;
    }

    .pd-fil {
        margin-bottom: -6px;
    }

    .pd-image-cadre {
        position: static;
        aspect-ratio: 4 / 3;
        padding: 16px;
    }

    .produit-detail-info h1 {
        font-size: 22px;
    }

    .produit-detail-price {
        font-size: 26px;
    }

    .produits-similaires-section {
        padding: 20px 12px 110px;
    }

    .produits-similaires-section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /* Barre d'achat collée en bas de l'écran */
    .pd-barre-mobile {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        background: #ffffff;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 18px rgba(12, 68, 124, 0.12);
    }

    .pd-barre-prix {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .pd-barre-prix span {
        font-size: 12px;
        color: #6b7a8c;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pd-barre-prix strong {
        font-size: 17px;
        color: #8B2FC9;
    }

    .pd-barre-mobile .pd-btn-ajouter {
        flex: 0 0 auto;
        padding: 0 26px;
        height: 46px;
    }


    .panier-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .panier-item img {
        width: 60px;
        height: 60px;
    }

    .panier-item-info {
        flex: 1;
        min-width: 0;
    }

    .panier-item-total {
        width: 100%;
        text-align: right;
        margin-top: 4px;
    }

    .panier-actions {
        flex-direction: column;
    }

    .coupon-row {
        flex-wrap: wrap;
    }

    .coupon-row input {
        width: 100%;
        margin-bottom: 8px;
    }

    .coupon-row button {
        width: 100%;
        padding: 10px;
    }

    .panier-page {
        padding: 15px;
    }

    .panier-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .panier-item img {
        width: 50px;
        height: 50px;
    }

    .panier-item-info h3 {
        font-size: 13px;
    }

    .panier-item-info .price-unit {
        font-size: 11px;
    }

    .panier-qty button {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .panier-item-total {
        font-size: 13px;
        min-width: auto;
    }

    .btn-continue,
    .btn-paiement {
        width: 100%;
        text-align: center;
    }

    .category-list {
        gap: 12px;
    }

    .category-item {
        flex: 1 1 45%;
        min-width: 140px;
        max-width: 100%;
    }

    .category-img,
    .category-img-placeholder {
        height: 120px;
    }

    .why-list {
        gap: 12px;
    }

    .why-item {
        flex: 1 1 45%;
        min-width: 140px;
        max-width: 100%;
    }

    .infos-grid {
        gap: 10px;
    }

    .info-bloc {
        flex: 1 1 45%;
        min-width: 140px;
    }

    .apropos-preview-inner,
    .qui-section,
    .contact-main {
        flex-direction: column;
    }

    .hero h1,
    .apropos-hero h1,
    .contact-hero h1 {
        font-size: 22px;
    }

    .hero {
        padding: 35px 16px;
    }

    .apropos-hero,
    .contact-hero {
        padding: 40px 16px;
    }

    .modal-box,
    .modal-content {
        width: 95%;
        padding: 16px;
    }

    footer {
        padding: 16px;
    }

    .footer-socials {
        gap: 16px;
        margin-bottom: 8px;
    }

    .footer-legal {
        gap: 10px;
        font-size: 11px;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .nav-left img {
        height: 48px;
    }

    .nav-center a {
        font-size: 11px;
        padding: 3px 6px;
    }

    .nav-right input[type="search"] {
        width: 70px;
    }

    .nav-right>a {
        font-size: 10px;
        padding: 4px 6px;
    }

    .catalogue-layout .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .catalogue-layout .product-card img {
        height: 110px;
    }

    .catalogue-layout .product-card h3 {
        font-size: 11px;
        margin: 6px 6px 3px;
        height: 28px;
        min-height: 28px;
        max-height: 28px;
    }

    .catalogue-layout .product-card .price {
        font-size: 11px;
        margin: 0 6px 6px;
    }

    .catalogue-layout .btn-add-cart {
        font-size: 10px;
        padding: 6px;
        margin: 0 6px 6px;
        width: calc(100% - 12px);
    }

    .featured-products .product-card {
        flex: 1 1 45%;
        max-width: calc(50% - 7px);
    }

    .product-card {
        width: auto;
        max-width: 100%;
    }

    .product-card img {
        height: 140px;
    }

    .category-item,
    .why-item,
    .info-bloc {
        flex: 1 1 100%;
    }

    .hero h1,
    .apropos-hero h1,
    .contact-hero h1 {
        font-size: 20px;
    }
}

/* ===== RECHERCHE MOBILE : ligne dédiée pleine largeur sous le logo ===== */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        row-gap: 10px;
        padding-bottom: 12px;
    }

    /* Les enfants de .nav-right deviennent des éléments directs de la nav */
    .nav-right {
        display: contents;
    }

    .nav-right > a:first-of-type {
        margin-left: auto;
    }

    .nav-right form {
        display: flex;
        order: 10;
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        padding: 3px 3px 3px 14px;
    }

    .nav-right input[type="search"] {
        width: auto;
        padding: 8px 6px 8px 0;
        font-size: 16px;
    }

    .nav-right form button {
        width: 36px;
        height: 36px;
        background-size: 16px 16px;
    }

    .search-results {
        border-radius: 12px;
        margin-top: 6px;
        box-shadow: 0 10px 24px rgba(4, 44, 83, 0.18);
    }
}

/* ===== ANIMATIONS D'APPARITION (accueil & à propos) ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}
