/* 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;
}
 
/* Ajouts de la seance 3 : navigation d'article, formulaires, messages */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}
 
.appel {
    margin-top: 40px;
    font-size: 18px;
}
 
.formulaire {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    padding: 30px;
    max-width: 560px;
}
 
.formulaire h2 {
    font-size: 26px;
    margin-bottom: 10px;
}
 
.formulaire label {
    display: block;
    font-weight: bold;
    margin: 18px 0 6px;
}
 
.formulaire input[type="text"],
.formulaire input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #bbbbbb;
}
 
.formulaire__choix {
    display: block;
    font-weight: normal;
    margin: 6px 0;
}
 
.formulaire button {
    margin-top: 24px;
    padding: 12px 24px;
    background-color: #1a1a2e;
    color: #ffffff;
    border: 0;
    font-size: 16px;
    cursor: pointer;
}
 
.message {
    padding: 12px 16px;
    margin: 16px 0;
    border-left: 4px solid;
}
 
.message--erreur {
    background-color: #fdecea;
    border-color: #c0392b;
    color: #8e2a1f;
}
 