/* Explain: Styling for UI components, product description formatting, and animations. */
.swatch-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    background: rgba(163, 51, 70, 0.06);
    color: var(--primary-color);
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.paint-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: currentColor;
}

.btn-paint-primary {
    min-height: 3.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(163, 51, 70, 0.25);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1), background 300ms ease;
}

.btn-paint-primary:hover,
.btn-paint-primary:focus-visible {
    background: var(--primary-hover);
    box-shadow: 0 12px 25px rgba(163, 51, 70, 0.35);
    transform: translateY(-2px);
}

.btn-paint-secondary {
    min-height: 3.5rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 300ms ease, transform 300ms ease, border-color 300ms ease;
}

.btn-paint-secondary:hover,
.btn-paint-secondary:focus-visible {
    background: rgba(31, 35, 54, 0.04);
    border-color: rgba(31, 35, 54, 0.2);
    transform: translateY(-2px);
}

.hero-photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--secondary-color);
    box-shadow: var(--shadow-soft);
}

.hero-photo-frame::before {
    content: '';
    position: absolute;
    inset: 1rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: calc(var(--radius-xl) - 0.5rem);
    pointer-events: none;
}

.hero-photo-frame::after {
    content: '';
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    z-index: -1;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at bottom right, rgba(163, 51, 70, 0.12), transparent 60%);
    pointer-events: none;
}

.service-swatch-card {
    position: relative;
    overflow: hidden;
    min-height: 19rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    box-shadow: var(--shadow-card);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.service-swatch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(61, 64, 91, 0.18);
}

.service-swatch-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 8.5rem;
    background: var(--card-color, var(--primary-color));
}

.service-icon-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.35rem;
    background: rgba(244, 241, 222, 0.92);
    color: var(--secondary-color);
    box-shadow: 0 14px 26px rgba(37, 40, 61, 0.18);
}

.gallery-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    box-shadow: var(--shadow-card);
}

.gallery-card img {
    height: 100%;
    min-height: 18rem;
    object-fit: cover;
    transition: transform 420ms ease;
}

.gallery-card:hover img {
    transform: scale(1.045);
}

.quote-sticky {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5rem);
    transition: opacity 240ms ease, transform 240ms ease;
}

.quote-sticky-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.quote-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    overflow-y: auto;
    background: rgba(37, 40, 61, 0.92);
    backdrop-filter: blur(18px);
}

.quote-panel {
    border: 1px solid rgba(244, 241, 222, 0.24);
    border-radius: var(--radius-xl);
    background: var(--eggshell-color);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.form-field label {
    margin-bottom: 0.45rem;
    color: var(--secondary-color);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field .input,
.form-field .select {
    min-height: 3.25rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: rgba(255, 250, 240, 0.88);
    color: var(--text-color);
}

.quote-status {
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    font-weight: 700;
}

.quote-status-success {
    background: rgba(129, 178, 154, 0.18);
    color: #315f47;
}

.quote-status-error {
    background: rgba(224, 122, 95, 0.16);
    color: #8f321f;
}

/* Rich text for blog */
.rich-text-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.rich-text-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.rich-text-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.rich-text-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.rich-text-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.rich-text-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(185, 43, 65, 0.05);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
    color: var(--secondary-color);
}

.rich-text-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Résumé produit mis en forme (fidèle aux sauts de ligne du contenu) */
.card-summary {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.7;
}

.card-summary * {
    font-family: var(--font-body) !important;
    color: inherit !important;
    background: transparent !important;
}

.card-summary p {
    margin: 0 0 0.5rem !important;
    text-align: left;
    hyphens: none;
}

.card-summary ul,
.card-summary ol {
    margin: 0 0 0.5rem !important;
    padding-left: 1.1rem;
}

.card-summary li {
    text-align: left;
    margin-bottom: 0.2rem;
}

.card-summary strong,
.card-summary b {
    font-weight: 700;
}

/* ---- Motion & reveal ---- */
@keyframes novFloatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes novDrift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(16px, -24px, 0); }
}

.reveal {
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(28px);
}

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

.animate-float-y {
    animation: novFloatY 7s ease-in-out infinite;
}

.animate-drift {
    animation: novDrift 13s ease-in-out infinite;
}

.animate-drift-slow {
    animation: novDrift 19s ease-in-out infinite;
}

.perk-row {
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.perk-row:hover {
    border-color: rgba(163, 51, 70, 0.3);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
    .animate-float-y,
    .animate-drift,
    .animate-drift-slow {
        animation: none;
    }

    .reveal,
    .reveal-ready .reveal,
    .reveal-ready .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---- Fenêtre livret gratuit (collection Oser dire non) ---- */
.guide-widget {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 45;
    width: min(19rem, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(2rem);
    pointer-events: none;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-widget-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.guide-widget-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(252, 250, 250, 0.9);
    color: var(--secondary-color);
    box-shadow: 0 6px 16px rgba(31, 35, 54, 0.2);
    cursor: pointer;
    transition: background 240ms ease, transform 240ms ease;
}

.guide-widget-close:hover,
.guide-widget-close:focus-visible {
    background: var(--surface-strong);
    transform: scale(1.06);
}

.guide-widget-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.guide-widget-body {
    padding: 1.1rem 1.25rem 1.35rem;
}

.guide-widget-eyebrow {
    margin: 0 0 0.35rem;
    color: var(--primary-color);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: left;
}

.guide-widget-title {
    margin: 0 0 0.45rem;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
}

.guide-widget-text {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
}

.guide-widget-btn {
    width: 100%;
    min-height: 2.9rem;
    padding-inline: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .guide-widget {
        left: 0.6rem;
        right: 0.6rem;
        bottom: 0.6rem;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide-widget {
        transition: none;
    }
}

/* ---- Description produit : rendu fidèle à la mise en page saisie ---- */
.product-desc {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* Taille de police uniforme pour toutes les fiches produit */
.product-desc p,
.product-desc div,
.product-desc li,
.product-desc span,
.product-desc font,
.product-desc strong,
.product-desc b,
.product-desc em,
.product-desc i,
.product-desc u,
.product-desc a,
.product-desc small {
    font-size: inherit !important;
}

.product-desc p,
.product-desc div {
    margin: 0 0 1.1rem;
}

.product-desc h1,
.product-desc h2,
.product-desc h3,
.product-desc h4,
.product-desc h5,
.product-desc h6 {
    margin: 1.9rem 0 0.9rem;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
}

.product-desc h1 {
    font-size: 1.9rem;
}

.product-desc h2 {
    font-size: 1.65rem;
}

.product-desc h3 {
    font-size: 1.35rem;
}

.product-desc h4 {
    font-size: 1.15rem;
}

.product-desc ul {
    list-style: disc;
    padding-left: 1.4rem;
    margin: 0 0 1.1rem;
}

.product-desc ol {
    list-style: decimal;
    padding-left: 1.4rem;
    margin: 0 0 1.1rem;
}

.product-desc li {
    margin-bottom: 0.35rem;
}

.product-desc strong,
.product-desc b {
    color: var(--secondary-color);
    font-weight: 700;
}

.product-desc a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-desc img,
.product-desc iframe,
.product-desc video {
    max-width: 100%;
    height: auto;
}

.product-desc img {
    border-radius: var(--radius-lg);
}

/* Masque la barre de défilement des galeries produits */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ---- Description produit : aucun espace résiduel en fin de bloc ---- */
.product-desc > *:last-child {
    margin-bottom: 0 !important;
}

.product-desc hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}
