/* Palette de couleur minimaliste */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0c0c0c;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    padding: 20px;
    background-color: #0c0c0c;
    width: 100%;
    border-bottom: 1px solid #282828;
}

.header h1 {
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
}
.home-button {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    background-color: #0f33ff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 0px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.home-button:hover {
    background-color: #6175e4;
}

/* === TABLETTE === */
@media (min-width: 769px) and (max-width: 1024px) {
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 500px) !important;
    gap: 50px;
 
    padding: 40px 20px;
    width: 100%;
    justify-content: center;
}
}

/* === TÉLÉPHONE === */
@media (max-width: 768px) {
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 400px) !important;
    gap: 50px;

    padding: 40px 20px;
    width: 100%;
    justify-content: center;
}
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 700px);
    gap: 50px;

    padding: 40px 20px;
    width: 100%;
    justify-content: center;
} 

.project-card {
    background-color: #282828;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(15, 51, 255, 0.5);
}

.project-card img {
    width: 100%;
    filter: grayscale(30%);
    border-bottom: 2px solid #0f33ff;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-info h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #fff;
}

.project-info p {
    font-size: 1em;
    color: #aaa;
    margin-bottom: 20px;
}

.btn-view {
    display: inline-block;
    padding: 10px 20px;
    color: #0f33ff;
    background-color: transparent;
    border: 2px solid #0f33ff;
    text-decoration: none;
    border-radius: 0px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-view:hover {
    background-color: #0f33ff;
    color: #0c0c0c;
}
@media (max-width: 768px) {
  .project-card img {
    flex-basis: fit-content;
}
}


.medium {
    grid-column: span 1;
    grid-row: span 2;
}

.small {
    grid-column: span 1;
    grid-row: span 1;
}
