/* YARA DÉLICES - CSS OPTIMISÉ FINAL */
/* Combine ton CSS existant + Tailwind utilities minifiées */

/* ============================================
   1. FONTS OPTIMISÉES (Font Display Swap)
   ============================================ */
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v37/nuFvD-vYSZviVYUb_rj3ij__anPXJzDwcbmjWBN2PKdFvUDQZNLo_U2r.woff2) format('woff2');unicode-range:U+0000-00FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v37/nuFvD-vYSZviVYUb_rj3ij__anPXJzDwcbmjWBN2PKeFvkDQZNLo_U2r.woff2) format('woff2');unicode-range:U+0000-00FF}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v37/nuFRD-vYSZviVYUb_rj3ij__anPXDTnCjmHKM4nYO7KN_qiTXtPA.woff2) format('woff2');unicode-range:U+0000-00FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hiA.woff2) format('woff2');unicode-range:U+0000-00FF}

/* ============================================
   2. CSS VARIABLES (Ton thème existant)
   ============================================ */
:root {
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
  --background: 35 30% 98%;
  --foreground: 0 0% 15%;
  --card: 35 20% 96%;
  --card-foreground: 0 0% 15%;
  --popover: 35 30% 98%;
  --popover-foreground: 0 0% 15%;
  --primary: 30 15% 25%;
  --primary-foreground: 35 30% 98%;
  --secondary: 35 15% 92%;
  --secondary-foreground: 30 15% 25%;
  --muted: 35 10% 94%;
  --muted-foreground: 0 0% 40%;
  --accent: 35 15% 92%;
  --accent-foreground: 30 15% 25%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 35 10% 85%;
  --input: 35 10% 85%;
  --ring: 30 15% 25%;
  --radius: 0rem;
}

/* ============================================
   3. RESET & BASE (Minifié)
   ============================================ */
*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}
::before,::after{--tw-content:''}
html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal}
body{margin:0;line-height:inherit;font-family:var(--font-sans);background-color:hsl(var(--background));color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
hr{height:0;color:inherit;border-top-width:1px}
abbr:where([title]){text-decoration:underline dotted}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;font-family:var(--font-serif);letter-spacing:-0.025em}
a{color:inherit;text-decoration:inherit}
b,strong{font-weight:bolder}
code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em}
small{font-size:80%}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sub{bottom:-.25em}
sup{top:-.5em}
table{text-indent:0;border-color:inherit;border-collapse:collapse}
button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}
button,select{text-transform:none}
button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button;background-color:transparent;background-image:none}
:-moz-focusring{outline:auto}
:-moz-ui-invalid{box-shadow:none}
progress{vertical-align:baseline}
::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}
[type='search']{-webkit-appearance:textfield;outline-offset:-2px}
::-webkit-search-decoration{-webkit-appearance:none}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}
summary{display:list-item}
blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}
fieldset{margin:0;padding:0}
legend{padding:0}
ol,ul,menu{list-style:none;margin:0;padding:0}
dialog{padding:0}
textarea{resize:vertical}
input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}
button,[role="button"]{cursor:pointer}
:disabled{cursor:default}
img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}
img,video{max-width:100%;height:auto}
[hidden]{display:none}

/* ============================================
   4. UTILITY CLASSES (Tailwind Essentielles)
   ============================================ */

/* Container */
.container{width:100%;margin-left:auto;margin-right:auto;padding-left:1.5rem;padding-right:1.5rem;max-width:1400px}
@media(min-width:640px){.container{max-width:640px}}
@media(min-width:768px){.container{max-width:768px}}
@media(min-width:1024px){.container{max-width:1024px}}
@media(min-width:1280px){.container{max-width:1280px}}
@media(min-width:1536px){.container{max-width:1536px}}

/* Layout */
.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}
.inset-0{top:0;right:0;bottom:0;left:0}.top-0{top:0}.top-8{top:2rem}.right-0{right:0}.right-6{right:1.5rem}.bottom-0{bottom:0}.bottom-12{bottom:3rem}.left-0{left:0}.left-12{left:3rem}
.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\[60\]{z-index:60}

/* Display */
.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}

/* Flexbox */
.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-shrink-0{flex-shrink:0}
.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}
.gap-2{gap:0.5rem}.gap-3{gap:0.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-12{gap:3rem}.gap-16{gap:4rem}
.space-x-8>:not([hidden])~:not([hidden]){margin-left:2rem}.space-x-12>:not([hidden])~:not([hidden]){margin-left:3rem}
.space-y-2>:not([hidden])~:not([hidden]){margin-top:0.5rem}.space-y-4>:not([hidden])~:not([hidden]){margin-top:1rem}.space-y-6>:not([hidden])~:not([hidden]){margin-top:1.5rem}.space-y-8>:not([hidden])~:not([hidden]){margin-top:2rem}

/* Grid */
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:640px){.sm\:flex-row{flex-direction:row}}
@media(min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Width & Height */
.w-full{width:100%}.w-auto{width:auto}.w-8{width:2rem}.w-16{width:4rem}
.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-full{height:100%}.h-screen{height:100vh}.h-\[80vh\]{height:80vh}
.min-h-\[100px\]{min-height:100px}.min-h-\[120px\]{min-height:120px}
.max-w-md{max-width:28rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-\[1600px\]{max-width:1600px}.max-w-none{max-width:none}

/* Spacing */
.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.mx-8{margin-left:2rem;margin-right:2rem}
.my-8{margin-top:2rem;margin-bottom:2rem}.my-12{margin-top:3rem;margin-bottom:3rem}
.mt-1{margin-top:0.25rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}
.mb-2{margin-bottom:0.5rem}.mb-3{margin-bottom:0.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}
.ml-2{margin-left:0.5rem}.ml-4{margin-left:1rem}.mr-2{margin-right:0.5rem}.mr-4{margin-right:1rem}
.p-2{padding:0.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-12{padding:3rem}
.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}
.py-3{padding-top:0.75rem;padding-bottom:0.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-24{padding-top:6rem;padding-bottom:6rem}
.pt-4{padding-top:1rem}.pt-8{padding-top:2rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-4{padding-right:1rem}
@media(min-width:768px){.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-32{padding-top:8rem;padding-bottom:8rem}.md\:p-16{padding:4rem}}

/* Typography */
.text-xs{font-size:0.75rem;line-height:1rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}
@media(min-width:768px){.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-7xl{font-size:4.5rem;line-height:1}}
@media(min-width:1024px){.lg\:text-7xl{font-size:4.5rem;line-height:1}}

.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}
.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}
.italic{font-style:italic}.uppercase{text-transform:uppercase}
.leading-none{line-height:1}.leading-tight{line-height:1.25}.leading-relaxed{line-height:1.625}
.tracking-tight{letter-spacing:-0.025em}.tracking-wide{letter-spacing:0.025em}.tracking-wider{letter-spacing:0.05em}.tracking-widest{letter-spacing:0.1em}.tracking-\[0\.2em\]{letter-spacing:0.2em}.tracking-\[0\.3em\]{letter-spacing:0.3em}
.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}
@media(min-width:768px){.md\:text-left{text-align:left}.md\:text-center{text-align:center}.md\:text-right{text-align:right}}

/* Colors */
.bg-background{background-color:hsl(var(--background))}.bg-foreground{background-color:hsl(var(--foreground))}.bg-white{background-color:#fff}.bg-black{background-color:#000}.bg-transparent{background-color:transparent}.bg-stone-50{background-color:#fafaf9}.bg-stone-100{background-color:#f5f5f4}.bg-stone-800{background-color:#292524}
.text-background{color:hsl(var(--background))}.text-foreground{color:hsl(var(--foreground))}.text-white{color:#fff}.text-black{color:#000}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-green-600{color:#16a34a}
.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-white{border-color:#fff}.border-border{border-color:hsl(var(--border))}

/* Backgrounds & Effects */
.bg-black\/10{background-color:rgb(0 0 0/0.1)}.bg-black\/20{background-color:rgb(0 0 0/0.2)}.bg-black\/30{background-color:rgb(0 0 0/0.3)}.bg-white\/95{background-color:rgb(255 255 255/0.95)}
.shadow-sm{box-shadow:0 1px 2px 0 rgb(0 0 0/0.05)}.shadow-md{box-shadow:0 4px 6px -1px rgb(0 0 0/0.1),0 2px 4px -2px rgb(0 0 0/0.1)}.shadow-lg{box-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1)}

/* Borders */
.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}
.rounded-sm{border-radius:0.125rem}.rounded-lg{border-radius:0.5rem}.rounded-full{border-radius:9999px}

/* Overflow */
.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.resize-none{resize:none}

/* Object Fit */
.object-cover{object-fit:cover}

/* Transitions */
.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}
.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}
.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}
.duration-150{transition-duration:150ms}.duration-300{transition-duration:300ms}.duration-500{transition-duration:500ms}.duration-700{transition-duration:700ms}

/* Transforms */
.translate-x-full{transform:translateX(100%)}.translate-x-0{transform:translateX(0)}.translate-y-\[30px\]{transform:translateY(30px)}.translate-y-0{transform:translateY(0)}
.scale-105{transform:scale(1.05)}.rotate-180{transform:rotate(180deg)}.-translate-x-2{transform:translateX(-0.5rem)}.translate-x-2{transform:translateX(0.5rem)}

/* Hover States */
.hover\:opacity-50:hover{opacity:0.5}.hover\:opacity-70:hover{opacity:0.7}.hover\:opacity-100:hover{opacity:1}
.hover\:bg-foreground:hover{background-color:hsl(var(--foreground))}.hover\:bg-background:hover{background-color:hsl(var(--background))}.hover\:bg-white:hover{background-color:#fff}.hover\:bg-stone-50:hover{background-color:#fafaf9}.hover\:bg-stone-100:hover{background-color:#f5f5f4}.hover\:bg-stone-800:hover{background-color:#292524}.hover\:bg-black:hover{background-color:#000}
.hover\:text-background:hover{color:hsl(var(--background))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-white:hover{color:#fff}.hover\:text-black:hover{color:#000}
.hover\:border-foreground:hover{border-color:hsl(var(--foreground))}
.hover\:scale-105:hover{transform:scale(1.05)}.hover\:scale-110:hover{transform:scale(1.1)}.hover\:translate-x-2:hover{transform:translateX(0.5rem)}
.hover\:no-underline:hover{text-decoration:none}.hover\:bg-black\/20:hover{background-color:rgb(0 0 0/0.2)}

/* Group Hover */
.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:scale-105{transform:scale(1.05)}.group:hover .group-hover\:scale-110{transform:scale(1.1)}.group:hover .group-hover\:translate-x-2{transform:translateX(0.5rem)}.group:hover .group-hover\:bg-black\/20{background-color:rgb(0 0 0/0.2)}.group:hover .group-hover\:w-16{width:4rem}

/* Opacity */
.opacity-0{opacity:0}.opacity-70{opacity:0.7}.opacity-80{opacity:0.8}.opacity-90{opacity:0.9}.opacity-100{opacity:1}

/* Aspect Ratio */
.aspect-square{aspect-ratio:1/1}.aspect-\[3\/4\]{aspect-ratio:3/4}

/* Cursor */
.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}

/* Outline */
.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{box-shadow:0 0 0 0}.focus\:border-foreground:focus{border-color:hsl(var(--foreground))}

/* Antialiased */
.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* Selection */
.selection\:bg-stone-200 ::selection{background-color:#e7e5e4}

/* Scroll */
.scroll-smooth{scroll-behavior:smooth}

/* Backdrop Blur */
.backdrop-blur-sm{backdrop-filter:blur(4px)}

/* Prose */
.prose{color:#374151;max-width:65ch}.prose p{margin-top:1.25em;margin-bottom:1.25em}.prose strong{color:#111827;font-weight:600}.prose ul{list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose li{margin-top:0.5em;margin-bottom:0.5em}.prose-lg{font-size:1.125rem;line-height:1.7777778}.prose-lg p{margin-top:1.3333333em;margin-bottom:1.3333333em}

/* Underline */
.underline{text-decoration:underline}

/* Responsive */
@media(min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-screen{height:100vh}.md\:h-52{height:13rem}}
@media(min-width:1024px){.lg\:h-64{height:16rem}}

/* ============================================
   5. TES ANIMATIONS CUSTOM (Gardées)
   ============================================ */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

.animate-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   6. NAVIGATION SCROLLED (Ton style custom)
   ============================================ */
nav.scrolled {
  background-color: hsla(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

/* ============================================
   7. BLOG CARDS (Ton style custom)
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.blog-card {
  background: hsl(var(--background));
  border: 1px solid hsla(var(--border), 0.3);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-color: hsla(var(--foreground), 0.1);
}

.blog-meta {
  font-size: 0.75rem;
  font-weight: 500;
}

.blog-title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.blog-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-link:hover svg {
  transform: translateX(4px);
  transition: transform 0.2s;
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* ============================================
   8. CLASSES UTILES ADDITIONNELLES
   ============================================ */
.lucide-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
}

/* Hidden class pour toggle mobile */
.traiteur-extra.hidden {
  display: none;
}

@media (min-width: 768px) {
  .traiteur-extra.hidden {
    display: block;
  }
}