@import 'variables.css';

/* Styles de base */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-light);
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Styles de la galerie */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Styles des cartes formules */
.formule-card {
    min-height: 220px;
    color: #fff;
}

.formule-card h2, .formule-card p, .formule-card span {
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.formule-card p {
    color: #fff !important;
}

/* Styles des animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-in-out;
}

/* Media Queries */
@media (max-width: 640px) {
    .gallery-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Styles spécifiques pour les cartes formules */
.formule-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Styles pour les images de fond des cartes */
.formule-card[style*="background"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Styles des transitions */
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Styles des ombres */
.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* Styles du header */
.header {
    background-color: var(--background-card);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--gray-600);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Styles du footer */
.footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: var(--spacing-2xl) 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: var(--spacing-md);
}

.footer-text {
    color: var(--text-light);
}

.footer-link {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--background-card);
}

.footer-border {
    border-top: 1px solid var(--border-dark);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    text-align: center;
    color: var(--text-light);
}

/* Styles des boutons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-card);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--background-card);
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--background-light);
    color: var(--primary-hover);
}

/* Styles des cartes */
.card {
    background-color: var(--background-card);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Styles des images */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles des sections */
.section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

/* Styles des grilles */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Styles des popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.popup-content {
    background-color: var(--background-card);
    padding: var(--spacing-xl);
    border-radius: 0.5rem;
    max-width: 90%;
    width: 500px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--gray-700);
}

/* Styles responsifs */
/* Très petits écrans (téléphones) */
@media (max-width: 380px) {
    .text-4xl {
        font-size: 1.75rem;
    }

    .text-2xl {
        font-size: 1.25rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }

    .px-4 {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .py-4 {
        padding-top: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }

    .gallery-height {
        height: 200px;
    }
}

/* Petits écrans */
@media (min-width: 381px) and (max-width: 640px) {
    header nav .flex {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    header nav .flex .flex {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .h-screen {
        height: auto;
        min-height: 100vh;
    }

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

    .text-2xl {
        font-size: 1.5rem;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(1, 1fr);
    }

    .gallery-height {
        height: 200px;
    }

    .flex-col {
        flex-direction: column;
    }

    .gap-4 {
        gap: var(--spacing-sm);
    }
}

/* Écrans moyens */
@media (min-width: 641px) and (max-width: 1024px) {
    header nav .flex .flex {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .h-screen {
        height: auto;
        min-height: 100vh;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-height {
        height: 250px;
    }
}

/* Grands écrans */
@media (min-width: 1025px) {
    header nav .flex {
        flex-direction: row;
        gap: var(--spacing-lg);
    }

    .h-screen {
        height: 100vh;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-height {
        height: 300px;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 var(--spacing-md);
    }
} 