/* Utilitaires CSS inspirés de Tailwind pour header/navigation.
   Objectif: supprimer l'inclusion CDN en production sans casser le layout. */

:root {
  --brand-green: #16a34a; /* proche de green-600 */
  --brand-green-hover: #15803d; /* green-700 */
  --text-white: #ffffff;
}

/* Container et spacing */
.container { width: 100%; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.p-4 { padding: 1rem; }
.p-2 { padding: .5rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }

/* Breakpoints similaires */
@media (min-width: 640px) { /* sm */
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:pt-32 { padding-top: 8rem; }
  .sm\:block { display: block; }
  .sm\:hidden { display: none; }
}
@media (min-width: 1024px) { /* lg */
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 768px) { /* md */
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Flex & alignment */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: .75rem; }
.gap-6 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Typo & couleurs */
.text-white { color: var(--text-white); }
.text-brand { color: var(--brand-green); }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.hover\:text-green-300:hover { color: #86efac; }
.focus\:outline-none:focus { outline: none; }
.hover\:underline:hover { text-decoration: underline; }

/* Boutons */
.rounded-md { border-radius: .375rem; }
.rounded { border-radius: .25rem; }
.border { border: 1px solid #e5e7eb; }
.bg-brand { background-color: var(--brand-green); color: var(--text-white); }
.bg-white { background-color: #ffffff; }
.bg-white\/90 { background-color: rgba(255,255,255,0.9); }
.hover\:bg-green-700:hover { background-color: var(--brand-green-hover); }
.shadow { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04); }

/* Utilitaires divers utilisés dans le header */
.h-8 { height: 2rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.object-cover { object-fit: cover; }
.min-h-60vh { min-height: 60vh; }
.pt-24 { padding-top: 6rem; }
.pb-10 { padding-bottom: 2.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }

/* Liaisons sémantiques simples */
a.button { text-decoration: none; display: inline-flex; align-items: center; }

.text-brand { color: var(--brand-green); }
.block { display: block; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.z-10 { z-index: 10; }
.min-h-60vh { min-height: 60vh; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-6 { margin-top: 1.5rem; }
.font-medium { font-weight: 500; }
.text-gray-900 { color: #111827; }
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.bg-white { background-color: #ffffff; }
.bg-white-90 { background-color: rgba(255,255,255,0.9); }
.border { border: 1px solid #e5e7eb; }
.inline-block { display: inline-block; }
.rounded { border-radius: 0.25rem; }
.drop-shadow-md { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.06)) drop-shadow(0 2px 2px rgba(0,0,0,0.04)); }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:block { display: block; }
  .sm\:hidden { display: none; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

.text-base { font-size: 1rem; line-height: 1.5rem; }
.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; }
@media (min-width: 640px) { .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 768px) { .md\:text-5xl { font-size: 3rem; line-height: 1; } }

.overflow-x-auto { overflow-x: auto; }

.bg-gradient-to-b { background-image: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.2)); }

.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }