body {
font-family: Arial, sans-serif;
margin: 0;
background: #fafafa;
color: #222;
}

.section {
max-width: 1100px;
margin: 10px auto;
padding: 20px;

}

.sectiontitle{
background-color:#222222;
color:#f8f9fa;
}

.sectioncams {
	display: flex;
	justify-content: center;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.sectioncams iframe {
	 width: 100%;
    height: 500px; 
    border: none;
}

.header-container {
    display: flex;
    flex-direction: column; /* logo+titre en haut, menu en dessous */
    align-items: center;
    justify-content: center;
    background-color: #222; /* même fond que sectiontitle */
    padding: 15px 20px;
    gap: 10px;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-title img {
    max-height: 80px;
    width: auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #f8f9fa;
}

/* Menu */
.navbar {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.navbar a {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active { /* active pour page courante */
    color: #ff4081;
}

/* Responsive */
@media (max-width: 700px) {
    .logo-title {
        flex-direction: column;
        gap: 10px;
    }
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
}


.hero-title {
font-size: 3rem;
font-weight: 700;
margin: 0;
}

.image-grid {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
margin-top: 20px;
}

.image-grid img {
width: 280px;
height: 380px;
object-fit: cover;
border-radius: 12px;
}

.clip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px 0;
}

/* Chaque élément (TikTok ou iframe) */
.clip-card {
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Forcer TikTok à respecter la taille */
.clip-card blockquote,
.clip-card .tiktok-embed {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* Forcer l’iframe à prendre la même taille */
.clip-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .clip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .clip-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px auto;
    padding: 15px 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pag-btn {
    padding: 10px 18px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s;
}

.pag-btn:hover:not(:disabled) {
    background: #ff4081;
}

.pag-btn:disabled {
    background: #888;
    cursor: not-allowed;
}

#pageNumbers {
    display: flex;
    gap: 10px;
}

.page-number {
    padding: 10px 14px;
    border-radius: 8px;
    background: #eee;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s;
}

.page-number:hover {
    background: #ddd;
}

.page-number.active {
    background: #ff4081;
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .clip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .image-grid img {
        max-width: 45%; /* 2 images côte à côte sur tablette */
    }
}

@media (max-width: 700px) {
    .logo-title {
        flex-direction: column;
        gap: 10px;
    }
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
    .clip-grid {
        grid-template-columns: 1fr;
    }
    .image-grid {
        flex-direction: column;
        align-items: center;
    }
    .image-grid img {
        max-width: 90%; /* image presque pleine largeur sur mobile */
    }
    .sectioncams iframe {
        width: 90%;
        height: 300px;
    }
}
