/* OAcom Template - Blog Category Styles */

#logoa svg {fill:#FFF;}

/* ========================================
   FONTS - Now loaded dynamically from MyUI
   ======================================== */
/* Google Fonts removed - fonts are loaded dynamically from MyUI component */

/* Polices personnalisées - à remplacer par vos vraies polices */
@font-face {
    font-family: 'Gothiks';
    src:         url('fonts/Gothiks-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Meutas Medium';
    src:         url('fonts/Meutas-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Meutas Medium';
    src:         url('fonts/Meutas-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'New Atten';
    src:         url('fonts/NewAtten-Book.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'New Atten';
    src:         url('fonts/NewAtten-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'New Atten';
    src:         url('fonts/NewAtten-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

h2 {    font-family: PolicePrincipale !important;}

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    /* Colors */
    --color-primary: #FFC635;
    --color-dark: #4A5458;
    --color-light: #D4CFC1;
    --color-light-alt: #D3CFC1;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-beige: #AAA491;
    --color-bg: #CDCDCD;

    /* Typography */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Gothiks', 'Georgia', serif;
    --font-display: 'Meutas', 'Georgia', serif;
    --font-text: 'New Atten', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacings */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    --spacing-xxxl: 8rem;

    /* Container */
    --container-max: 1920px;
    --container-padding: 2rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 5px 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 10px 10px 40px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 20px;
    --radius-full: 50px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-dark);
    background-color: var(--color-bg);
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container--fluid {
    max-width: none;
    padding: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: calc(100vh - 183px);
    display: flex;
    align-items: center;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

.hero__bg-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    bottom: 0;
    background-color: var(--color-light);
    background-image: url('/images/maj/413eacfbb03b509dd7e3fa2a0b5030242f610297.png');
    background-size: cover;
    background-position: 0 0;
    background-attachment: fixed;
    z-index: 50;
    pointer-events: none;
}

.hero__title_background {
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    height: 45vh;
    max-height: 45vh;
    background-color: var(--color-light);
    background-image: url('/images/maj/413eacfbb03b509dd7e3fa2a0b5030242f610297.png');
    background-size: cover;
    background-position: 0 0;
    background-attachment: fixed;
    z-index: 9999;
    pointer-events: none;
    will-change: opacity;
}

.hero__title_background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-light);
    mix-blend-mode: soft-light;
    opacity: 0.6;
}

.hero__card_mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    height: 45vh;
    background-color: var(--color-light);
    background-image: url('/images/maj/413eacfbb03b509dd7e3fa2a0b5030242f610297.png');
    background-size: cover;
    background-position: 0 0;
    background-attachment: fixed;
    z-index: 9998;
    pointer-events: none;
}

.hero__card_mask::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-light);
    mix-blend-mode: soft-light;
    opacity: 0.6;
}

.hero__description {
    position: relative;
    z-index: 100;
    margin-bottom: 2rem;
}
.hero__description h2 {margin-top:3rem;margin-bottom:1rem;}

.hero__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-light);
    mix-blend-mode: soft-light;
    opacity: 0.6;
}

.hero__title_wrapper {
    position: fixed;
    max-width: 40%;
    z-index: 10000;
    will-change: transform;
}

.hero__wrapper {
    padding-top: 35vh;
    position: relative;
    z-index: 100;
}

.hero__wrapper article {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    top: 50vh;
    z-index: 100;
}

/* NOTE: .hero__bg-right uses a dynamic category image set via PHP in the template.
   background-image must be set inline in the PHP template or via JavaScript. */
.hero__bg-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero__content {
    position: relative;
    width: 100%;
    max-width: calc(var(--container-max) * 0.75);
    margin: 0;
    padding: var(--spacing-xxxl) 0;
    padding-left: calc(8.333% + 140px);
}

.hero__divider {
    width: 246px;
    height: 1px;
    background: var(--color-white);
    margin: var(--spacing-xl) 0;
}

.hero__title_wrapper .hero__divider:last-child {
    margin-bottom: 0;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 88.91px);
    line-height: 1;
    color: var(--color-white);
    margin: var(--spacing-xl) 0;
    transition: opacity 0.3s ease;
}

.hero__description {
    font-family: var(--font-text);
    font-weight: 300;
    font-size: 22px;
    line-height: 1.2;
    color: var(--color-black);
    max-width: 511px;
    padding-bottom: 5rem;
}

.hero__description p {
    margin-bottom: var(--spacing-md);
}

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

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products {
    position: relative;
    padding: var(--spacing-xxxl) 0;
    margin-top: -100px;
    z-index: 5;
}

article {max-width: 450px;}

.products__slider {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: var(--spacing-lg);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-dark) transparent;
}

.products__slider::-webkit-scrollbar {
    height: 8px;
}

.products__slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
}

.products__slider::-webkit-scrollbar-thumb {
    background: var(--color-dark);
    border-radius: var(--radius-sm);
}

/* Product Card */
.product-card {
    flex: 0 0 350px;
    min-width: 350px;
    height: 400px;
    background: rgba(255, 255, 255, 1);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card__favorite {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 34px;
    height: 34px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.product-card__favorite:hover {
    transform: scale(1.1);
}

.product-card__favorite:active {
    transform: scale(0.95);
}

.product-card__image {
    width: 100%;
    height: 153px;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
}

.product-card__title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.product-card__subtitle {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    color: var(--color-beige);
    text-transform: uppercase;
    letter-spacing: 4.8px;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.product-card__btn {
    background: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-text);
    font-weight: 300;
    font-size: 24px;
    line-height: 1.2;
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-normal), color var(--transition-normal), transform var(--transition-normal);
}

.product-card__btn:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-2px);
}

/* ========================================
   CTA STICKY
   ======================================== */
.hero__cta-wrapper {
    display: none;
}

.hero__cta {
    display: none;
}

.hero__cta-btn {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-dark);
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    padding: 12px 35px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s ease, transform var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal);
    margin-top: var(--spacing-md);
}

.hero__cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--color-white);
    color: var(--color-dark);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-dark);
    padding: 173px 0 80px;
    position: relative;
    z-index: 500;
    width: 100%;
    left: 0;
    right: 0;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.footer__content {
    display: flex;
    gap: 136px;
    margin-bottom: var(--spacing-xxl);
}

.footer__brand {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-shrink: 0;
}

.footer__logo {
    width: 137px;
    height: 125px;
}

.footer__socials {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__social-icon {
    width: 35px;
    height: 35px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
}

.footer__social-icon:hover {
    transform: scale(1.1);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 70px;
    flex: 1;
}

.footer__column {
    min-width: 178px;
}

.footer__column-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    color: var(--color-light);
    margin-bottom: 61px;
}

.footer__column-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__column-link {
    font-family: var(--font-text);
    font-weight: 300;
    font-size: 19px;
    line-height: 1;
    color: var(--color-light);
    transition: color var(--transition-normal);
}

.footer__column-link:hover {
    color: var(--color-primary);
}

.footer__contact-btn {
    background: var(--color-primary);
    color: var(--color-dark);
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.2;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-normal);
}

.footer__contact-btn:hover {
    transform: translateY(-2px);
}

.footer__divider {
    width: 596px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: var(--spacing-xxl) auto var(--spacing-xl);
}

.footer__bottom {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-light);
}

.footer__bottom a {
    color: var(--color-light);
    text-decoration: underline;
    transition: color var(--transition-normal);
}

.footer__bottom a:hover {
    color: var(--color-primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1440px) {
    .header__container {
        padding: 0 100px;
    }

    .hero__content {
        padding-left: 100px;
    }

    .hero__title {
        font-size: 72px;
    }

    .footer__links {
        gap: 50px;
    }
}

@media (max-width: 1200px) {
    .footer__content {
        gap: 80px;
    }

    .footer__links {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        row-gap: 60px;
    }
}

@media (max-width: 1024px) {
    .header {
        height: 140px;
    }

    .header__container {
        padding: 0 50px;
    }

    .header__nav-btn {
        font-size: 24px;
    }

    .hero {
        min-height: 600px;
    }

    .hero__content {
        padding-left: 50px;
        padding-right: 50px;
    }

    .hero__title {
        font-size: 56px;
    }

    .hero__description {
        font-size: 18px;
    }

    .footer__content {
        flex-direction: column;
        gap: 60px;
    }

    .footer__brand {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        height: 100px;
    }

    .header__container {
        padding: 0 var(--spacing-lg);
    }

    .header__logo {
        width: 45px;
        height: 48px;
    }

    .header__nav-btn {
        font-size: 20px;
        padding: 10px 0;
    }

    .header__logo-right {
        width: 50px;
        height: 45px;
    }

    .hero__bg-left {
        width: 100%;
    }

    .hero__bg-right {
        opacity: 0.3;
    }

    .hero__content {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }

    .hero__title {
        font-size: 42px;
    }

    .hero__description {
        font-size: 16px;
    }

    .hero__divider {
        width: 180px;
        margin: var(--spacing-lg) 0;
    }

    .products {
        padding: var(--spacing-xxl) 0;
        margin-top: 0;
    }

    .product-card {
        flex: 0 0 300px;
        min-width: 300px;
        height: 360px;
    }

    .product-card__title {
        font-size: 32px;
    }

    .product-card__subtitle {
        font-size: 14px;
        letter-spacing: 3px;
    }

    .product-card__btn {
        font-size: 20px;
    }

    .footer__container {
        padding: 0 var(--spacing-lg);
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__column-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 80px;
    }

    .header__container {
        padding: 0 var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .header__nav-btn {
        font-size: 16px;
    }

    .hero__content {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero__title {
        font-size: 36px;
    }

    .hero__description {
        font-size: 14px;
    }

    .product-card {
        flex: 0 0 280px;
        min-width: 280px;
        height: 340px;
    }

    .footer {
        padding: 100px 0 60px;
    }

    .footer__brand {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .footer__socials {
        flex-direction: row;
    }

    .footer__bottom {
        font-size: 14px;
        padding: 0 var(--spacing-md);
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation classes */
.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .footer {
        display: none;
    }

    .hero {
        min-height: auto;
        page-break-after: always;
    }

    .products__slider {
        overflow: visible;
        display: block;
    }

    .product-card {
        page-break-inside: avoid;
        margin-bottom: var(--spacing-lg);
    }
}
