/* Utilitaires (équivalents Tailwind) compilés statiquement pour fonctionner hors-ligne, sans dépendance CDN. */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

:root {
  --primary: #F77F00;
  --primary-dark: #D96E00;
  --primary-light: #F9AB43;
  --gold: #FFD942;
  --green: #00A86B;
  --green-dark: #0F5C3F;
  --cream: #FFF1DA;
  --lavender: #F1F2FA;
  --neutral-50: #FAFAFA;
  --neutral-900: #14432F;
  --muted: #5E6282;
}

/* Layout */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.sticky { position: sticky; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.top-1\.5 { top: 0.375rem; }
.z-50 { z-index: 50; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.shrink-0 { flex-shrink: 0; }
.whitespace-nowrap { white-space: nowrap; }
.overflow-hidden { overflow: hidden; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.w-full { width: 100%; }

/* Gaps */
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; } .gap-10 { gap: 2.5rem; } .gap-12 { gap: 3rem; }

/* Spacing */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.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-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.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-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-0\.5 { padding-top: 0.125rem; }
.pb-20 { padding-bottom: 5rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; } .p-10 { padding: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mb-5 { margin-bottom: 1.25rem; }
.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-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mt-14 { margin-top: 3.5rem; } .mt-16 { margin-top: 4rem; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Sizing */
.w-auto { width: auto; }
.w-2 { width: 0.5rem; } .h-2 { height: 0.5rem; }
/* w-4/h-4 manquaient (bug réel trouvé le 2026-08-23) : les icônes SVG qui s'appuyaient dessus
   (retour/suite sur la page détail actualité) n'avaient donc aucune taille CSS explicite — un
   <svg> sans width/height ni classe correspondante prend la taille par défaut du navigateur
   (souvent ~300x150px), ce qui écrasait le texte à côté au lieu d'une petite icône de 16px. */
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; } .h-7 { height: 1.75rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-9 { width: 2.25rem; } .h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.w-14 { width: 3.5rem; } .h-14 { height: 3.5rem; }
.w-16 { width: 4rem; } .h-16 { height: 4rem; }
.w-20 { width: 5rem; } .h-20 { height: 5rem; }
.w-24 { width: 6rem; } .h-24 { height: 6rem; }
.w-32 { width: 8rem; } .h-32 { height: 8rem; }
.w-40 { width: 10rem; } .h-40 { height: 10rem; }
.h-72 { height: 18rem; }
.-left-\[5px\] { left: -5px; }
.max-h-0 { max-height: 0; }
.max-h-96 { max-height: 24rem; }
#mobile-menu a { display: block; padding: 0.85rem 0; border-bottom: 1px solid rgba(20,67,47,0.08); }
#mobile-menu a:last-child { border-bottom: none; }
.menu-toggle-btn { align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px; }
.menu-toggle-btn:active { background-color: rgba(20,67,47,0.06); }

/* Borders / radius */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1.25rem; }
.rounded-3xl { border-radius: 2rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 3px rgba(20,67,47,0.07), 0 1px 2px rgba(20,67,47,0.04); }
.shadow-md { box-shadow: 0 10px 30px rgba(20,67,47,0.10); }
/* Échelle d'ombre à 3 niveaux (spec de design 2026-08-21) — remplace le "0 ou shadow-sm partout"
   d'origine, qui mettait tout au même plan visuel. .shadow-card par défaut sur les cartes,
   .shadow-card-hover au survol (cf. .hover-lift/.news-card), .shadow-elevated réservé aux éléments
   qui doivent vraiment se détacher (recherche, citation). */
.shadow-card { box-shadow: 0 4px 16px rgba(20,67,47,0.06), 0 1px 3px rgba(20,67,47,0.04); }
.shadow-card-hover { box-shadow: 0 12px 32px rgba(20,67,47,0.12), 0 4px 8px rgba(20,67,47,0.06); }
.shadow-elevated { box-shadow: 0 20px 50px rgba(20,67,47,0.14), 0 6px 16px rgba(20,67,47,0.08); }
.border-0 { border-width: 0; }
.border { border-width: 1px; border-style: solid; border-color: currentColor; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-neutral-900\/10 { border-color: rgba(28,28,28,0.10); }
.border-neutral-900\/15 { border-color: rgba(28,28,28,0.15); }
.border-neutral-900\/20 { border-color: rgba(28,28,28,0.20); }
.border-white\/10 { border-color: rgba(255,255,255,0.10); }
.border-primary { border-color: var(--primary); }
.border-primary\/30 { border-color: rgba(247,127,0,0.3); }

/* Colors */
.bg-white { background-color: #fff; }
.bg-transparent { background-color: transparent; }
.bg-neutral-50 { background-color: var(--neutral-50); }
.bg-neutral-900 { background-color: var(--neutral-900); }
.bg-cream { background-color: var(--cream); }
.bg-lavender { background-color: var(--lavender); }
.bg-primary { background-color: var(--primary); }
.bg-green { background-color: var(--green); }
.text-primary { color: var(--primary); }
.text-primary-dark { color: var(--primary-dark); }
.text-primary-light { color: var(--primary-light); }
.text-neutral-900 { color: var(--neutral-900); }
.text-muted { color: var(--muted); }
.text-white { color: #fff; }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-muted\/70 { color: rgba(94,98,130,0.7); }
.fill-primary { fill: var(--primary); }
a.text-primary:hover, .hover-primary:hover { color: var(--primary-dark); }

/* Typography */
.font-heading { font-family: 'Poppins', sans-serif; }
.font-body { font-family: 'Inter', sans-serif; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.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-6xl { font-size: 3.25rem; }
.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;
}

/* Space-y */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

/* Transitions / interactions */
.transition { transition: all 0.2s ease; }
.hover\:bg-primary-dark:hover { background-color: var(--primary-dark); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-primary-dark:hover { color: var(--primary-dark); }
.hover\:text-primary-light:hover { color: var(--primary-light); }
.hover\:border-primary:hover { border-color: var(--primary); }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--primary); }

/* Survol : soulèvement léger + ombre plus marquée — généralisé à toutes les cartes cliquables
   (services, actualités, coordonnées). */
.hover-lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(20,67,47,0.12), 0 4px 8px rgba(20,67,47,0.06); }

/* Bouton plein orange : léger soulèvement + ombre teintée au survol, au lieu d'un simple
   changement de couleur (garde .hover\:bg-primary-dark en plus, ne le remplace pas). */
.btn-primary { transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(247,127,0,0.3); }
.btn-primary:active { transform: translateY(0); }

/* Responsive: sm >= 640px, md >= 768px */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex { display: flex; }
  .sm\:block { display: block; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:w-9 { width: 2.25rem; } .sm\:h-9 { height: 2.25rem; }
  .sm\:h-8 { height: 2rem; }
  .sm\:w-10 { width: 2.5rem; } .sm\:h-10 { height: 2.5rem; }
  .sm\:w-16 { width: 4rem; } .sm\:h-16 { height: 4rem; }
  .sm\:h-20 { height: 5rem; }
  .sm\:w-24 { width: 6rem; } .sm\:h-24 { height: 6rem; }
  .sm\:w-40 { width: 10rem; } .sm\:h-40 { height: 10rem; }
}
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:block { display: block; }
  .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-\[1fr_auto\] { grid-template-columns: 1fr auto; }
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-6xl { font-size: 3.25rem; }
  .md\:gap-8 { gap: 2rem; }
  .md\:mb-12 { margin-bottom: 3rem; }
  .md\:mb-14 { margin-bottom: 3.5rem; }
  .md\:mt-16 { margin-top: 4rem; }
  .md\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:p-14 { padding: 3.5rem; }
  .md\:text-base { font-size: 1rem; }
  .md\:w-10 { width: 2.5rem; } .md\:h-10 { height: 2.5rem; }
  .md\:h-9 { height: 2.25rem; }
}
