/* Extracted from index.html */
* {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    /* Force normal weight by default */
}

html {
    overflow-y: scroll;
    /* Force scrollbar to prevent layout shift */
    scroll-behavior: smooth;
}

h1,
.section-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-style: normal !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

h2 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}

h3 {
    font-family: 'Syne', sans-serif !important;
    font-weight: 800 !important;
    font-style: italic !important;
    letter-spacing: -0.04em !important;
}

.category-hero-title {
    font-family: 'Permanent Marker', cursive !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    display: inline-block;
    background: linear-gradient(to right, #fb923c, #f97316, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(-1.5deg);
    line-height: 1.2;
    padding: 0.1em;
}

.legal-hero-title {
    font-family: 'Permanent Marker', cursive !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-transform: lowercase !important;
    display: inline-block;
    background: linear-gradient(to right, #fb923c, #f97316, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(-1deg);
    line-height: 1.2;
    padding: 0.1em;
}

.legal-bar-link {
    font-family: 'Cairo', sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.legal-bar-link:hover {
    color: white !important;
    text-decoration: none;
    transform: scale(1.05);
}

.copyright-text {
    font-family: 'Cairo', sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0.1em !important;
}

.color-option {
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border: 3px solid #3b82f6;
    transform: scale(1.1);
}

.sheet-option {
    transition: all 0.3s ease;
}

.sheet-option:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.sheet-option.selected {
    border: 2px solid #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Extracted from index.html */
.slider-item {
    transition: opacity 0.8s ease-in-out;
}

/* Animation pulse pour attirer l'attention */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

#delivery-banner:hover {
    animation: pulse 2s infinite;
}

/* Responsive improvements */
@media (max-width: 640px) {
    #delivery-banner {
        font-size: 0.75rem;
    }
}


/* Extracted from index.html */
/* Animations */
#mobileMenu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu,
.nested-submenu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.mobile-submenu:not(.hidden),
.nested-submenu:not(.hidden) {
    max-height: 1000px;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Scroll personnalisé */
.overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 2px;
}


/* Extracted from index.html */
/* Cache la scrollbar pour un look plus clean */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

/* Animations optimisées pour mobile */
.gallery-item {
    transition: all 0.2s ease;
}

.filter-btn.active {
    background-color: #2563eb;
    color: white;
}

/* Performance mobile */
.gallery-item img {
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (max-width: 640px) {
    .gallery-item {
        border-radius: 0.5rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

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

    .filter-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }

    #gallery-produits {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Pour les très petits écrans */
@media (max-width: 360px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }

    .gallery-item {
        border-radius: 0.375rem;
    }
}

/* Amélioration du touch sur mobile */
@media (hover: none) {
    .gallery-item:hover {
        transform: none;
    }

    .gallery-item:active {
        transform: scale(0.95);
    }
}


/* Extracted from index.html */
.rotate-180 {
    transform: rotate(180deg);
}

/* Animation douce pour l'ouverture */
.faq-answer {
    transition: all 0.3s ease-in-out;
}

/* Effet de hover amélioré */
.faq-question:hover {
    background-color: #f8fafc;
}

/* Responsive */
@media (max-width: 640px) {
    .faq-question {
        padding: 1rem;
    }

    .faq-answer {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }
}


/* Extracted from index.html */
#whatsapp-pro {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}


/* Extracted from index.html */
/* Styles d'optimisation mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .grid {
        gap: 2rem;
    }
}

/* Amélioration des transitions */
.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Focus states accessibles */
/* Global focus reset for cleaner pro look */
* {
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}


/* Extracted from brochure.html */
.smart-layout {
    container-type: inline-size;
    container-name: smart-layout;
}

/* Styles pour desktop */
@container smart-layout (min-width: 768px) {
    .desktop-optimized {
        display: block;
    }

    .mobile-optimized {
        display: none;
    }
}

/* Styles pour mobile */
@container smart-layout (max-width: 767px) {
    .desktop-optimized {
        display: none;
    }

    .mobile-optimized {
        display: block;
    }
}

.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.floating-cta {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Marquee Scrolling Animation */
/* Marquee Scrolling Animation */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33333%);
    }
}

.marquee-scroll-container {
    animation: marquee-scroll 30s linear infinite;
    width: max-content;
    display: flex;
    /* Ensure flex behavior */
    will-change: transform;
    /* Hint for GPU acceleration */
}



/* Article Page Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Vertical text utility */
.writing-vertical {
    writing-mode: vertical-rl;
}

/* =========================================
   Redesign Article - Editorial Style
   ========================================= */

/* Header / Hero */
.article-header-meta {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
}

.article-header-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

/* Share Buttons */
.share-btn-square {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.share-btn-square:hover {
    background-color: #ea580c;
    /* Orange brand */
    transform: translateY(-2px);
}

.share-btn-square.facebook {
    background-color: #1877F2;
}

.share-btn-square.twitter {
    background-color: #000000;
}

/* X / Twitter */
.share-btn-square.linkedin {
    background-color: #0077b5;
}

.share-btn-square.whatsapp {
    background-color: #25D366;
}

/* Content Typography */
.article-body p {
    font-family: 'Cairo', sans-serif;
    /* Or generic sans like 'Inter' if preferred for body */
    font-size: 1.125rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 1.75em;
}

/*.article-body h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    color: #0f172a;
    letter-spacing: -0.02em;
}*/
/* Overrides existing h2 style if needed, but existing might be fine */

/* Sidebar "Best Of" / "Most Popular" */
.sidebar-numbered-list {
    counter-reset: sidebar-counter;
}

.sidebar-numbered-item {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
    min-height: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-numbered-item::before {
    counter-increment: sidebar-counter;
    content: counter(sidebar-counter);
    position: absolute;
    left: 0;
    top: -0.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    line-height: 1;
    color: #f1f5f9;
    /* Subtle grey */
    z-index: 0;
}

.sidebar-numbered-content {
    position: relative;
    z-index: 1;
}

.sidebar-cat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #ef4444;
    /* Red/Orange accent */
    margin-bottom: 0.25rem;
    display: block;
}

.sidebar-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: #0f172a;
    transition: color 0.2s;
}

.sidebar-link:hover {
    color: #ea580c;
}

/* Agenda / Events Box */
.agenda-box {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-top: 4px solid #ea580c;
}

/* Read Also Grid */
.read-also-card img {
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Rounded Social Icons Override */
.share-btn-square {
    border-radius: 50% !important;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}



/* Improved Article Readability */
.article-body {
    color: #1e293b;
    font-size: 1.125rem;
    line-height: 2;
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    line-height: 1.3;
}

.article-body h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #334155;
}



.article-body strong {
    color: #0f172a;
    font-weight: 700;
}



/* Decorative Article Lists (UX) */
.article-body ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.article-body ul li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0;
    /* Override previous margin */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.article-body ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #fb923c;
    /* Orange border on hover */
    background: white;
}

.article-body ul li:before {
    display: none;
    /* Remove default bullet */
}

.article-body ul li strong {
    display: block;
    color: #ea580c;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Add an icon to list items via pseudo-element */
.article-body ul li::after {
    content: '\\f054';
    /* FontAwesome Chevron */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #cbd5e0;
    transition: color 0.3s;
}

.article-body ul li:hover::after {
    color: #ea580c;
}

/* Creative Card Refinement */
.article-body ul li:hover {
    transform: translateY(-5px) scale(1.02);
    border-left: 5px solid #ea580c;
}

/* Force headings to bold */
h1, h2, h3, h4, h5, h6, .section-title, .article-body h2, .article-body h3, .article-body strong {
    font-weight: 700 !important;
}



/* strict paragraph styling */
p, p * {
    font-weight: 400 !important;
    font-style: normal !important;
}



/* Article Page Override: Force Cairo Only */
.article-page-font, .article-page-font * {
    font-family: 'Cairo', sans-serif !important;
}

