body {
    font-family: Arial, sans-serif;
    background-color: #6acdeb;
    margin: 0;
    padding: 0;
    color: #333;
    text-align: center;
}

h1 {
    color: #2C3E50;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
    font-size: 4em;
    font-weight: bold;

}

h2 {
    font-size: 2.5em;
    margin-top: 20px;
    margin-bottom: 30px;
    ;
}

h3 {
    font-size: 2em;
    margin-top: 20px;
    margin-bottom: 30px;
    color: #2980B9;
    font-weight: bold;
}


p {
    font-size: 20px;
    line-height: 1.8;
    margin: 30px;
    text-align: justify;
    color: #1f22bb;
    font-weight: bold;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 20px 0;
}

.button {
    padding: 30px 40px;
    background-color: #2980B9;
    color: white;
    text-decoration: none;
    font-size: 1.4em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:active {
    background-color: #1A5276;
}

.button:focus {
    outline: none;
    box-shadow: 0 0 5px #2980B9;
}


.button:hover {
    background-color: #3498DB;
}

section {
    background-color: #f9f9f9;
    border: 2px solid #2980B9;
    border-radius: 10px;
    padding: 20px;
    margin: 40px auto;
    max-width: 1400px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #2C3E50;
    color: white;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.image-box {
    position: relative;
    width: 350px;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.caption {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.photo-credit {
    font-size: 0.9em;
    text-align: center;
    color: #7F8C8D;
    margin: 10px auto;
    font-style: italic;
}

.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 30px auto;
    max-width: 900px;
    background-color: #2980B9;
    padding: 10px;
    text-align: center;
}

.container>div {
    background-color: #f1f506;
    border: 2px solid red;
    padding: 10px;
    font-size: 20px;
    border-radius: 5px;
    min-height: 90px;

}

.image-container img {
    max-width: 90%;
    height: auto;
    margin-top: 30px;
}

/* Ajoute ensuite la classe spécifique */
.img-small {
    width: 800px !important;
    height: 600px !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 10px auto;
    display: block;
}


.map-container {
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 40px auto;
    border: 2px solid #2980B9;
    border-radius: 10px;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

form {
    display: grid;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input {
    padding: 8px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button[type="submit"] {
    padding: 20px 300px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: dodgerblue;
    color: white;
    cursor: pointer;
}


.button {
    display: inline-block;
    padding: 20px 30px;
    margin: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
    border: 2px solid;
    transition: background-color 0.3s, color 0.3s;
}


section {
    background-color: #f1f506;
    border: 2px solid red;
    border-radius: 10px;
    padding: 10px 0;
    max-width: 900px;
    margin: 0 auto 40px;
}


/* === Responsive design : Mobile-first breakpoints === */

/* Smartphones (portrait) — 0 à 480px */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 2em;
        margin: 40px 10px;
    }

    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 16px;
        margin: 15px;
    }

    .button-container {
        flex-direction: column;
        gap: 15px;
    }

    .button {
        font-size: 1em;
        padding: 15px 20px;
        width: 80%;
        margin: 0 auto;
    }

    .container {
        grid-template-columns: 1fr;
        max-width: 95%;
    }

    .image-container img,
    .img-small {
        width: 100% !important;
        height: auto !important;
    }

    button[type="submit"] {
        padding: 15px 40px;
        font-size: 16px;
    }
}

/* Tablettes — 481px à 768px */
@media screen and (min-width: 481px) and (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    .button-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .button {
        font-size: 1.1em;
        padding: 18px 25px;
    }

    .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-container img,
    .img-small {
        width: 100% !important;
        height: auto !important;
    }

    button[type="submit"] {
        padding: 15px 80px;
    }
}

/* Laptops et tablettes larges — 769px à 1279px */
@media screen and (min-width: 769px) and (max-width: 1279px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }

    .button {
        font-size: 1.2em;
        padding: 20px 30px;
    }

    .img-small {
        width: 90% !important;
        height: auto !important;
    }

    button[type="submit"] {
        padding: 20px 200px;
    }
}

/* Grands écrans — 1280px et + */
@media screen and (min-width: 1280px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }

    .img-small {
        width: 800px !important;
        height: 600px !important;
    }

    button[type="submit"] {
        padding: 20px 300px;
    }
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding-top: 56.25%;
    /* Ratio 16:9 (9 / 16 = 0.5625) */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}