html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #888888;
    background-color: #fafafa;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #222;
}

.banner-title {
    line-height: 1.25;
}

/* Responsive typography avec fallbacks */
@media (max-width: 640px) {
    .banner-title { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
}

@media (min-width: 641px) and (max-width: 768px) {
    .banner-title { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
}

@media (min-width: 769px) {
    .banner-title { font-size: 2.488rem; }
    h2 { font-size: 1.998rem; }
    h3 { font-size: 1.602rem; }
    h4 { font-size: 1.286rem; }
}

.section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.container {
    max-width: 1202px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

.header {
    background: white;
    background-image: url('../images/ludotheque.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    opacity: 0.9;
    z-index: 1;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
}

/* Navigation toujours visible */
.navbar {
    flex-wrap: wrap;
}

@media (max-width: 639px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: #888888;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #FE6019;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #FE6019;
    color: white;
}

.btn-primary:hover {
    background: rgba(254, 96, 25, 0.9);
}

.text-primary {
    color: #FE6019;
}

.card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
    .card {
        padding: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .card {
        padding: 1.5rem;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.row > * {
    padding: 0 0.75rem;
}

.footer {
    background: #1a202c;
    color: #ceced0;
}

.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 {
    color: white !important;
}

/* Images responsive (sauf images de jeux) */
img:not(.game-image) {
    max-width: 100%;
    height: auto;
}

/* Breakpoint xs pour Tailwind */
@media (min-width: 475px) {
    .xs\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.calendar-frame {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 5 / 3;
}

.calendar-frame iframe {
    width: 100%;
    height: 100%;
}
