/* Tailwind CSS - Version compilée pour production */
/* Base styles */
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #ffffff;
}

/* Container utilities */
.container-max {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Variables CSS personnalisées pour les couleurs principales */
:root {
  --primary-50: #faf5ff;
  --primary-100: #f3e8ff;
  --primary-200: #e9d5ff;
  --primary-300: #d8b4fe;
  --primary-400: #c084fc;
  --primary-500: #a855f7;
  --primary-600: #9333ea;
  --primary-700: #7c3aed;
  --primary-800: #6b21a8;
  --primary-900: #581c87;

  --secondary-50: #fdf4ff;
  --secondary-100: #fae8ff;
  --secondary-200: #f5d0fe;
  --secondary-300: #f0abfc;
  --secondary-400: #e879f9;
  --secondary-500: #d946ef;
  --secondary-600: #c026d3;
  --secondary-700: #a21caf;
  --secondary-800: #86198f;
  --secondary-900: #701a75;
}

/* Styles de base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #ffffff;
}

/* Classes utilitaires personnalisées */
.container-max {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

.section-padding {
  padding: 4rem 0;
}

@media (max-width: 640px) {
  .container-max {
    padding: 0;
  }
  .section-padding {
    padding: 3rem 0;
  }
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Boutons personnalisés */
.btn-primary {
  background: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: white;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Responsive pour boutons */
@media (max-width: 640px) {
  .btn-primary {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    width: auto;
    max-width: 100%;
  }
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #a21caf 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(147, 51, 234, 0.3);
}

.btn-cta {
  background: linear-gradient(135deg, #f3e8ff 0%, #fdf4ff 100%);
  border: 1px solid #e9d5ff;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  color: #7c3aed;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #e9d5ff 0%, #f5d0fe 100%);
  border-color: #d8b4fe;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  border: 2px solid #9333ea;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: #9333ea;
  transition: all 0.3s ease;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Responsive pour bouton outline */
@media (max-width: 640px) {
  .btn-outline {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
}

.btn-outline:hover {
  background: #9333ea;
  color: white;
}

/* Formulaires */
.form-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
  outline: none;
}

.form-textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  background: white;
  min-height: 120px;
  resize: vertical;
}

.form-textarea:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
  outline: none;
}

/* Cartes */
.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

/* Cartes de même hauteur */
.card-equal-height {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-equal-height .flex-grow {
  flex-grow: 1;
}

.card-equal-height .mt-auto {
  margin-top: auto;
}

/* Layout contact avec cartes alignées */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
}

/* Améliorations responsive pour les cards */
@media (max-width: 768px) {
  .card-equal-height {
    min-height: auto;
    height: auto;
  }
  
  /* Réduction des paddings sur mobile */
  .card-equal-height.p-6 {
    padding: 1rem;
  }
  
  .card-equal-height.lg\\:p-8 {
    padding: 1.25rem;
  }
}

/* Styles harmonisés pour toutes les cards */
.card-unified {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-unified:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-unified .card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.card-unified .card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.card-unified .card-content {
  flex-grow: 1;
  text-align: center;
}

.card-unified .card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

/* Centrage parfait des grilles */
.grid-center {
  display: grid;
  place-items: center;
  justify-content: center;
}

/* Cartes de tarifs centrées */
.tarifs-grid-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tarifs-grid {
  display: grid;
  gap: 2rem;
  justify-items: center;
}

.tarifs-grid-2 {
  grid-template-columns: repeat(2, minmax(300px, 400px));
}

.tarifs-grid-3 {
  grid-template-columns: repeat(3, minmax(250px, 300px));
}

@media (max-width: 768px) {
  .tarifs-grid-2,
  .tarifs-grid-3 {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Améliorations responsive pour toutes les grilles de cards */
@media (max-width: 640px) {
  /* Réduction des gaps sur mobile */
  .gap-6 {
    gap: 1rem;
  }
  
  .gap-8 {
    gap: 1.5rem;
  }
  
  .lg\\:gap-8 {
    gap: 1.5rem;
  }
  
  /* Grilles adaptatives */
  .grid.grid-cols-1.md\\:grid-cols-2.xl\\:grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-2.xl\\:grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3.xl\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  /* Contact grid sur mobile */
  .grid.grid-cols-1.lg\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .lg\\:col-span-2 {
    grid-column: span 1;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  /* Tablette - 2 colonnes max */
  .grid.grid-cols-1.md\\:grid-cols-2.xl\\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-2.xl\\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Modale de remerciement */
.modal-show {
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-show .modal-content {
  transform: scale(1) !important;
}

.modal-content {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation de l'icône de succès */
@keyframes checkmark {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.success-icon path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmark 0.6s ease-in-out 0.3s forwards;
}

/* Styles pour le menu mobile */
#mobile-menu-button {
  position: relative;
  z-index: 10;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

#mobile-menu-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

#mobile-menu-button:focus {
  outline: 2px solid #9333ea;
  outline-offset: 2px;
}

#mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 20;
  margin-top: 0.5rem;
}

/* === TAILWIND CSS UTILITIES === */

/* Layout */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

/* Flexbox */
.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* Grid */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .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\:hidden {
    display: none;
  }
}

@media (min-width: 768px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Spacing */
.m-0 {
  margin: 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mr-4 {
  margin-right: 1rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.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;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pl-12 {
  padding-left: 3rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

/* Width & Height */
.w-6 {
  width: 1.5rem;
}

.w-8 {
  width: 2rem;
}

.w-12 {
  width: 3rem;
}

.w-16 {
  width: 4rem;
}

.w-full {
  width: 100%;
}

.h-6 {
  height: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-16 {
  height: 4rem;
}

.h-auto {
  height: auto;
}

.min-h-screen {
  min-height: 100vh;
}

/* Colors */
.bg-white {
  background-color: #ffffff;
}

.bg-purple-100 {
  background-color: #faf5ff;
}

.bg-purple-600 {
  background-color: #9333ea;
}

.bg-purple-700 {
  background-color: #7c3aed;
}

.bg-primary-100 {
  background-color: #f3e8ff;
}

.bg-primary-600 {
  background-color: #9333ea;
}

.bg-primary-700 {
  background-color: #7c3aed;
}

.bg-secondary-100 {
  background-color: #fae8ff;
}

.bg-secondary-600 {
  background-color: #c026d3;
}

.bg-secondary-700 {
  background-color: #a21caf;
}

.bg-red-100 {
  background-color: #fef2f2;
}

.bg-red-600 {
  background-color: #dc2626;
}

.bg-red-700 {
  background-color: #b91c1c;
}

.bg-blue-100 {
  background-color: #eff6ff;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-blue-700 {
  background-color: #1d4ed8;
}

.bg-green-100 {
  background-color: #f0fdf4;
}

.text-white {
  color: #ffffff;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-900 {
  color: #111827;
}

.text-purple-100 {
  color: #faf5ff;
}

.text-purple-200 {
  color: #e9d5ff;
}

.text-purple-600 {
  color: #9333ea;
}

.text-primary-400 {
  color: #c084fc;
}

.text-primary-600 {
  color: #9333ea;
}

.text-primary-700 {
  color: #7c3aed;
}

.text-secondary-600 {
  color: #c026d3;
}

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
  border-color: #d1d5db;
}

.border-2 {
  border-width: 2px;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-purple-200 {
  border-color: #e9d5ff;
}

.border-purple-600 {
  border-color: #9333ea;
}

.border-primary-500 {
  border-color: #a855f7;
}

.border-red-200 {
  border-color: #fecaca;
}

.border-blue-200 {
  border-color: #bfdbfe;
}

/* Border radius */
.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Font sizes */
.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;
}

/* Font weights */
.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Text alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Transitions */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.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;
}

/* Hover effects */
.hover\:bg-primary-700:hover {
  background-color: #7c3aed;
}

.hover\:bg-red-700:hover {
  background-color: #b91c1c;
}

.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}

.hover\:text-white:hover {
  color: #ffffff;
}

.hover\:text-primary-400:hover {
  color: #c084fc;
}

.hover\:text-primary-700:hover {
  color: #7c3aed;
}

.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);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* Focus styles */
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-ring-offset-shadow);
}

.focus\:ring-primary-500:focus {
  --tw-ring-color: #a855f7;
}

.focus\:border-primary-500:focus {
  border-color: #a855f7;
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Padding utilities */
.px-container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 640px) {
  .px-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Responsive utilities */
@media (max-width: 640px) {
  .container-max {
    padding: 0;
  }

  .py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .text-3xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  /* Améliorations responsive pour les sections */
  .section-padding {
    padding: 2rem 0;
  }

  /* Ajustements pour les boutons dans les sections */
  .flex.flex-col.sm\:flex-row.gap-4 {
    gap: 0.75rem;
  }

  .flex.flex-col.sm\:flex-row.gap-4 > * {
    width: 100%;
  }

  /* Amélioration de l'espacement du header mobile */
  .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: fadeIn 0.8s ease-out;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}
