/*Var color*/
:root {
    --black: #030303;
    --white: aliceblue;
    --background1: #b7c0c0;
    --background2: #8c8f8f;
    --progressbar1: red;
    --progressbar2: yellow;
    --progressbar3: green;
    --backgroundbox: #f8f9fa17;
    --bleuciel: #00aaff;

}

/*fix la nav*/
html {
  scroll-padding-top: 100px; 
}

/* Background */
body {
    background-image: linear-gradient(0, var(--background2)0%, var(--background2)45%, var(--background1)65%, var(--background1)100%);
    /* background-image: url(/img/background.jpg); */
    background-position: center;
    background-repeat: no-repeat; 
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    width: 100%;
}

/* Navbar */
.navbar-expand {
    background-color: var(--black) !important;
}

.navbar-collapse {
    justify-content: center !important;
    align-content: center !important;
}

.navbar-brand {
    margin-left: 20px;
}

.nav-link {
    color: var(--white) !important;
    font-size: 1.5em !important;
}

#select_lang {
    position: fixed;
    right: 80px;
    top: 35px;
    appearance: base-select;
    border: solid 1px var(--white);
    color: var(--white);
    background-color: var(--black);
    z-index: 9999;
}

#select_lang option {
    background-color: var(--black);
    color: var(--white);
}

main {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding-top: 120px;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

/* Espacement pour tous les div dans main */
main > div {
    width: 100%;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

/* Style pour les paragraphes et listes */
main p, main ul {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 600;
}

main h2, main h3, main h4 {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

section {
    margin-bottom: 50px;
}

.bts_wrapper {
    display: flex;
    gap: 150px;
    align-items: flex-start;
}

.bts_wrapper > div {
    flex: 1;
}

.bts_title {
    margin-bottom: 50px;
}

.moi_presentation {
    margin-top: 50px;
    font-size: 1.5em;
}

.box {
    border: 2.5px solid var(--black);
    padding: 20px;
    border-radius: 12px;
    background-color: var(--backgroundbox);
    margin: 20px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-height: auto;
}

/*mes compétences*/
.my_comp {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my_comp li {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 220px;
}

.my_comp li img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.my_comp .label {
    text-align: center
}

/*lien linkedin*/
.lien_link {
    width: 50px;
    height: auto;
    margin-left: 50px;
    
}
/*Début Lien RSS*/
/* Le conteneur parent */
#rss-feed-ia {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    list-style: none;
}

/* La Carte */
.rss-card {
    background: var(--background2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px); 
}

.rss-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--bleuciel); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Le Badge de la source */
.card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bleuciel);
    font-weight: bold;
    margin-bottom: 12px;
}

/* Le Titre */
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--white);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Coupe le texte après 3 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Le Footer */
.card-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.card-date {
    font-size: 0.8rem;
    color: var(--black);
}

.card-arrow {
    color: var(--black);
    font-weight: bold;
    transition: transform 0.3s;
}

.rss-card:hover .card-arrow {
    transform: translateX(5px);
}
/*Fin Lien RSS*/