:root {
    --bg: #bbbbbb;
    --clear-bg: #dddddd;
    --text: #1a1a1a;
    --border: #333;
    --light-font: 1rem;
    --common-font: 1.5rem;
    --heavy-font: 2rem;
    --big-font: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Courier New', Courier, monospace;
    min-height: 100vh;
    min-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header, footer{
  display: flex;
    font-weight: bold;
    font-size: 0.9rem;
    opacity: 1;
    background-color: var(--bg);
    height: 50px;
    width: 100%;
    align-items: center;
    padding: 0 10px 0 10px;
}

header {
    position: fixed;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

header img{
    width: 48px;
    height: 48px;
}

.logo{
    display: flex;
    height: 48px;
}

.label {
    margin-left: 10px;
    height: 48px;     /* 2. Garde la hauteur du parent */
    width: 58px;     /* 3. Définis une largeur fixe pour la zone de "fenêtre" */
    object-fit: cover;/* 4. Remplit la zone en zoomant/croppant */
    transform: scale(2);
}

footer {
    border-top: 1px solid var(--border);
}

.corpus {
    flex: 1;
    padding-top: 60px;
    max-width: 800px;
}

.project-tab {
  display: grid;
  grid-template-columns: 120px 1fr; /* Image fixe à gauche, contenu flexible à droite */
  gap: 20px; /* Espacement entre image et contenu */
  align-items: center; /* Alignement vertical au centre */
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
  max-width: 800px;

  border: 4px double var(--border);
}

.project-tab:hover {
  transform: translateY(2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Style de l'image */
.project-tab img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* Style de la carte de projet */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Style du titre */
.project-card h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #2c3e50;
  font-weight: 600;
}

/* Style du sous-titre */
.project-card .sub {
  margin: 0;
  color: #7f8c8d;
  font-size: 1rem;
  line-height: 1.4;
}
/* Style du lien (call-to-action) */
.project-card a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: var(--heavy-font);
  transition: background-color 0.2s ease;
  align-self: flex-start; 
}
.project-card a:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

/* Responsive pour mobile */
@media (max-width: 600px) {
  .project-tab {
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    grid-template-rows: auto auto; /* Image puis contenu */
    gap: 15px;
  }

  .project-tab img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  .project-card {
    text-align: center;
  }

  .project-card a {
    align-self: center;
  }
}