<link rel="stylesheet" href="css/style.css">
/* Le Journal - feuille de style unique, partagee par toutes les pages */

/* Remise a zero des marges par defaut du navigateur */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222222;
  background-color: #f4f4f4;
}

/* Le bandeau du haut, present sur toutes les pages */
header {
  background-color: #1a1a2e;
  color: #ffffff;
  padding: 30px 20px;
  text-align: center;
}

header h1 {
  font-size: 36px;
  letter-spacing: 2px;
}

header p {
  color: #b0b0c0;
  font-size: 14px;
  margin-top: 6px;
}

/* La zone de contenu, centree et limitee en largeur */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* La liste des articles sur la page d'accueil */
.liste-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.carte {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  width: 260px;
}

.carte img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.carte-texte {
  padding: 15px;
}

.carte h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.carte h2 a {
  color: #1a1a2e;
  text-decoration: none;
}

.carte h2 a:hover {
  text-decoration: underline;
}

.date {
  color: #888888;
  font-size: 13px;
  margin-bottom: 10px;
}

.carte p {
  font-size: 14px;
}

/* La page de detail d'un article */
.article img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  margin-bottom: 25px;
}

.article h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.chapo {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.article p {
  margin-bottom: 15px;
}

.retour {
  display: inline-block;
  margin-top: 25px;
  color: #1a1a2e;
}

/* Le pied de page, present sur toutes les pages */
footer {
  background-color: #1a1a2e;
  color: #b0b0c0;
  text-align: center;
  padding: 25px 20px;
  font-size: 14px;
}
