:root {
    --bg: #0f172a;
    --text: #e5e7eb;
    --card: #1e293b;  
}

body.light {
    --bg: #ffffff;
    --text: #111;
    --card: #f1f5f9;
}

body {
    font-family: Arial;
    background: var(--bg);
    color: var(--text);
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    transition: 0.3s;
}


header{
    text-align:center;
    margin-bottom:40px;
}

.profile{
    display:flex;
    justify-content:center;
    margin-bottom:15px;
}

.profile img{
    width:140px;
    height:140px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid var(--card);
    transition: transform 0.3s ease;
}

.profile img:hover {
    transform: scale(1.05);
}

.tagline{
    opacity:0.7;
    margin:6px 0 12px 0;
}

.infos{
    list-style:none;
    padding:0;
}

.infos li{
    margin:4px 0;
}

.card, .edu-item {
    background: var(--card);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover{
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-stage {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stage-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #ccc;
}




.badges span{
    display:inline-block;
    color:white;
    padding:6px 10px;
    margin:4px;
    border-radius:6px;
    font-size:0.9rem;
    background:#64748b;
}

.badges span.cyber { background:#ef4444; }
.badges span.network { background:#3b82f6; }
.badges span.cloud { background:#10b981; }
.badges span.dev { background:#f59e0b; }

.edu-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:var(--card);
    padding:15px;
    border-radius:12px;
    margin-top:12px;
    gap:15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.edu-item:hover{
    transform:translateY(-3px);
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.edu-logo{
    background:#0ea5e9;
    color:white;
    font-weight:bold;
    padding:10px 14px;
    border-radius:8px;
    min-width:60px;
    text-align:center;
}

.edu-content{
    flex:1;
}

.edu-content h3{
    margin:0 0 4px 0;
    font-size:1rem;
}

.edu-content p{
    margin:0;
    opacity:0.7;
}

.edu-date{
    font-weight:bold;
    opacity:0.6;
}


#themeToggle{
    position:fixed;
    top:10px;
    right:10px;
    padding:10px;
    cursor:pointer;
}

.pdf-btn{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#334155;
    color:white;
    padding:12px;
    border-radius:10px;
    text-decoration:none;
}

.linkedin-btn{
    position:fixed;
    bottom: 20px;
    right: 88px;
    background:#0ea5e9;
    color:white;
    padding:12px;
    border-radius:10px;
    text-decoration:none;
}


.pdf-btn:hover, .linkedin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


.pdf-btn:active, .linkedin-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.pdf-btn:focus, .linkedin-btn:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 3px;
}

.reveal{
    opacity:0;
    transform:translateY(40px);
    transition:all 0.6s ease;
}

.reveal.active{
    opacity:1;
    transform:none;
}

.langue {
    margin-bottom: 12px;
}

.langue span {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.progress-bar {
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
    height: 18px;
}

.progress-fill {
    background: #3b82f6;
    height: 100%;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: right;
    padding-right: 6px;
    line-height: 18px;
    transition: width 1s ease-in-out;
}

.interets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.interet-card {
    background: #334155;
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.interet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}




footer {
    text-align: center;
    margin-top: 40px;
    padding: 15px 10px;
    font-size: 0.9rem;
    color: var(--text);
    border-top: 1px solid rgba(255,255,255,0.2);
}

footer .footer-links {
    margin-top: 8px;
}

footer .footer-links a {
    color: var(--text);
    margin: 0 8px;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-links a:hover {
    color: #34d399;
}

.infos a {
    color: #10b981;        
    text-decoration: none;  
    font-weight: 500;
    transition: 0.3s;
}

.infos a:hover {
    text-decoration: underline;
    color: #34d399;       
}



.langue-item {
    margin: 10px 0;
    font-size: 1rem;
}


.profil-card {
    background: var(--card-bg);
    padding: 2px;
    border-radius: 16px;
    line-height: 1.6;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-size: 1rem;
}




@media(max-width:700px){
    .card-stage {
        flex-direction: column;
        align-items: flex-start;
    }
    .stage-logo img {
        margin-bottom: 10px;
    }

    .interets-container { justify-content: center; }


    body{ padding:10px; }
    .edu-item{ flex-direction:column; align-items:flex-start; }
    .edu-date{ margin-top:6px; }
}

