/* Appliquer box-sizing border-box à tous les éléments pour une gestion plus simple des marges et du padding */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Style des liens : couleur par défaut et au survol */
a {
    color: #a1a1a1;
    text-decoration: none;
}

a:hover {
    color: #a1a1a1;
    text-decoration: underline;
}

/* Style de l'auteur (taille de police et couleur) */
.auteur {
    font-size: 0.8em;
    color: #333;
}

/* Corps principal de la page : alignement du texte et police par défaut */
body {
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

/* Citation avec bordure et arrière-plan */
blockquote {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    background-color: #e8f0fe;
    color: #000;
    padding: 10px;
}

/* Style de la liste déroulante (select) */
select {
    width: 100%;
    height: 45px;
    padding: 10px; 
    font-size: 0.7em;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-image: url('images/fleche-bas.png');
}

/* Style des boutons autres que formulaire */
button {
    background-color: #f2f2f2;
    color: #333333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 14px;
}

button:hover {
    background-color: #ebebeb;
}

/* Résultats de recherche dans une liste déroulante */
#searchResults {
	 margin-top: 20px;
    font-size: 0.8em;
}

/* Résultats de recherche dans une liste déroulante */
#result {
    font-size: 0.8em;
}


/* Date de publication */
.date-publication {
    font-size: 0.8em;
    color: #333;
}

/* Haut de page avec image de fond et alignement des éléments */
.top-header {
    position: static;
    width: 100%;
    background-color: #141414;
    background-image: url('images/banniere-diaporama.jpg');
    background-size: cover;
    background-position: right;
    height: 160px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 5px 12px;
}

/* Liens et icônes du haut de page */
.header-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-links a {
    color: white;
    text-decoration: none;
    font-size: 0.90em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Balises de titres h3 à h6 avec des couleurs et des marges adaptées */
h3 {
    margin-top: -1px;
    margin-bottom: 0;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

h4 {
    margin-bottom: 8px;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

h5 {
    margin-bottom: 0;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

h6 {
    margin-bottom: 0;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

/* Ligne horizontale (hr) style minimaliste */
hr {
    border: none;
    width: 5%;
    height: 1px;
    background-color: #666;
}

/* Navigation principale */
nav {
    position: static;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(128, 128, 128, 0.1);
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 0.90em;
    color: #000;
}

/* Liste de navigation sans puces ni marges */
nav ul.topnav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Alignement horizontal des éléments dans la barre de navigation */
nav ul.topnav li {
    float: left;
}

/* Liens dans la barre de navigation */
nav ul.topnav li a {
    display: inline-block;
    padding: 12px;
    text-decoration: none;
    transition: 0s;
}

/* Masquage des éléments pour les petits écrans (menu burger par exemple) */
nav ul.topnav li.icon {
    display: none;
}

/* Couleur des liens et style au survol */
nav a {
    color: #333333;
    text-decoration: none;
}

nav a:visited {
    color: #333333;
}

nav a:hover {
    color: #a1a1a1;
}

nav a:focus {
    color: #a1a1a1;
    outline: none;
}

/* Nombre de personnes et vues (taille de police) */
.nb-de-personnes {
    font-size: 1em;
    color: #333;
}

.nb-de-vues {
    font-size: 0.8em;
    color: #a1a1a1;
}

/* Zone principale du contenu */
main {
    color: #333;
    max-width: 1180px;
    margin: 0 auto;
}

/* Texte marqué (balise mark) */
mark {
    background-color: red;
    color: #ffffff;
    font-size: 0.6em;
    padding: 0 3px;
    vertical-align: middle;
}

/* Colonnes principales de la page */
.leftcolumn {
    float: left;
    width: 75%;
}

.rightcolumn {
    float: left;
    width: 25%;
    padding-left: 20px;
}

/* Fausse image (pour tests) */
.fakeimg {
    width: 100%;
    padding: 0;
}

/* Articles sous forme de carte */
.card {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
}

/* Nettoyage du float des colonnes */
.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Pied de page */
footer {
    width: 100%;
    background-color: #f2f2f2;
    font-size: 0.8em;
    text-align: center;
    color: #333333;
    padding: 30px 10px 25px;
    margin-top: 20px;
}

/* Lien pied de page */
footer a {
	color: #333333;
}

/* Survol lien pied de page */
footer a:hover {
	color: #333333;
}

/* Formulaire : largeur maximale et centrée */
form {
    width: 100%;
    margin: 0 auto;
}

/* Labels du formulaire */
label {
    display: block;
    margin-top: 10px;
    color: #333;
}

/* Champs de texte, e-mail et message dans le formulaire */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    outline: none;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border: 1px solid #343434;
}

/* Bouton d'envoi dans le formulaire */
input[type="submit"] {
    background-color: #f2f2f2;
    color: #333333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* Survol du bouton d'envoi */
input[type="submit"]:hover {
    background-color: #ebebeb;
}

/* Style de l'élément strong */
strong {
    color: #333333;
}

/* Effet de survol pour les images de blog et portfolio */
.blog-image:hover, .portfolio-image:hover {
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

/* Rétablissement de l'opacité des images au départ */
.blog-image, .portfolio-image {
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Nombre de visiteurs sur le site */
.visitor-count {
    font-size: 1em;
    color: #007FFF;
}

/* Vidéo responsive */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}