/* @tailwind base; @tailwind components; @tailwind utilities; @layer components { .btn-primary { @apply py-2 px-5 bg-violet-500 text-white font-semibold rounded-full shadow-md hover:bg-violet-700 focus:outline-none focus:ring focus:ring-violet-400 focus:ring-opacity-75; } } @layer components { .btn-danger { @apply py-2 px-5 bg-red-500 text-white font-semibold rounded-full shadow-md hover:bg-red-700 focus:outline-none focus:ring focus:ring-red-400 focus:ring-opacity-75; } } */ @font-face { font-family: 'Alegreya'; src: url('../fonts/alegreya/alegreya-latin-700-normal.woff2') format('woff2'), url('../fonts/alegreya/alegreya-latin-700-normal.woff') format('woff'); font-weight: 700; font-style: normal; } body { margin: 0; padding: 0; background-color: rgb(38, 26, 51); background-image: url(../images/landscape.jpg); background-size: cover; background-attachment: fixed; background-position-y: 0; } body > header * { margin: 0; padding: 0; list-style: none; text-decoration: none; } #header { height: 200px; width: 100vw; transition: all 0.1s ease; } .navbar { /* position: absolute; */ padding: 50px; display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; } .navbar a { color: white; } .navbar .logo { font-size: 4em; font-weight: bold; } .navbar .nav-links ul { display: flex; } .navbar .nav-links ul li { margin: 0 25px; } .navbar .nav-links > ul > li { font-size: 1.1em; } .navbar .nav-links ul li.active a { color: #ed3c57; font-weight: 600; } .navbar .menu-burger { display: none; position: absolute; top: 50px; right: 30px; width: 35px; } .navbar .nav-links ul li { display: flex; justify-content: center; align-items: center; flex-direction: column; } /* Body */ main { width: 100%; box-sizing: border-box; margin: 0 auto; max-width: 900px; background-color: rgb(255, 255, 255); color: #37474F; padding: 0 50px; border-radius: 15px; min-height: 70vh; transition: all 0.2s ease; padding-top: 30px; padding-bottom: 30px; line-height: 1.54; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif; } .container { display: flex; justify-content: center; /* Centre le contenu horizontalement */ max-width: 1200px; /* Largeur maximale du container */ margin: 0 auto; /* Centre le container dans la page */ padding: 20px; flex-direction: row-reverse; } /* Style de base pour l'aside */ aside { margin-left: 20px; width: 250px; padding: 20px; background-color: #f9f9f9; border-radius: 15px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } /* En-tête de chaque section */ aside h2 { font-size: 1.2em; margin-bottom: 10px; color: #333; } /* Style des listes de liens */ aside ul { list-style-type: none; padding: 0; } aside li { margin-bottom: 8px; } aside a { text-decoration: none; color: #0073e6; } aside a:hover { text-decoration: underline; } .contenu { font-size: 1.2em; position: relative; } .contenu iframe { margin-left: auto; margin-right: auto; display: block; max-width: 100%; } .contenu img { margin-left: auto; margin-right: auto; display: block; } blockquote { font-family: Georgia, serif; font-size: 1.2em; font-style: italic; color: #555; /* Couleur du texte */ border-left: 4px solid #ccc; /* Bordure à gauche */ margin: 1.5em 10px; padding: 0.5em 10px; quotes: "“" "”" "‘" "’"; } blockquote::before { content: open-quote; font-size: 2em; color: #ccc; /* Couleur de la citation */ vertical-align: -0.4em; margin-right: 5px; } blockquote p { display: inline; } blockquote::after { content: close-quote; font-size: 2em; color: #ccc; vertical-align: -0.4em; margin-left: 5px; } hr { width: 40%; /* Ajustez la largeur selon vos préférences */ margin-bottom: 15px; margin-top: 30px; margin-left: auto; margin-right: auto; border: none; /* Enlève les bordures par défaut */ height: 2px; /* Épaisseur de la ligne */ background-color: #868686; /* Couleur de la ligne */ } img, .contenu-flex { max-width: 100%; } .article-preview { max-height: 350px; /* Hauteur maximale pour chaque article */ overflow: hidden; /* Masque le contenu qui dépasse */ position: relative; /* Nécessaire pour le gradient ou autre effet de coupure */ margin-bottom: 30px; text-overflow: ellipsis; } .article-preview p { /* margin: 0; */ display: -webkit-box; -webkit-line-clamp: 15; /* Nombre maximum de lignes (ici 5) */ line-clamp: 15; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } .article-preview::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background: linear-gradient(to bottom, transparent, white); } main h1 { font-size: 1.9em; color: #263238; } main h1 a { color: rgb(24, 25, 31); text-decoration: no; } main h1 a:hover { color: rgb(22, 21, 36); } .titre-article { display: flex; flex-direction: column; } .titre-article .article-by { font-size: 1em; color: gray; margin: 0; } .titre-article h1 { margin: 0; } .table-articles { width: 100%; } .resize { position: fixed; bottom: 50px; right: 50px; } .size-max { max-width: 90vw; } .size-max-form { max-width: 85vw; } .hidden { display: none !important; } .unpublished { display: block; margin: 0px; padding: 20px; border-radius: 15px; background-color: rgb(197, 109, 9); color : white; text-align: center; font-weight: bold; font-size: 1.5em; } .intro { font-family: 'Alegreya', serif; font-size: 1.1em; } @media screen and (max-width: 1400px) { #header { height: 250px; } } @media screen and (max-width: 900px) { .resize { display: none; } #header.big { height: 100vh; } .navbar { padding: 0; position: absolute; } .nav-links { top: 0; left: 0; position: absolute; background-color: rgba(0, 255, 221, 0.308); width: 100%; height: 100vh; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(7px); margin-left: -100%; transition: all 0.1s ease; } .nav-links ul { display: flex; flex-direction: column; align-items: center; } .navbar .menu-burger { display: block; } .nav-links.mobile-menu { margin-left: 0; } .navbar .nav-links > ul > li { margin: 25px 0; font-size: 1.2em; } .navbar .nav-links ul li { flex-direction: column; } .navbar .logo { position: absolute; top: 40px; left: 30px; font-size: 2em; } #header { height: 30vh; } main { padding: 20px 20px; } }