/* --- VARIABLES --- */
:root {
    --bg-color: #F5F5F7;
    --text-main: #1D1D1F;
    --text-dim: #636e72;
    --accent-primary: #287CCF;
    --accent-secondary: #cb3a02;
    --font-main: 'Inter', sans-serif;
    --nav-blur-bg: rgba(250, 250, 250, 0.8);
    --nav-blur: rgb(230, 230, 230);
    --card-bg: #FFFFFF;
    --input-bg: #fdfdfd;
    --input-border: #edf2f7;
}

/* --- DARK MODE VARIABLES --- */
body.dark-mode {
    --bg-color: #0f172a;
    --text-main: #E5E7EB;
    --text-dim: #b2b7bd;
    --accent-primary: #38bdf8;
    --nav-blur-bg: rgba(15, 23, 42, 0.8);
    --nav-blur: #1e293b;
    --card-bg: #1e293b;
    --input-bg: #0f172a;
    --input-border: #334155;
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

html {
    scroll-padding-top: 50px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease, fill 0.3s ease;
}

/* --- LAYOUT --- */
.container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Colonne Gauche - Fixe*/
header {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: max-content;
    width: 40%;
    padding: 80px 0;
}

header > *:last-child {
    margin-top: auto;
}

.intro-text { 
    font-size: 0.8rem;
    color: var(--text-dim);
    max-width: 320px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.keyword {
    color: var(--accent-primary);
}

/* Navigation */

nav {
    margin: 30px 0;
}

nav ul li {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

nav a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-left: 0;
}

/* Ligne verticale élégante (L'indicateur) */
nav a::before {
    content: '';
    position: absolute;
    left: -20px;
    width: 2px;
    height: 0;
    background-color: var(--accent-primary);
    transition: all 0.4s ease;
    opacity: 0;
}

nav a:hover {
    color: var(--text-main);
    letter-spacing: 3px;
}

nav a.active {
    color: var(--text-main);
    padding-left: 25px;
    letter-spacing: 4px;
}

nav a.active::before {
    height: 100%;
    left: 0;
    opacity: 1;
}

nav a.active {
    color: var(--accent-primary);
}

/* Colonne Droite - Contenu */
main {
    position: relative;
    width: 60%;
    padding: 80px 0;
}

footer {
    font-size: 0.8rem;
    color: var(--text-dim);
    transform: translateY(5px);
}

/* --- TYPOGRAPHIE --- */
h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 10px; display: inline-flex; color: var(--text-main); }
h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; color: var(--accent-primary); }
h3 { font-size: 1.1rem; color: var(--text-main); }
p { font-size: 1rem; color: var(--text-main); }

.status-dot {
    position: relative;
    top: 56px;
    left: 3px;
    height: 8px;
    width: 8px;
    background: var(--text-main);
    border-radius: 50%;
}

.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- SECTIONS CONTENT --- */
hr { margin: 50px 0px; border: none; border-top: 1px solid var(--nav-blur); }
.date { font-size: 0.8rem; font-weight: bold; color: var(--text-dim); }

/* A Propos */
.macro-skills-section {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

.macro-skill-card {
    padding: 5px;
    flex: 1;
    text-align: left;
}

.macro-skill-card h3 {
    color: var(--accent-secondary);
    margin-bottom: 15px;
}

.macro-skill-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
}


/* Expériences */
.item-pro { display: grid; grid-template-columns: 100px 1fr; gap: 20px; border-radius: 8px; padding: 20px; transition: 0.2s; }
.item-pro:hover { background: var(--card-bg); box-shadow: 0 0px 30px rgba(0,0,0,0.05); transform: scale(1.02); }
.item-pro .content .company { color: var(--accent-primary); font-size: 0.9rem; margin-top: 5px; margin-bottom: 10px; font-weight: 500;}
.item-pro .content p { font-size: 0.95rem; color: var(--text-dim); }
.item-pro .date { transform: translateY(4px); }

/* Diplomes */
.diploma { display: flex; flex-direction: row; gap: 20px;}
.diploma .item-diploma { background: var(--card-bg); border-radius: 8px; box-shadow: 0 0px 30px rgba(0,0,0,0.05); transition: background 0.3s; }
.diploma .diploma-content { padding: 20px; }
.diploma .school { color: var(--accent-primary); font-size: 0.9rem; margin-top: 5px; margin-bottom: 10px; font-weight: 500;}
.diploma p { font-size: 0.95rem; color: var(--text-dim); }
.diploma .icon-graduation {
    display: inline-block;
    transform: translateY(8px);
    margin-right: 8px;
    width: 28px;
    height: 28px;
    mask: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <path d="M12 3L1 9l11 6 9-4.91V17h2V9L12 3zm0 13l-7-3.82v3.5L12 20l7-4.32v-3.5L12 16z"/> </svg> ') no-repeat center / contain;
    background-color: var(--text-main);
}

#skill-detals .detals-request {
    margin: 50px 0;
}

/* Contact */
#contact { height: calc(100vh - 300px); min-height: max-content; }
.contact-section { display: flex; margin-bottom: 30px; align-items: center; justify-content: center; }
.contact-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    background-image: url('../img/akcil-contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    width: 100%;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    background: var(--input-bg);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(40, 124, 207, 0.1);
}

/* Style du bouton envoyer */
.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-primary);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: rgb(30, 100, 170);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; margin-top: 15px; gap: 8px; }
.tag {
    background: rgba(40, 124, 207, 0.1);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Ligne des icônes */
.social-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

/* Boutons icônes */
.social-links a, 
.lang-switcher,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: var(--text-main);
}

/* SVG */
.social-links svg,
.lang-switcher svg,
.theme-toggle svg {
    width: 26px;
    height: 26px;
    transition: fill 0.2s ease, transform 0.3s ease;
    fill: var(--text-main);
}

.social-links a:hover svg,
.lang-switcher:hover svg,
.lang-switcher.open svg {
    fill: var(--accent-primary);
}
.theme-toggle:hover svg {
    color: var(--accent-primary);
}

/* --- TRADUCTION / LANGUAGE SWITCHER --- */
.lang-switcher {
    position: relative;
    cursor: pointer;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
}

.lang-panel {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    width: 130px;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    border: 1px solid var(--nav-blur);
}

.lang-panel a {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    padding: 8px 20px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

/* Style des drapeaux */
.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transform: translateX(-5px) translateY(2px);
}

.lang-panel::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--card-bg);
    border-right: 1px solid var(--nav-blur);
    border-bottom: 1px solid var(--nav-blur);
}

.lang-switcher:hover .lang-panel,
.lang-switcher.open .lang-panel {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lang-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-panel a {
    display: block;
    padding: 8px 20px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s;
}

.lang-panel a:hover {
    color: var(--accent-primary);
    background: rgba(40, 124, 207, 0.05);
}

/* --- THEME TOGGLE --- */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.theme-toggle .moon {
    color: var(--text-main);
    fill: var(--bg-color);
    transition: all 0.3s;
}
.theme-toggle .sun { display: none; }
body.dark-mode .theme-toggle .moon { display: none; }
body.dark-mode .theme-toggle .sun {
    display: block;
    color: var(--text-main);
    transition: all 0.3s;
}
body.dark-mode .theme-toggle .sun:hover {
    color: var(--accent-primary);
    fill: var(--accent-primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .item-pro { grid-template-columns: 1fr; padding: 15px; }
    .item-pro .date { display: none; }
    .diploma { flex-direction: column; }
}

@media (max-width: 1024px) {
    .container { flex-direction: column; padding: 0 20px; }
    header { position: relative; width: 100%; height: auto; padding: 40px 0; }
    main { width: 100%; }
    nav { top: 0; padding: 20px 0; }
    nav ul { gap: 20px; }
    .item-pro { grid-template-columns: 100px 1fr; padding: 25px; }
    .item-pro .date { display: inline-block; }
    .diploma { flex-direction: row; }
}

@media (max-width: 750px) {
    .item-pro { grid-template-columns: 1fr; padding: 15px; }
    .item-pro .date { display: none; }
    .diploma { flex-direction: column; }
    .contact-form { padding: 25px; }
}

/* --- ANIMATION VAGUE --- */
.social-links > a, 
.social-links > .lang-switcher,
.social-links > .theme-toggle {
    display: inline-flex;
    animation: waveJumpOnce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-iteration-count: 1;
}

.social-links > :nth-child(1) { animation-delay: 1.8s; }
.social-links > :nth-child(2) { animation-delay: 1.9s; }
.social-links > :nth-child(3) { animation-delay: 2.0s; }
.social-links > :nth-child(4) { animation-delay: 2.1s; }
.social-links > :nth-child(5) { animation-delay: 2.2s; }

@keyframes waveJumpOnce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.social-links svg {
    animation: none !important;
}

