
/* RESET */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* Style général */
body, html {
font-family: Arial, sans-serif;
/* border: solid 1px red;*/
}

.featured-section {
width: 80%;
margin: 50px auto;
padding: 20px;
border: 2px solid #333;
border-radius: 8px;
background-color: #f4f4f4;
overflow: hidden; /* Cache les articles qui sont en dehors du cadre */
}

.featured-container {
display: flex;
width: 300%;
transition: transform 1s ease-in-out;
}

.featured-item {
flex: 1;
padding: 20px;
box-sizing: border-box;
text-align: center;
}

.featured-item h3 {
font-size: 24px;
color: #333;
}

.featured-item p {
font-size: 16px;
color: #555;
}

h2 {
text-align: center;
margin: 30px 0 10px;
/*border: solid 1px pink;*/
}

/* === GRILLE RESPONSIVE === */
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
padding: 20px;
/*max-width: 1200px;*/
max-width: 900px;
margin: auto;
}

/* === IMAGES CARRÉES === */
.gallery img {
width: 100%;
height: 100%;
aspect-ratio: 1 / 1;       /* Ratio carré */
object-fit: cover;         /* Centre + recadrage */
object-position: center;   /* Centre largeur/hauteur */
border-radius: 12px;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
/*border: 1px solid red;*/
}

.gallery img:hover {
transform: scale(1.04);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* === PLEIN ÉCRAN === */
.fullscreen {
position: fixed;
top: 0;
width: 100%;
height: 100%;
inset: 0;
background-color: rgba(0,0,0,0.85);
display: none;
justify-content: center;
align-items: center;
z-index: 1000;
/*border: 1px solid red;*/
}

.fullscreen img {
max-width: 90%;
max-height: 90%;
border-radius: 12px;
object-fit: contain;
/* Pas de recadrage en plein écran */
}

.close-btn {
position: absolute;
top: 20px;
/*right: 20px;*/
right: 15px;
font-size: 26px;
font-size: 26px;
border: none;
background: rgba(255,255,255,0.6);
border-radius: 50%;
/*padding: 8px 14px;*/
padding: 8px 12px;
cursor: pointer;
}

