:root {
    --black: #000000;
    --black-soft: #0a0a0a;
    --black-card: #111111;
    --gray-dark: #1a1a1a;
    --gray: #888888;
    --gray-light: #cccccc;
    --gray-border: #333333;
    --white: #ffffff;
    --accent: #c3d200;
    --accent-light: #d9e566;
    --accent-dark: #a0b000;
    --accent-glow: rgba(195, 210, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.2s ease;
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 35px 90px rgba(195, 210, 0, 0.15);
    --card-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: linear-gradient(145deg, #000000 0%, #0c0c0c 50%, #000000 100%);
    color: var(--white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Hero Section avec image de fond - Sans overlay noir */
.hero-modulnova {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: -90px;
    padding-top: 90px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    isolation: isolate;
    padding-bottom: 4rem;
    padding-left: 4rem;
    padding-right: 0;
}

.hero-modulnova img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    padding: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-title span {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-by-dubois {
    font-size: 0.4em;
    font-weight: 300;
    font-style: italic;
    color: var(--accent, #c3d200);
    letter-spacing: 0.2em;
    white-space: nowrap;
    text-transform: none;
    line-height: 1;
    align-self: flex-end;
    margin-top: 0.2em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.hero-modulnova .overlay-decoration {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.hero-modulnova .overlay-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(195, 210, 0, 0.4) 20%, 
        rgba(195, 210, 0, 0.8) 50%, 
        rgba(195, 210, 0, 0.4) 80%, 
        transparent 100%);
    opacity: 0.4;
    animation: glowLine 4s ease-in-out infinite alternate;
}

@keyframes glowLine {
    0% { opacity: 0.2; }
    100% { opacity: 0.4; }
}

/* Products Grid - Design Premium */
.products-classic {
    padding: 6rem 0 10rem;
    background: 
        radial-gradient(circle at 0% 0%, rgba(195, 210, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        linear-gradient(145deg, var(--black-soft) 0%, #080808 100%);
    position: relative;
}

.products-classic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--gray-border) 50%, 
        transparent 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 3rem;
    position: relative;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-card {
    background: linear-gradient(145deg, 
        rgba(17, 17, 17, 0.9) 0%, 
        rgba(26, 26, 26, 0.7) 100%);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.02),
        rgba(195, 210, 0, 0.1));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(195, 210, 0, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-visual {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(145deg, 
        rgba(26, 26, 26, 0.9) 0%, 
        rgba(34, 34, 34, 0.7) 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.95);
    position: relative;
    z-index: 1;
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        transparent 100%
    );
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2.5rem;
    z-index: 2;
    pointer-events: none;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-btn {
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.view-btn:hover {
    background: var(--accent);
    transform: translateY(0) scale(1.05);
}

.view-btn::after {
    content: '→';
    font-size: 1.2em;
    font-weight: 300;
    transition: transform 0.4s ease;
}

.view-btn:hover::after {
    transform: translateX(5px);
}

.product-card:hover .view-btn {
    transform: translateY(0);
    opacity: 1;
}

.product-content {
    padding: 2.2rem;
    text-align: center;
    position: relative;
}

.product-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2.2rem;
    right: 2.2rem;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
}

.product-name {
    font-size: 1.8rem;
    color: var(--white);
    margin: 0 0 0.5rem 0;
    transition: var(--transition);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.product-subtitle {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

.product-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.product-date-badge i {
    color: var(--accent);
}

/* Pagination - Design Premium */
.pagination-classic {
    margin-top: 8rem;
    text-align: center;
    position: relative;
}

.pagination-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--gray-border);
    padding: 0.8rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.pagination-item {
    list-style: none;
    position: relative;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    padding: 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-light);
    text-decoration: none;
    border: 1px solid transparent;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
}

.pagination-link:hover {
    color: var(--accent);
    border-color: rgba(195, 210, 0, 0.3);
    background: rgba(195, 210, 0, 0.05);
}

.pagination-link.active {
    color: var(--white);
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    border-color: var(--accent);
}

.pagination-arrow {
    color: var(--gray-light);
    background: transparent !important;
}

.pagination-arrow:hover {
    color: var(--accent);
    border-color: transparent;
    background: transparent !important;
}

.pagination-ellipsis {
    color: var(--gray);
    padding: 0 0.8rem;
    user-select: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    height: 3rem;
}

.pagination-info {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.pagination-total {
    color: var(--accent);
    font-weight: 600;
    background: rgba(195, 210, 0, 0.1);
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(195, 210, 0, 0.2);
}

.pagination-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* CTA Section - Design Épuré et Élégant */
.cta-rdv-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #030303 100%);
    position: relative;
    border-top: 1px solid rgba(195, 210, 0, 0.15);
    border-bottom: 1px solid rgba(195, 210, 0, 0.15);
}

.cta-rdv-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.cta-rdv-wrapper {
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid rgba(195, 210, 0, 0.2);
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cta-rdv-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent) 50%, 
        transparent 100%);
    opacity: 0.6;
}

.cta-rdv-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(195, 210, 0, 0.3) 50%, 
        transparent 100%);
}

.cta-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--white);
    margin-bottom: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.cta-title span {
    color: var(--accent);
    font-weight: 600;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.01em;
}

.cta-group {
    display: flex;
    gap: 1.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.cta-rdv-wrapper .decor-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    opacity: 0.3;
}

.cta-rdv-wrapper .decor-dot-1 {
    top: 30px;
    left: 40px;
}

.cta-rdv-wrapper .decor-dot-2 {
    top: 60px;
    right: 50px;
}

.cta-rdv-wrapper .decor-dot-3 {
    bottom: 40px;
    left: 80px;
}

.cta-rdv-wrapper .decor-dot-4 {
    bottom: 70px;
    right: 100px;
}

.product-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
    
    .products-grid {
        gap: 2.5rem;
    }
    
    .product-visual {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-modulnova {
        min-height: 80vh;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
        gap: 2.5rem;
    }
    
    .product-visual {
        height: 450px;
    }
    
    .cta-rdv-wrapper {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-modulnova {
        min-height: 70vh;
        padding: 0 0 2rem 2rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin: 2rem auto 0;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .product-visual {
        height: 350px;
    }
    
    .product-content {
        padding: 1.8rem;
    }
    
    .product-name {
        font-size: 1.6rem;
    }
    
    .pagination-container {
        padding: 0.6rem 1.2rem;
        flex-wrap: wrap;
    }
    
    .pagination-link {
        min-width: 2.6rem;
        height: 2.6rem;
        font-size: 0.85rem;
    }
    
    .cta-rdv-section {
        padding: 4rem 0;
    }
    
    .cta-rdv-wrapper {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .cta-group {
        gap: 1rem;
    }
    
    .cta-group .thm-btn {
        padding: 14px 28px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-modulnova {
        min-height: 60vh;
        padding: 0 0 1.5rem 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 1.5rem auto 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title strong::after {
        width: 100px;
    }
    
    .product-visual {
        height: 280px;
    }
    
    .product-name {
        font-size: 1.4rem;
    }
    
    .view-btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.75rem;
    }
    
    .cta-rdv-section {
        padding: 3rem 0;
    }
    
    .cta-rdv-wrapper {
        padding: 2rem 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cta-group .thm-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.8rem;
    }
}

/* Message vide */
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.empty-text {
    color: var(--gray-light);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ====================================
   SOUS-CATÉGORIES GRID
   ==================================== */
.subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.subcat-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #111111;
    text-decoration: none;
    display: block;
}

.subcat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.subcat-card:hover img {
    transform: scale(1.05);
}

.subcat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    transition: all 0.3s ease;
}

.subcat-card:hover .subcat-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
}

.subcat-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

.subcat-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.subcat-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.subcat-card:hover .subcat-card-link {
    opacity: 1;
    transform: translateY(0);
}

.subcat-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcat-card-placeholder svg {
    opacity: 0.2;
}

@media (max-width: 768px) {
    .subcat-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
    .subcat-grid { grid-template-columns: 1fr; }
}

/* ====================================
   DESCRIPTION HTML (Quill)
   ==================================== */
.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.hero-description p {
    margin-bottom: 0.8rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-description p:empty,
.hero-description br:only-child {
    display: none;
}

.hero-description strong,
.hero-description b {
    color: #ffffff;
    font-weight: 700;
}

.hero-description em,
.hero-description i {
    font-style: italic;
}

.hero-description u {
    text-decoration: underline;
}

.hero-description ul,
.hero-description ol {
    text-align: left;
    display: inline-block;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.hero-description ul {
    list-style-type: disc;
}

.hero-description ol {
    list-style-type: decimal;
}

.hero-description li {
    margin-bottom: 0.3rem;
    list-style: inherit;
    display: list-item;
}

.hero-description a {
    color: var(--accent);
    text-decoration: underline;
}

.hero-description a:hover {
    color: #ffffff;
}
