/* ================================================================
   main.css — dog-sitting-marseille.fr
   Replaces Tailwind CDN runtime + daisyui.css
   ================================================================ */

/* ——— Reset & Base ——————————————————————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
svg { display: inline-block; vertical-align: middle; }

/* ——— Display ———————————————————————————————————————————————————— */
.flex       { display: flex; }
.inline-flex{ display: inline-flex; }
.inline-block{ display: inline-block; }
.block      { display: block; }
.grid       { display: grid; }
.hidden     { display: none !important; }

/* ——— Flex ——————————————————————————————————————————————————————— */
.flex-col    { flex-direction: column; }
.flex-row    { flex-direction: row; }
.flex-wrap   { flex-wrap: wrap; }
.flex-1      { flex: 1 1 0%; }
.shrink-0    { flex-shrink: 0; }
.items-center{ align-items: center; }
.items-start { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ——— Gap ———————————————————————————————————————————————————————— */
.gap-0\.5 { gap: 0.125rem; }
.gap-2    { gap: 0.5rem; }
.gap-3    { gap: 0.75rem; }
.gap-4    { gap: 1rem; }
.gap-5    { gap: 1.25rem; }
.gap-6    { gap: 1.5rem; }
.gap-8    { gap: 2rem; }
.gap-10   { gap: 2.5rem; }
.gap-12   { gap: 3rem; }

/* ——— Grid ——————————————————————————————————————————————————————— */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* ——— Position ——————————————————————————————————————————————————— */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.static   { position: static; }

.top-0       { top: 0; }
.top-16      { top: 4rem; }
.top-1\/2    { top: 50%; }
.-top-3      { top: -0.75rem; }
.left-0      { left: 0; }
.left-5      { left: 1.25rem; }
.left-1\/2   { left: 50%; }
.right-0     { right: 0; }
.right-5     { right: 1.25rem; }
.bottom-4    { bottom: 1rem; }
.inset-0     { top: 0; right: 0; bottom: 0; left: 0; }

.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.transform         { } /* noop — kept for HTML class presence */

.z-0  { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ——— Sizing ————————————————————————————————————————————————————— */
.w-full     { width: 100%; }
.w-auto     { width: auto; }
.w-2\.5     { width: 0.625rem; }
.w-5        { width: 1.25rem; }
.w-6        { width: 1.5rem; }
.w-9        { width: 2.25rem; }
.w-14       { width: 3.5rem; }
.min-w-0    { min-width: 0; }
.max-w-xl   { max-width: 36rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-6xl  { max-width: 72rem; }
.mx-auto    { margin-left: auto; margin-right: auto; }

.h-2\.5     { height: 0.625rem; }
.h-5        { height: 1.25rem; }
.h-6        { height: 1.5rem; }
.h-9        { height: 2.25rem; }
.h-14       { height: 3.5rem; }
.h-16       { height: 4rem; }
.min-h-screen { min-height: 100vh; }

.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }

/* ——— Padding ———————————————————————————————————————————————————— */
.p-2    { padding: 0.5rem; }
.p-5    { padding: 1.25rem; }
.p-6    { padding: 1.5rem; }
.p-8    { padding: 2rem; }
.px-3   { padding-left: 0.75rem;  padding-right: 0.75rem; }
.px-4   { padding-left: 1rem;     padding-right: 1rem; }
.px-5   { padding-left: 1.25rem;  padding-right: 1.25rem; }
.px-7   { padding-left: 1.75rem;  padding-right: 1.75rem; }
.px-10  { padding-left: 2.5rem;   padding-right: 2.5rem; }
.py-1   { padding-top: 0.25rem;   padding-bottom: 0.25rem; }
.py-1\.5{ padding-top: 0.375rem;  padding-bottom: 0.375rem; }
.py-2   { padding-top: 0.5rem;    padding-bottom: 0.5rem; }
.py-3\.5{ padding-top: 0.875rem;  padding-bottom: 0.875rem; }
.py-4   { padding-top: 1rem;      padding-bottom: 1rem; }
.py-16  { padding-top: 4rem;      padding-bottom: 4rem; }
.py-24  { padding-top: 6rem;      padding-bottom: 6rem; }
.pb-5   { padding-bottom: 1.25rem; }
.pb-6   { padding-bottom: 1.5rem; }
.pt-4   { padding-top: 1rem; }
.pt-8   { padding-top: 2rem; }
.pt-24  { padding-top: 6rem; }

/* ——— Margin ————————————————————————————————————————————————————— */
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.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; }
.mt-3  { margin-top: 0.75rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ——— 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; }

.font-normal    { font-weight: 400; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

.tracking-tight   { letter-spacing: -0.025em; }
.tracking-widest  { letter-spacing: 0.1em; }

.uppercase        { text-transform: uppercase; }
.text-center      { text-align: center; }
.text-left        { text-align: left; }
.whitespace-nowrap{ white-space: nowrap; }

/* ——— Text Colors ———————————————————————————————————————————————— */
.text-white    { color: #fff; }
.text-stone-400{ color: #a8a29e; }
.text-stone-500{ color: #78716c; }
.text-stone-600{ color: #57534e; }
.text-stone-700{ color: #44403c; }
.text-stone-800{ color: #292524; }
.text-amber-400{ color: #fbbf24; }
.text-amber-500{ color: #f59e0b; }
.text-amber-600{ color: #d97706; }
.text-amber-700{ color: #b45309; }
.text-amber-800{ color: #92400e; }

.hover\:text-amber-400:hover { color: #fbbf24; }
.hover\:text-amber-600:hover { color: #d97706; }

/* ——— Background Colors ————————————————————————————————————————— */
.bg-white    { background-color: #fff; }
.bg-stone-50 { background-color: #fafaf9; }
.bg-stone-800{ background-color: #292524; }
.bg-stone-900{ background-color: #1c1917; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100{ background-color: #fef3c7; }
.bg-amber-200{ background-color: #fde68a; }
.bg-amber-400{ background-color: #fbbf24; }
.bg-amber-500{ background-color: #f59e0b; }
.bg-sky-50   { background-color: #f0f9ff; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-200{ background-color: #a7f3d0; }
.bg-pink-50  { background-color: #fdf2f8; }
.bg-pink-200 { background-color: #fbcfe8; }
.bg-lime-50  { background-color: #f7fee7; }
.bg-lime-200 { background-color: #d9f99d; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-200{ background-color: #fed7aa; }

/* Opacity variants */
.bg-white\/60 { background-color: rgba(255, 255, 255, 0.6); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-amber-200\/60 { background-color: rgba(253, 230, 138, 0.6); }

/* Gradient */
.bg-gradient-to-br {
  background-image: linear-gradient(
    to bottom right,
    var(--tw-gradient-from, transparent),
    var(--tw-gradient-via, transparent),
    var(--tw-gradient-to, transparent)
  );
}
.from-amber-50 { --tw-gradient-from: #fffbeb; }
.via-sky-50    { --tw-gradient-via: #f0f9ff; }
.to-amber-100  { --tw-gradient-to: #fef3c7; }

/* Hover backgrounds */
.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-700:hover  { background-color: #44403c; }
.hover\:bg-amber-100:hover  { background-color: #fef3c7; }
.hover\:bg-amber-400:hover  { background-color: #fbbf24; }
.hover\:bg-white\/90:hover  { background-color: rgba(255, 255, 255, 0.9); }

/* ——— Border ————————————————————————————————————————————————————— */
.border   { border-width: 1px;  border-style: solid; }
.border-2 { border-width: 2px;  border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px;    border-top-style: solid; }

.border-stone-200 { border-color: #e7e5e4; }
.border-stone-300 { border-color: #d6d3d1; }
.border-stone-700 { border-color: #44403c; }
.border-amber-300 { border-color: #fcd34d; }
.border-amber-400 { border-color: #fbbf24; }

.hover\:border-amber-400:hover { border-color: #fbbf24; }

/* ——— Border Radius ————————————————————————————————————————————— */
.rounded-full { border-radius: 9999px; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-3xl  { border-radius: 1.5rem; }

/* ——— Shadow ————————————————————————————————————————————————————— */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* ——— Effects ———————————————————————————————————————————————————— */
.overflow-hidden { overflow: hidden; }
.opacity-10      { opacity: 0.1; }
.object-cover    { object-fit: cover; }
.object-contain  { object-fit: contain; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.cursor-pointer  { cursor: pointer; }
.antialiased     { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.transition {
  transition-property: color, background-color, border-color, box-shadow, transform, 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-200 { transition-duration: 200ms; }

/* ——— DaisyUI Carousel ——————————————————————————————————————————— */
.carousel {
  display: inline-flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
}
.carousel::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .carousel { scroll-behavior: smooth; }
}
.carousel-item {
  flex: none;
  display: flex;
  width: 100%;
  scroll-snap-align: start;
  box-sizing: content-box;
}

/* ——— DaisyUI Button ————————————————————————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}
.btn-circle {
  border-radius: 9999px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}
.btn-ghost { background-color: transparent; }

/* ——— Responsive: sm (≥ 640px) ————————————————————————————————— */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

/* ——— Responsive: md (≥ 768px) ————————————————————————————————— */
@media (min-width: 768px) {
  .md\:static   { position: static; }
  .md\:flex     { display: flex !important; }
  .md\:hidden   { display: none !important; }
  .md\:flex-row { flex-direction: row; }
  .md\:flex-col { flex-direction: column; }

  .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\:gap-8   { gap: 2rem; }
  .md\:gap-0   { gap: 0; }

  .md\:w-auto  { width: auto; }
  .md\:w-4\/5  { width: 80%; }

  .md\:text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
  .md\:text-xl  { font-size: 1.25rem;  line-height: 1.75rem; }
  .md\:text-5xl { font-size: 3rem;     line-height: 1; }
  .md\:text-7xl { font-size: 4.5rem;   line-height: 1; }

  .md\:px-0    { padding-left: 0;      padding-right: 0; }
  .md\:px-5    { padding-left: 1.25rem; padding-right: 1.25rem; }
  .md\:py-2    { padding-top: 0.5rem;  padding-bottom: 0.5rem; }
  .md\:pb-0    { padding-bottom: 0; }
  .md\:pt-0    { padding-top: 0; }
  .md\:pt-16   { padding-top: 4rem; }

  .md\:bg-transparent    { background-color: transparent; }
  .md\:backdrop-blur-none{ backdrop-filter: none; -webkit-backdrop-filter: none; }
  .md\:border-0          { border: none; }
  .md\:shadow-none       { box-shadow: none; }
}

/* ——— Responsive: lg (≥ 1024px) ————————————————————————————————— */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
