body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background-color: #f9fafb;
    color: #111;
}


main {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}


h1 {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 80px;
}


.conteneur {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.photos {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.photos:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.photos img {
    width: 100%;
    display: block;
}


.rebours {
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.rebours h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.rebours p {
    font-size: 15px;
    color: #555;
    margin-bottom: 28px;
}


.boutton {
    align-self: center;
    text-decoration: none;
    background-color: #2563eb;
    color: white;
    padding: 14px 34px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color .2s ease, transform .2s ease;
}

.boutton:hover {
    background-color: #1e4fd8;
    transform: translateY(-2px);
}


@media (max-width: 900px) {

    h1 {
        font-size: 34px;
        margin-bottom: 60px;
    }

    .conteneur {
        grid-template-columns: 1fr;
    }
}
 
