@import url('common.css');

body {
    background-image:
        linear-gradient(180deg, var(--overlay-top) 0%, var(--overlay-bottom) 100%),
        url(../img/back.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--ink);
    user-select: none;
    overflow: auto;
}

.main-content {
    flex: 1 0 auto;
}

.titre {
    margin-top: 140px;
    margin-bottom: 30px;
    text-align: center;
}

.titre h1 {
    font-size: 3.6rem;
    margin-bottom: 4px;
    padding-bottom: 0;
}

.titre h2 {
    margin-top: 0;
    padding-top: 0;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
}

.container {
    padding-top: 2%;
    padding-bottom: 4%;
    flex: 1;
}

.row {
    padding-top: 1%;
    padding-bottom: 2%;
}

.col-md-4 {
    text-align: center;
    margin-bottom: 10px;
}

.col-md-4 a {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.col-md-4 a:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 148, 87, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.img-fluid {
    max-width: 100%;
    height: 220px;
    width: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.col-md-4 a:hover .img-fluid {
    transform: scale(1.06);
}

.image-text {
    padding: 16px 10px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1.5rem;
    color: var(--ink);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

.col-md-4 a:hover .image-text {
    color: var(--accent-2);
}

/* Ajustement du contenu pour compenser la barre de navigation fixe */
.container-fluid {
    margin-top: 0;
}

/* Responsivité pour les tablettes */
@media (max-width: 768px) {
    .titre {
        margin-top: 110px;
    }

    .titre h1 {
        font-size: 2.6rem;
    }

    .titre h2 {
        font-size: 0.95rem;
    }
}

/* Responsivité pour les petits écrans */
@media (max-width: 576px) {
    .titre {
        margin-top: 100px;
    }

    .titre h1 {
        font-size: 2rem;
    }

    .first-image {
        margin-top: 10px;
    }
}
