/* Styles de base et mise en page générale */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 960px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

header {
    background: #007bff;
    color: white;
    padding: 10px 20px; /* Un padding uniforme de 10px en haut et en bas */
    min-height: 70px;
    border-bottom: #0056b3 3px solid;
    text-align: center;
    
    /* Les nouvelles propriétés Flexbox pour le centrage */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
}

header nav li a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

header nav li a:hover {
    background-color: white;
    color: #007bff;
    border: 1px solid #007bff;
    transform: translateY(-2px);
}

header nav li a.active {
    background-color: #0056b3;
    border-radius: 20px;
}

/* Style du logo */
.logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

/* Sections principales des pages */
.introduction-formation, .details-section, .bouton-section, .cours-section, .info-contact, .formulaire-contact {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Effet de survol sur les sections */
section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Titres de section */
h2 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 24px;
}

/* Styles des boutons (fusion des classes .bouton et .bouton-inscription) */
.bouton, .bouton-inscription {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.bouton-inscription {
    background: #28a745;
}

.bouton:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.bouton-inscription:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Listes */
ul {
    padding-left: 20px;
    list-style-type: disc;
}

ul li {
    margin-bottom: 5px;
}

/* Styles pour les pages spécifiques */
.page-contact, .page-about, .page-formation, .page-galerie, .page-cours {
    padding: 20px;
}

/* Mise en page de la galerie */
.galerie-photos {
    margin-bottom: 40px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.photos-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Style de l'image d'accueil */
.image-accueil {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 30px 20px;
    background: #333;
    color: white;
    margin-top: 40px;
    font-size: 14px;
    border-top: 5px solid #007bff;
}

footer p {
    margin: 0;
}

/* Styles des liens de réseaux sociaux */
.social-links {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links a {
    color: white;
    font-size: 32px;
    margin: 0 15px;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    border-radius: 50%;
    padding: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Effets de survol spécifiques */
.social-links a.facebook-icon {
    background-color: #3b5998;
}

.social-links a.whatsapp-icon {
    background-color: #25d366;
}

.social-links a.facebook-icon:hover {
    transform: scale(1.1);
    background-color: #2d4373;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.social-links a.whatsapp-icon:hover {
    transform: scale(1.1);
    background-color: #1aae56;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Pour le cas où les icônes sont aussi utilisées dans la galerie, comme on l'avait vu */
.page-galerie .social-links a {
    color: #007bff;
    background-color: transparent;
    box-shadow: none;
}

.page-galerie .social-links a.facebook-icon:hover {
    color: #3b5998;
    background-color: transparent;
    transform: scale(1.2);
    box-shadow: none;
}
.page-galerie .social-links a.whatsapp-icon:hover {
    color: #25d366;
    background-color: transparent;
    transform: scale(1.2);
    box-shadow: none;
}

/* Styles pour le formulaire de contact */
.page-contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.page-contact form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #007bff;
    font-size: 16px;
}

.page-contact form input,
.page-contact form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact form input:focus,
.page-contact form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.page-contact form textarea {
    resize: vertical;
    min-height: 150px;
}

.page-contact form button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact form button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}
/* Styles pour la section Avantages */
.avantages {
    background-color: #e9ecef;
    text-align: center;
    padding: 40px 20px;
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.avantage-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.avantage-item i {
    font-size: 45px;
    color: #007bff;
    margin-bottom: 15px;
}

.avantage-item h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 20px;
}

/* Styles pour la section Actualités */
.actualites {
    background: #f8f9fa;
    padding: 40px 20px;
}

.actualites h2 {
    text-align: center;
}

.actualites-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.actualite-item {
    background: white;
    padding: 25px;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 45%; /* S'ajuste pour deux colonnes sur grand écran */
    max-width: 500px;
    transition: box-shadow 0.3s ease;
}

.actualite-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.actualite-item h3 {
    margin-top: 0;
    color: #007bff;
}

/* Styles pour la section Avantages */
.avantages {
    background-color: #e9ecef;
    text-align: center;
    padding: 40px 20px;
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.avantage-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.avantage-item i {
    font-size: 45px;
    color: #007bff;
    margin-bottom: 15px;
}

.avantage-item h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 20px;
}

/* Styles pour la section Actualités */
.actualites {
    background: #f8f9fa;
    padding: 40px 20px;
}

.actualites h2 {
    text-align: center;
}

.actualites-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.actualite-item {
    background: white;
    padding: 25px;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 45%;
    max-width: 500px;
    transition: box-shadow 0.3s ease;
}

.actualite-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.actualite-item h3 {
    margin-top: 0;
    color: #007bff;
}

.bouton-actualite {
    display: inline-block;
    margin-top: 15px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.bouton-actualite:hover {
    background-color: #218838;
}

/* Correction des styles pour l'en-tête */
header h1,
header h2,
header p {
    margin: 0;
}

header nav {
    margin-top: 15px; /* Pour un espacement propre entre les titres et la navigation */
}
/* Suppression des marges pour un contrôle précis */
header .titres-header h1,
header .titres-header h2,
header .logo,
header nav {
    margin: 0;
}

/* Espacement entre les éléments */
header .logo {
    margin-bottom: 5px;
}

header .titres-header {
    margin-bottom: 10px;
}
/* Correction de l'espacement pour la page d'accueil */
header h1,
header h2 {
    margin: 0;
}

header nav {
    margin-top: 10px; 
}
/* --- RESPONSIVE DESIGN POUR LES ÉCRANS PLUS PETITS --- */

/* Règle générale pour que toutes les images s'adaptent à la taille de leur conteneur */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    /* Style pour la navigation du menu sur les petits écrans */
    header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }

    nav li {
        margin: 5px 0;
    }

    nav a {
        padding: 10px 20px;
        width: 100%;
    }

    /* Style pour les sections de la page d'accueil */
    .avantages-grid,
    .actualites-container {
        flex-direction: column; /* Les éléments de ces grilles s'empilent verticalement */
        gap: 20px;
    }

    .avantage-item,
    .actualite-item {
        width: 100%;
    }

    /* Ajustement des titres et du logo pour le centrage */
    .titres-header {
        text-align: center;
        margin-top: 15px;
    }

    .logo {
        margin: 0 auto;
    }
}
/* Cette règle garantit que les images et les vidéos s'adaptent */
img,
video {
    max-width: 100%; /* Ne dépasse jamais 100% de la largeur du parent */
    height: auto;    /* Maintient toujours le ratio d'aspect */
    display: block;  /* Aide à la gestion de la largeur */
}
body {
    /* Marge et padding à zéro pour éviter les décalages par défaut du navigateur */
    margin: 0; 
    padding: 0;
    
    /* Empêche le défilement horizontal. C'est un "pansement", 
       mais il garantit que le blanc à droite disparaît. */
    overflow-x: hidden; 
}
/* --- STYLES POUR LA PAGE COURS --- */

/* Conteneur pour les vidéos YouTube (Ratio 16:9) */
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    margin-bottom: 15px;
    border-radius: 8px;
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

/* Grille pour les cours */
.cours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Style spécifique pour chaque carte de cours */
.cours-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #007bff;
}
2. Création du fichier cours.html
Maintenant, voici la structure que je te propose pour ton fichier cours.html. Elle reprend ton en-tête et ton pied de page pour garder la cohérence :

HTML

<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cours - École de Formation Paramédicale AL-RAED</title>
    <link rel="stylesheet" href="site_al_raed.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
</head>
<body>

<header>
    <img src="images/logo-alRaed.jpg" alt="Logo de l'École Al-Raed" class="logo">
    <div class="titres-header">
        <h1>AL-RAED Private Paramedical Training School (AFLOU)</h1>
        <h2>Espace Pédagogique - Cours en ligne</h2>
    </div>
    <nav>
        <ul>
            <li><a href="index.html">Accueil</a></li>
            <li><a href="about.html">À Propos</a></li>
            <li><a href="formations.html">Formations</a></li>
            <li><a href="contact.html">Contact</a></li>
            <li><a href="cours.html" class="active">Cours</a></li>
            <li><a href="galerie.html">Galerie</a></li>
        </ul>
    </nav>
</header>

<main class="container page-cours">
    <h2>Nos modules de cours</h2>
    <p>Retrouvez ici les supports vidéos et documents pour vos révisions.</p>

    <div class="cours-grid">
        
        <article class="cours-card">
            <h3><i class="fas fa-notes-medical"></i> Soins Infirmiers - Module 1</h3>
            <div class="video-responsive">
                <iframe src="https://www.youtube.com/embed/VIDEO_ID_ICI" allowfullscreen></iframe>
            </div>
            <p>Description courte du cours pour aider l'élève à comprendre le sujet traité.</p>
            <a href="#" class="bouton">Télécharger le support (PDF)</a>
        </article>

        <article class="cours-card">
            <h3><i class="fas fa-heartbeat"></i> Anatomie et Physiologie</h3>
            <div class="video-responsive">
                <iframe src="https://www.youtube.com/embed/AUTRE_VIDEO_ID" allowfullscreen></iframe>
            </div>
            <p>Étude approfondie du système cardiovasculaire.</p>
            <a href="#" class="bouton">Accéder au cours</a>
        </article>

    </div>
</main>

<footer>
    <p>&copy; 2025 École Al-Raed. Tous droits réservés.</p>
    <p>Aflou, Algérie | Tél: 0661 85 30 35</p>
</footer>

</body>
</html>
.liste-telechargement {
    list-style: none;
    padding: 0;
}

.liste-telechargement li {
    background: #fff;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #28a745; /* Vert pour le téléchargement */
    display: flex;
    align-items: center;
    gap: 15px;
}

.liste-telechargement i {
    color: #28a745;
    font-size: 20px;
}