/**
 * AIPEC Theme - CSS Principal
 * Combinaison de Tailwind CSS et styles personnalisés
 */

/* === RESET ET BASE === */
* {
    box-sizing: border-box;
}

body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset pour le div principal */
.min-h-screen {
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset pour éliminer tout espace autour du carrousel */
main {
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset spécifique pour les sections */
section {
    margin: 0;
}

/* Reset pour le carrousel spécifiquement */
.hero-carousel {
    margin: 0 !important;
    padding: 0 !important;
    top: 0;
}

/* Forcer les classes Tailwind à zéro espacement */
.min-h-screen.bg-gradient-to-br {
    margin: 0 !important;
    padding: 0 !important;
}

/* Override de Tailwind CSS pour s'assurer qu'il n'y a pas d'espace */
.from-gray-50.to-white {
    margin: 0 !important;
    padding: 0 !important;
}

/* Sections de contenu après le carrousel */
.content-sections {
    margin-top: 0; /* Pas d'espace supplémentaire - défilement normal */
    padding-top: 2rem; /* Espacement supplémentaire */
    position: relative; /* Position normale */
    z-index: 10 !important; /* Z-index normal */
    background: white; /* Fond blanc */
}

/* === CONTENEURS === */
.container-custom, .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-custom, .container { 
        padding: 0 1.5rem; 
    }
}

@media (min-width: 1024px) {
    .container-custom, .container { 
        padding: 0 2rem; 
    }
}

/* === COULEURS ET GRADIENTS === */
.bg-gradient-primary {
    background: linear-gradient(135deg, #059669, #047857);
}

/* === BOUTONS === */
.btn-primary {
    background-color: #059669;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #047857;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: #059669;
    border: 1px solid #059669;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #ecfdf5;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: white;
    color: #059669;
}

/* === CLASSES TAILWIND ESSENTIELLES === */
.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-24 {
    width: 6rem;
}

.h-1 {
    height: 0.25rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.text-gray-900 {
    color: #111827;
}

.bg-green-600 {
    background-color: #059669;
}

.grid {
    display: grid;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-12 {
    gap: 3rem;
}

/* === TYPOGRAPHIE === */
.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.text-white {
    color: white;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.bg-white {
    background-color: white;
}

.bg-green-700 {
    background-color: #047857;
}

/* === ESPACEMENT === */
.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* === POSITIONNEMENT === */
.items-center {
    align-items: center;
}

.flex {
    display: flex;
}

.block {
    display: block;
}

/* === BORDURES ET OMBRES === */
.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* === TRANSITIONS === */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* === RESPONSIVE DESIGN === */
@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\:text-4xl {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:text-5xl {
        font-size: 3rem;
    }
    
    .lg\:text-6xl {
        font-size: 3.75rem;
    }
}
