:root {
    --edit-bg: #fafaf7;
    --edit-bg-alt: #f0ede5;
    --edit-charcoal: #2d2d2d;
    --edit-red: #c41e3a;
    --edit-red-dark: #a01830;
    --edit-gold: #b8860b;
    --edit-text: #3a3a3a;
    --edit-text-muted: #888;
    --edit-border: #e0dcd3;
    --edit-transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --bs-body-bg: #fafaf7;
    --bs-body-color: #2d2d2d;
    --bs-link-color: #c41e3a;
    --bs-link-hover-color: #a01830;
    --bs-border-color: #e0dcd3;
}

body {
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background-color: var(--edit-bg);
    color: var(--edit-text);
}

#main { padding-top: 56px; }

.btn-primary,
.btn-success {
    --bs-btn-bg: var(--edit-red);
    --bs-btn-border-color: var(--edit-red);
    --bs-btn-hover-bg: var(--edit-red-dark);
    --bs-btn-hover-border-color: var(--edit-red-dark);
    --bs-btn-active-bg: var(--edit-red-dark);
    --bs-btn-active-border-color: var(--edit-red-dark);
}

.form-control:focus {
    border-color: var(--edit-red);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
}

.table-dark {
    --bs-table-bg: var(--edit-charcoal);
    --bs-table-border-color: #444;
}

.edit-hero { display: flex; min-height: 85vh; overflow: hidden; }

.edit-hero-text {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem;
    background: var(--edit-bg);
}

.edit-hero-image {
    flex: 0 0 60%;
    background: var(--edit-bg);
    position: relative;
}

.edit-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

.edit-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(to right, var(--edit-bg) 0%, transparent 15%),
        radial-gradient(ellipse 55% 40% at 100% 100%, rgba(0, 0, 0, 0.22) 0%, transparent 70%);
}

.edit-hero-title {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--edit-charcoal);
    letter-spacing: -0.02em;
}

.edit-hero-title span { color: var(--edit-red); }

.edit-hero-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--edit-text-muted);
    margin-top: 1.5rem;
}

.btn-edit-cta {
    display: inline-block;
    padding: 0.7rem 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--edit-charcoal);
    border: 1px solid var(--edit-charcoal);
    background: transparent;
    text-decoration: none;
    transition: var(--edit-transition);
    font-family: 'Segoe UI', sans-serif;
}

.btn-edit-cta:hover,
.btn-edit-cta:focus { background: var(--edit-charcoal); color: var(--edit-bg); }

.btn-edit-cta:focus-visible {
    outline: 2px solid var(--edit-red);
    outline-offset: 3px;
}

.edit-navbar {
    background: var(--edit-bg) !important;
    border-bottom: 1px solid var(--edit-border);
    transition: box-shadow 0.3s ease;
}

.edit-navbar.shadow-on { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }

.edit-navbar .navbar-brand {
    font-family: Georgia, serif;
    font-weight: 400;
    color: var(--edit-charcoal) !important;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.edit-navbar .nav-link {
    color: var(--edit-text-muted) !important;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.edit-navbar .nav-link[aria-current="page"] {
    color: var(--edit-charcoal) !important;
    font-weight: 600;
}

.edit-navbar .nav-link:hover,
.edit-navbar .nav-link:focus { color: var(--edit-red) !important; }

.edit-navbar .nav-link:focus-visible {
    outline: 2px solid var(--edit-red);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .edit-navbar .navbar-toggler.edit-hamburger-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0.5rem 0.65rem;
    }
}

.edit-navbar .dropdown-menu {
    border: 1px solid var(--edit-border);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.85rem;
}

.edit-navbar .dropdown-item:hover,
.edit-navbar .dropdown-item:focus {
    background: rgba(196, 30, 58, 0.08);
    color: var(--edit-red);
}

.edit-navbar .edit-nav-lang {
    font-size: 1.05rem;
}

.edit-navbar .edit-nav-lang .bi-globe2 {
    font-size: 1rem;
    vertical-align: -0.1em;
}

.edit-navbar .edit-nav-lang .edit-nav-lang-flags {
    margin-left: 0.2rem;
    font-size: 1rem;
    vertical-align: middle;
}

.edit-navbar .nav-link .bi-bag {
    font-size: 1.1rem;
    vertical-align: -0.1em;
}

.edit-nav-cart-badge {
    position: absolute;
    top: 2px;
    right: -6px;
    font-size: 0.6rem;
    font-weight: 600;
    background: var(--edit-red) !important;
    color: #fff;
    padding: 0.2em 0.45em;
    line-height: 1;
}

.edit-section { padding: 5rem 0; }

.edit-section-band {
    background: var(--edit-bg-alt);
    border-top: 1px solid var(--edit-border);
    border-bottom: 1px solid var(--edit-border);
}

.edit-section-title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--edit-charcoal);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: 0.02em;
}

.edit-section-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, var(--edit-red) 0%, var(--edit-gold) 100%);
    margin: 1rem auto 0;
    border-radius: 1px;
}

.edit-block {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 400px;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--edit-border);
    box-shadow: 0 4px 28px rgba(45, 45, 45, 0.07);
    transition: box-shadow 0.45s ease, border-color 0.35s ease;
}

.edit-block:hover {
    box-shadow: 0 16px 48px rgba(45, 45, 45, 0.11);
    border-color: rgba(184, 134, 11, 0.4);
}

.edit-block.reverse { flex-direction: row-reverse; }

.edit-block-image {
    flex: 0 0 55%;
    overflow: hidden;
    position: relative;
    background: #1a1a2e;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
    transition: clip-path 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.edit-block:hover .edit-block-image {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.edit-block-image a {
    display: block;
    height: 100%;
    min-height: 220px;
}

.edit-block-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.edit-block:hover .edit-block-image img { transform: scale(1.05); }

.edit-block-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    background: var(--edit-bg);
}

.edit-block-text h3 {
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--edit-charcoal);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    border-left: 3px solid var(--edit-red);
    padding-left: 0.85rem;
}

.edit-block-text p { color: var(--edit-text-muted); line-height: 1.7; }

.edit-carousel {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 2.75rem 1.5rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 237, 229, 0.5) 55%, rgba(250, 250, 247, 0.9) 100%);
    border: 1px solid var(--edit-border);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.edit-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 1rem;
    will-change: transform;
}

.edit-carousel-slide {
    flex: 0 0 auto;
}

.edit-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--edit-border);
    background: var(--edit-bg);
    color: var(--edit-charcoal);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--edit-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.edit-carousel-btn:hover {
    background: var(--edit-charcoal);
    color: var(--edit-bg);
}

.edit-carousel-prev { left: 0; }
.edit-carousel-next { right: 0; }

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

.edit-product-card {
    border: 1px solid var(--edit-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.edit-product-card:hover {
    box-shadow: 0 12px 36px rgba(196, 30, 58, 0.14);
    border-color: rgba(184, 134, 11, 0.5);
    transform: translateY(-5px);
}

.edit-product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 0.75rem;
}

.edit-product-card-body { padding: 0.75rem; }


.edit-product-name {
    font-size: 0.9rem;
    color: var(--edit-charcoal);
    margin-bottom: 0.25rem;
}

.edit-product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--edit-red);
    margin-bottom: 0.75rem;
}

.btn-edit-cta-sm {
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
}

.edit-testimonial {
    background: var(--edit-bg-alt);
    border-left: 3px solid var(--edit-gold);
    padding: 2rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.5rem;
}

.edit-testimonial p {
    font-style: italic;
    color: var(--edit-text);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.edit-testimonial cite {
    font-size: 0.85rem;
    color: var(--edit-gold);
    font-style: normal;
}

.edit-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.edit-reveal.visible { opacity: 1; transform: translateY(0); }
.edit-reveal.stagger-1 { transition-delay: 0.1s; }
.edit-reveal.stagger-2 { transition-delay: 0.25s; }
.edit-reveal.stagger-3 { transition-delay: 0.4s; }

.hamburger-icon { display: flex; flex-direction: column; gap: 5px; width: 24px; cursor: pointer; }

.hamburger-icon span {
    display: block;
    height: 2px;
    background: var(--edit-charcoal);
    border-radius: 2px;
    transition: var(--edit-transition);
}

.hamburger-icon.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.edit-footer {
    background: var(--edit-bg-alt);
    color: var(--edit-text-muted);
    font-size: 0.85rem;
    font-family: 'Segoe UI', sans-serif;
}

.edit-footer a { color: var(--edit-red); text-decoration: none; }
.edit-footer a:hover { text-decoration: underline; }

/* Connexion démo dans la navbar existante (edit-navbar) — styles minimaux */
.edit-nav-demo-wrap {
    position: relative;
    z-index: 1020;
}

.demo-quick-login {
    font-size: 0.75rem;
    line-height: 1.35;
    margin: 0;
    border: 0;
    text-align: center;
}

.demo-quick-login__summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
    color: var(--edit-text-muted);
    font-weight: 400;
    letter-spacing: 0.03em;
    user-select: none;
}

.demo-quick-login__summary::-webkit-details-marker { display: none; }
.demo-quick-login__summary::marker { content: ''; }

.demo-quick-login__summary:hover {
    color: var(--edit-charcoal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.demo-quick-login[open] .demo-quick-login__summary { margin-bottom: 0.25rem; }

.demo-quick-login__panel {
    padding: 0.35rem 0 0;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--edit-border);
}

.demo-quick-login__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.demo-quick-login__form { display: inline; margin: 0; padding: 0; }

.demo-quick-login__sep {
    color: var(--edit-text-muted);
    opacity: 0.45;
    margin: 0 0.25rem;
    user-select: none;
    font-size: 0.7rem;
}

.demo-quick-login__btn {
    margin: 0;
    padding: 0.1rem 0.15rem;
    border: 0;
    background: none;
    color: var(--edit-text-muted);
    font: inherit;
    font-size: 0.75rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    border-radius: 0.25rem;
}

.demo-quick-login__btn:hover { color: var(--edit-red); }

.demo-quick-login__btn:focus-visible {
    outline: 2px solid var(--edit-gold);
    outline-offset: 2px;
}

.edit-navbar .demo-quick-login--navbar .demo-quick-login__panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 0.2rem;
    z-index: 1050;
    min-width: min(100vw - 2rem, 18rem);
    max-width: calc(100vw - 2rem);
    padding: 0.45rem 0.6rem 0.55rem;
    text-align: center;
    border: 1px solid var(--edit-border);
    border-radius: 0.375rem;
    background: var(--edit-bg);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
}
