/* ----- Global ----- */
body {
margin: 0;
padding: 0;
font-family: Helvetica, Arial, sans-serif;
background-color: #f5f5f5;
color: #333;
}

.container {
max-width: 1200px;
margin: auto;
padding: 20px;
}

h1 {
text-align: center;
font-size: 2em;
margin-bottom: 0.5rem;
color: #222;
}
h2 {
text-align: center;
font-size: 1em;
font-style: italic;
margin-bottom: 1rem;
color: #222;
}
h3 {
text-align: center;
font-size: 1em;
font-style: italic;
font-weight: 700;
margin-bottom: 1rem;
color: #222;
}

/* ----- Galerie 8 images par ligne ----- */
.gallery {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
margin-bottom: 30px;
}

.gallery img {
width: 100%;
height: auto;
border-radius: 4px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}

.gallery img:hover {
transform: scale(1.02);
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gallery img.selected {
outline: 3px solid #333;
transform: scale(1.03);
}

/* ----- Bouton tirage ----- */
#btn-tirage {
display: none;
margin: 20px auto 40px auto;
padding: 14px 28px;
font-size: 18px;
background-color: #6f90b0;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}

#btn-tirage:hover {
background-color: #16589b;
}

/* ----- Formulaire ----- */
form {
background-color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
max-width: 700px;
margin: 30px auto;
}

form label {
display: block;
margin-top: 15px;
font-weight: bold;
color: #444;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
font-size: 16px;
padding: 12px;
width: 100%;
box-sizing: border-box;
border-radius: 6px;
border: 2px solid #ccc;
margin-top: 5px;
margin-bottom: 20px;
transition: border-color 0.3s;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form select:focus,
form textarea:focus {
border-color: #0066cc;
outline: none;
}

form textarea {
min-height: 150px;
resize: vertical;
}

form button {
display: block;
width: 100%;
padding: 14px 0;
font-size: 18px;
background-color: #0066cc;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s;
margin-top: 10px;
}

form button:hover {
background-color: #0055aa;
}

/* ----- Aperçu de la photo ----- */
.preview {
text-align: center;
margin-top: 25px;
}

.preview img {
max-width: 100%;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
.gallery {
grid-template-columns: repeat(3, 1fr);
}
}

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

```
form {
    padding: 20px;
}
```

}

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

```
form h1 {
    font-size: 2em;
}
```

}
