* {
    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 /*position de la partie principal*/
{
    padding: 120px 10% 60px 10%; /* Haut, droite, bas, gauche */
}
.content h1, .content h2 { /* Titres principaux et secondaires */
    color: darkred;
    margin-bottom: 10px;
}

.intro p { /* Paragraphe d'introduction */
    font-size: 1.1em; /* Taille du texte */
    line-height: 1.6; /* Hauteur de ligne */
}

section { /* Style des sections */
    background-color: #fff; /* Fond blanc */
    margin-bottom: 60px; /* Espace en dessous */
    opacity: 0; /* Transparence initiale */
    transform: translateY(40px); /* Décalage initial */
    animation: fadeInUp 1s ease forwards; /* Animation d'apparition */
}

/* Animation progressive pour chaque section (décalage léger entre elles) */
section:nth-of-type(1) { animation-delay: 0.2s; } 
section:nth-of-type(2) { animation-delay: 0.4s; }
section:nth-of-type(3) { animation-delay: 0.6s; }
section:nth-of-type(4) { animation-delay: 0.8s; }
section:nth-of-type(5) { animation-delay: 1s; }


/*liste*/
ul, ol {
    margin: 10px 0 10px 25px;   /* Marges: haut, droite, bas, gauche */
    line-height: 1.8; /* Hauteur de ligne */
}

ol li {
    margin-bottom: 5px; /* Espace en dessous des éléments de liste ordonnée */
}

/*tableau des courses*/
.table-bourses {
    width: 100%;
    border-collapse: collapse; /* Fusion des bordures */
    margin-top: 20px; /* Marge au-dessus */
    background-color: white; /* Fond blanc */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Ombre légère */
    border-radius: 12px; /* Bords arrondis */
    overflow: hidden; /* Contenu débordant masqué */
}

.table-bourses th { /* En-têtes du tableau */
    background-color: darkred;
    color: white;
    text-align: left;
    padding: 15px;
    font-size: 1.05em;
}

.table-bourses td { /* Cellules du tableau */
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.table-bourses tr:nth-child(even) { /* Lignes paires */
    background-color: #f9f9f9;
}

.table-bourses tr:hover { /* Survol des lignes */
    background-color: #f1f1f1;
}

a {
    color: darkred;
    text-decoration: none;
}

a:hover {   /* Survol des liens */
    text-decoration: underline;
}
/*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;
    }
}