* {
    margin: 0;
    padding: 0;
}
#b_nav /* format global de la barre de navigation*/
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #a31f34;
    padding: 10px 40px;
    font: 20px Arial;
    position: relative;
    top: 0; /* Pour partir de zero sans preendre en compte les marrges par defaut*/
    left: 0;       
}

#b_nav img /* arrondir l'image du logo*/
{
    border-radius: 8px;
}
nav ul   /*affichage des listes*/
{
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 100px;
}
nav a /* format des liens*/
{
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
nav a:hover /* animation quand on passe la souris dessous*/
{
    text-decoration: underline;
    text-decoration-color: red;
}
body /* propriete global du body*/
{
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
}
main {
    max-width: 1000px; /* Largeur maximale */
    margin: auto; /* Centrage horizontal */
    
}


main section { /* Style des sections */
    background-color: #fff; /* Fond blanc */
    padding: 20px; /* Espacement interne */
    margin-bottom: 20px; /* Marge inférieure */
    border-radius: 8px; /* Bords arrondis */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Ombre légère */
}

main section h2 { /* Titres des sections */

    color: #a31f34;
    margin-bottom: 10px;
}

/* Paragraphes */
main p {
    margin-bottom: 15px;
}

/* listes*/
ul {
    margin-left: 20px; /* Décalage du texte */
    margin-bottom: 15px;
}

ul li {
    margin-bottom: 8px;
}

/*Tables*/
table {
    width: 100%; /* Largeur complète */
    border-collapse: collapse; /* Supprime les doubles bordures */
    margin-bottom: 15px;
}

table th, table td {
    border: 1px solid #333; /* Bordure */
    padding: 10px; /* Espacement interne */
    text-align: left; /* Alignement du texte */
}

table th {
    background-color: #a31f34;
    color: #fff;
}


figure {
    margin: 15px 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

figcaption { /* Légendes des images */
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}


main a {
    color: #a31f34;
    text-decoration: underline;
}

main a:hover {
    color: #e63946;
}
/*footer*/
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 50px 40px 30px;
    margin-top: 80px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #A31F34;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #A31F34;
    padding-bottom: 10px;
}

.footer-section p {
    color: #bbb;
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-section em {
    color: #A31F34;
    font-style: italic;
}

/* Liens du footer */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #A31F34;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    background-color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-links a:hover {
    background-color: #8B0000;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.95rem;
}

/*animation*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*defilement fluide*/
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) 
{
    header h1 /* Ajustement titre */
    {
        font-size: 1.5em;
    }
    
    
    
    table th, table td /* Réduction texte tableau */
    {
        font-size: 0.9em;
        padding: 8px;
    }
}