/* =====================================================================
   Thème Amy Senteur : couleurs, typographie, en-tête et pied de page.
   Chargé après style.css ; les règles préfixées par « body » passent
   devant les styles écrits directement dans les pages.
   ===================================================================== */

:root {
    --amy-ink: #1f1a17;
    --amy-ink-soft: #3a332e;
    --amy-muted: #6f655c;
    --amy-bg: #faf7f2;
    --amy-surface: #ffffff;
    --amy-cream: #f4ede2;
    --amy-line: #e9e1d5;
    --amy-gold: #b5852a;
    --amy-gold-dark: #8f6719;
    --amy-gold-light: #f3e6c8;
    --amy-success: #2f7d4f;
    --amy-warning: #a86a12;
    --amy-danger: #b4372f;
    --amy-radius: 14px;
    --amy-radius-sm: 10px;
    --amy-shadow: 0 1px 2px rgba(31, 26, 23, .05), 0 8px 24px rgba(31, 26, 23, .06);
    --amy-shadow-hover: 0 2px 4px rgba(31, 26, 23, .06), 0 16px 36px rgba(31, 26, 23, .12);
    --amy-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --amy-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
html body {
    background: var(--amy-bg);
    color: var(--amy-ink);
    font-family: var(--amy-sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body h1, body h2, body h3, body .h1, body .h2, body .h3 {
    font-family: var(--amy-serif);
    color: var(--amy-ink);
    letter-spacing: -.01em;
}

body a { color: var(--amy-gold-dark); }
body a:hover { color: var(--amy-ink); }

body :focus-visible {
    outline: 2px solid var(--amy-gold);
    outline-offset: 2px;
}

body .btn { border-radius: 999px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
body .btn-dark, body .btn-primary {
    background: var(--amy-ink); border-color: var(--amy-ink); color: #fff;
}
body .btn-dark:hover, body .btn-primary:hover {
    background: var(--amy-gold-dark); border-color: var(--amy-gold-dark); color: #fff;
}
body .breadcrumb a { color: var(--amy-muted); text-decoration: none; }
body .breadcrumb a:hover { color: var(--amy-ink); text-decoration: underline; }

/* ---------- Bandeau d'informations ---------- */
.announce-bar {
    background: var(--amy-ink);
    color: #efe6d6;
    font-size: .8rem;
    letter-spacing: .02em;
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    padding: .5rem 1rem;
    text-align: center;
}
.announce-bar i { color: var(--amy-gold-light); margin-right: .35rem; }

/* ---------- En-tête ---------- */
body header.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--amy-line);
    box-shadow: none;
    color: var(--amy-ink);
}

.site-header .top-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: .7rem 1.5rem;
    min-height: 72px;
}

.site-header .logo-container {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    flex: 0 0 auto;
}
.site-header .logo-img {
    border-radius: 50%;
    object-fit: contain;
}
.site-header .logo-text {
    font-family: var(--amy-serif);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--amy-ink);
    letter-spacing: -.01em;
    white-space: nowrap;
}

.site-header .search-container,
.site-header .search-mobile {
    position: relative;
    align-items: center;
}
.site-header .search-container { flex: 1; max-width: 520px; margin: 0 auto; }
.site-header .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--amy-muted);
    font-size: .9rem;
    pointer-events: none;
}
.site-header #searchInput,
.site-header #searchInputMobile {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 1rem 0 2.6rem;
    border: 1px solid var(--amy-line);
    border-radius: 999px;
    background: var(--amy-bg);
    color: var(--amy-ink);
    font-size: .92rem;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.site-header #searchInput:focus,
.site-header #searchInputMobile:focus {
    outline: none;
    background: #fff;
    border-color: var(--amy-gold);
    box-shadow: 0 0 0 3px rgba(181, 133, 42, .15);
}
.site-header .search-mobile { display: flex; padding: 0 1rem .75rem; }
.site-header .search-mobile .search-icon { left: 2rem; top: calc(50% - .375rem); }

.suggestions-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--amy-line);
    border-radius: var(--amy-radius-sm);
    box-shadow: var(--amy-shadow);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    color: var(--amy-ink);
}
.suggestions-box { max-height: 440px; padding: 6px; }
.suggestions-box--mobile { left: 1rem; right: 1rem; top: calc(100% - .75rem + 6px); }
.suggestion-produit {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .55rem;
    border-radius: 8px;
    color: var(--amy-ink);
    text-decoration: none;
}
.suggestion-produit:hover,
.suggestion-produit.is-active,
.suggestion-tous:hover,
.suggestion-tous.is-active { background: var(--amy-cream); color: var(--amy-ink); }
.suggestion-image {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--amy-line);
    background: #fff;
    object-fit: contain;
}
span.suggestion-image { background: var(--amy-cream); }
.suggestion-nom {
    flex: 1;
    min-width: 0;
    font-size: .9rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.suggestion-prix { flex: 0 0 auto; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.suggestion-prix s { color: #a39a91; font-weight: 400; margin-right: .35rem; font-size: .8rem; }
.suggestion-tous {
    display: block;
    margin-top: 4px;
    padding: .65rem .55rem;
    border-top: 1px solid var(--amy-line);
    border-radius: 0 0 8px 8px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--amy-gold-dark);
    text-decoration: none;
}
.suggestion-vide { padding: .75rem .6rem; font-size: .88rem; color: var(--amy-ink-soft); }

.site-header .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}
.site-header .nav-menu a {
    position: relative;
    color: var(--amy-ink-soft);
    font-size: .93rem;
    font-weight: 500;
    text-decoration: none;
    padding: .4rem 0;
}
.site-header .nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: var(--amy-gold);
    transition: width .25s ease;
}
.site-header .nav-menu a:hover { color: var(--amy-ink); }
.site-header .nav-menu a:hover::after { width: 100%; }

.site-header .user-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
    margin-left: auto;
}
.site-header .desktop-nav + .user-actions { margin-left: 0; }
.site-header .user-actions .action-button,
.site-header .user-actions summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--amy-ink);
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
    transition: background .2s;
}
.site-header .user-actions summary::-webkit-details-marker { display: none; }
.site-header .user-actions .action-button:hover,
.site-header .user-actions summary:hover,
.site-header .user-dropdown[open] summary { background: var(--amy-cream); color: var(--amy-ink); }

.site-header .user-dropdown { position: relative; }
.site-header .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + .6rem);
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--amy-line);
    border-radius: var(--amy-radius);
    box-shadow: var(--amy-shadow-hover);
    overflow: hidden;
    z-index: 1000;
}
.site-header .user-dropdown[open] .dropdown-content { display: block; }
.site-header .dropdown-content a,
.site-header .dropdown-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1.1rem;
    color: var(--amy-ink);
    font-size: .92rem;
    text-decoration: none;
}
.site-header .dropdown-header { background: var(--amy-bg); font-weight: 600; border-bottom: 1px solid var(--amy-line); }
.site-header .dropdown-content a:hover { background: var(--amy-bg); color: var(--amy-gold-dark); }
.site-header .dropdown-content a i { width: 1rem; text-align: center; color: var(--amy-muted); }
.site-header .dropdown-content { min-width: 280px; padding: .35rem 0; }
.site-header .dropdown-content > a { padding: .7rem 1.2rem; }
/* Client connecté : initiale du prénom dans l'icône */
.site-header .user-icon-connecte .user-initiale {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 999px;
    background: var(--amy-ink); color: #fff; font-size: .9rem; font-weight: 600;
}
.site-header .dropdown-profil {
    display: flex; align-items: center; gap: .8rem;
    padding: .9rem 1.2rem 1rem; margin-bottom: .35rem; border-bottom: 1px solid var(--amy-line);
}
.site-header .dropdown-avatar {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 999px;
    background: var(--amy-gold-light); color: var(--amy-gold-dark); font-weight: 700; font-size: 1.1rem;
}
.site-header .dropdown-identite { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.site-header .dropdown-identite strong { font-size: .95rem; color: var(--amy-ink); }
.site-header .dropdown-identite small { color: var(--amy-muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header .dropdown-badge {
    margin-left: auto; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px;
    background: var(--amy-ink); color: #fff; font-size: .72rem; font-weight: 600; line-height: 1.4rem; text-align: center;
}
.site-header .dropdown-content a.dropdown-deconnexion { margin-top: .35rem; border-top: 1px solid var(--amy-line); color: #a33a2b; }
.site-header .dropdown-content a.dropdown-deconnexion i { color: #a33a2b; }
.site-header .dropdown-invite { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1.2rem 1rem; border-bottom: 1px solid var(--amy-line); }
.site-header .dropdown-invite strong { font-size: .95rem; color: var(--amy-ink); }
.site-header .dropdown-invite small { color: var(--amy-muted); font-size: .8rem; line-height: 1.35; margin-bottom: .4rem; }
.site-header .dropdown-content a.dropdown-btn {
    display: block; text-align: center; padding: .6rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.site-header .dropdown-content a.dropdown-btn-plein { background: var(--amy-ink); color: #fff; }
.site-header .dropdown-content a.dropdown-btn-plein:hover { background: var(--amy-ink-soft); color: #fff; }
.site-header .dropdown-content a.dropdown-btn-contour { border: 1px solid var(--amy-ink); color: var(--amy-ink); }
.site-header .dropdown-content a.dropdown-btn-contour:hover { background: var(--amy-bg); color: var(--amy-ink); }
.site-header .dropdown-content a.dropdown-promo {
    margin: .5rem 1.2rem .35rem; padding: .55rem .8rem; border-radius: 8px;
    background: var(--amy-gold-light); color: var(--amy-gold-dark); font-weight: 600; font-size: .85rem;
}
.site-header .dropdown-content a.dropdown-promo i { color: var(--amy-gold-dark); }

.site-header .cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--amy-gold);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.site-header .mobile-menu-btn {
    background: none;
    border: 0;
    color: var(--amy-ink);
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}
.site-header .mobile-menu-btn:hover { background: var(--amy-cream); }

.site-header #mobileNav { border-top: 1px solid var(--amy-line); background: #fff; }
.site-header .mobile-nav-menu { list-style: none; margin: 0; padding: .5rem 1rem 1rem; }
.site-header .mobile-nav-menu a {
    display: block;
    padding: .75rem .25rem;
    color: var(--amy-ink);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--amy-line);
}
.site-header .mobile-nav-menu li:last-child a { border-bottom: 0; }

@media (max-width: 991.98px) {
    .site-header .top-bar { padding: .55rem 1rem; gap: .5rem; min-height: 62px; }
    .site-header .logo-container { margin: 0 auto; }
    .site-header .user-actions { margin-left: 0; }
    .site-header .logo-text { font-size: 1.3rem; }
    .site-header .logo-img { width: 46px; height: 46px; }
}

@media (max-width: 480px) {
    .announce-bar { font-size: .75rem; }
    .site-header .dropdown-content {
        position: fixed;
        left: .75rem;
        right: .75rem;
        top: auto;
        bottom: .75rem;
        min-width: auto;
    }
}

/* ---------- Bloc de réassurance ---------- */
body .confiance { background: var(--amy-cream); padding: 56px 4%; margin-top: 40px; }
body .confiance h2 { font-size: 1.9rem; font-weight: 600; margin-bottom: 32px; }
body .confiance-item {
    background: transparent;
    border-radius: 0;
    padding: 8px 12px;
}
body .confiance-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #fff;
    color: var(--amy-gold);
    font-size: 1.25rem;
    margin-bottom: 14px;
}
body .confiance-item h3 { font-family: var(--amy-sans); font-size: .98rem; font-weight: 600; }
body .confiance-item p { color: var(--amy-muted); }

/* ---------- Pied de page ---------- */
body footer {
    background: var(--amy-ink);
    color: #cfc6b8;
    padding: 64px 0 24px;
    margin-top: 0;
}
body footer .footer-content { gap: 40px; }
body footer .footer-column h3 {
    font-family: var(--amy-serif);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 18px;
}
body footer .footer-column h3::after,
body footer .footer-column h3:after { background: var(--amy-gold); width: 32px; height: 2px; }
body footer .footer-column ul { padding-left: 0; list-style: none; }
body footer .footer-column ul li { margin-bottom: 10px; }
body footer .footer-column ul li a,
body footer .footer-column p a { color: #cfc6b8; text-decoration: none; }
body footer .footer-column ul li a:hover { color: #fff; padding-left: 0; }
body footer .footer-column p { color: #cfc6b8; }
body footer .social-icons a {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 999px;
}
body footer .social-icons a:hover { background: var(--amy-gold); }
body footer .newsletter input {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    border-radius: 999px;
    padding: 11px 16px;
}
body footer .newsletter input::placeholder { color: #a99f91; }
body footer .newsletter button {
    background: var(--amy-gold);
    background-image: none;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 600;
}
body footer .newsletter button:hover { background: var(--amy-gold-dark); }
body footer .newsletter-mention, body footer .newsletter-mention a { color: #a99f91; }
body footer .copyright { border-top: 1px solid rgba(255, 255, 255, .1); color: #a99f91; }
body footer .copyright p { color: #a99f91; }

/* ---------- Divers ---------- */
body .badge { font-weight: 600; letter-spacing: .01em; }
body .form-control:focus, body .form-select:focus {
    border-color: var(--amy-gold);
    box-shadow: 0 0 0 3px rgba(181, 133, 42, .15);
}

/* ===== Autocomplétion des adresses (checkout) ===== */
.adresse-ac { position: relative; }
.adresse-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    margin: 4px 0 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--amy-line);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(31, 26, 23, .12);
    max-height: 280px;
    overflow-y: auto;
}
.adresse-suggestions li {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: .55rem .7rem;
    border-radius: 7px;
    cursor: pointer;
}
.adresse-suggestions li:hover,
.adresse-suggestions li[aria-selected="true"] { background: var(--amy-cream); }
.adresse-suggestion-titre { font-size: 14px; color: var(--amy-ink); font-weight: 500; }
.adresse-suggestion-detail { font-size: 12.5px; color: #7a6f66; }
