/* === Global === */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    color: #ffffff;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* === Header avec overlay === */
header {
    position: relative;
    text-align: center;
    color: #ffffff;
    padding: 60px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background: url('./Documents/banniere.jpg') center/cover no-repeat;
    overflow: hidden;
    transition: color 0.3s ease;
}

header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1;
    transition: background-color 0.3s ease;
}

header .container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #61dafb;
    transition: color 0.3s ease;
}

header p {
    font-size: 1.2rem;
    color: #dcdcdc;
    transition: color 0.3s ease;
}

/* === Sections === */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

main {
    padding: 20px 0;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background 0.3s ease, color 0.3s ease;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #61dafb;
    border-bottom: 2px solid #61dafb;
    display: inline-block;
}

.job, .school {
    margin-bottom: 20px;
}

.job h3, .school h3 {
    font-size: 1.5rem;
    color: #ffffff;
}

.job p, .school p {
    margin: 5px 0;
    color: #dcdcdc;
}

/* === Skills === */
.skills ul {
    list-style: none;
    padding: 0;
}

.skills li {
    background: #61dafb;
    color: #282c34;
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 20px 0;
    background: #282c34;
    color: #dcdcdc;
    border-top: 2px solid #61dafb;
    transition: background 0.3s ease, color 0.3s ease;
}

footer a {
    color: #61dafb;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === Boutons === */
.contact-btn, .download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #61dafb;
    color: #282c34;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.download-btn:hover, .contact-btn:hover {
    background-color: #21a1f1;
    transform: scale(1.08);
}

.download-btn.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
}

.download-btn.top-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

/* === Info Cards === */
.info-cards {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.info-card {
    flex: 1;
    background-color: rgba(40, 44, 52, 0.6);
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background-color: rgba(40,44,52,0.8);
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #61dafb;
}

.info-card p {
    margin: 0;
    font-size: 1rem;
}

.info-card a {
    color: #61dafb;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* === Projets === */
.projects {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background 0.3s ease, color 0.3s ease;
}

.projects h2 {
    font-size: 1.8rem;
    color: #61dafb;
    border-bottom: 2px solid #61dafb;
    margin-bottom: 15px;
}

.projects h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.projects ul {
    list-style: none;
    padding: 0;
}

.projects ul ul {
    margin-left: 20px;
    list-style: disc;
}

.projects li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.projects li strong {
    color: #ffffff;
}

/* === Responsive === */
@media (max-width: 900px) {
    .container { width: 98%; padding: 0 5px; }
    .info-cards { flex-direction: column; align-items: stretch; gap: 15px; }
    .info-card { margin-bottom: 10px; font-size: 1rem; }
    section, .projects, .skills, .about, .education, .experience { padding: 10px; }
    .download-btn.top-right, .download-btn.top-left {
        position: static; display: block; margin: 10px auto 0 auto; width: 90%; text-align: center;
    }
}

@media (max-width: 600px) {
    header h1 { font-size: 1.5rem; }
    .info-card { font-size: 0.95rem; padding: 10px 5px; }
    .projects h2, section h2 { font-size: 1.2rem; }
    .projects h3, .skills h3, .about h3, .education h3, .experience h3 { font-size: 1rem; }
    .download-btn.top-right, .download-btn.top-left { width: 90%; margin: 10px auto; }
}

/* === Scroll animation === */
.scroll-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Bouton toggle thème === */
#theme-toggle {
    position: absolute;
    top: 20px;
    left: 75px;
    transform: translateX(-50%);
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #61dafb;
    color: #000000;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 10; 
}

#theme-toggle:hover {
    background-color: #21a1f1;
}

/* === Mode Light Theme === */
body.light-theme {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #282c34;
}

/* Header Light */
body.light-theme header {
    color: #0b3d91;
}

body.light-theme header h1,
body.light-theme header p {
    color: #0b3d91;
}

body.light-theme header .overlay {
    background-color: rgba(255,255,255,0.6);
}

/* Sections Light */
body.light-theme section,
body.light-theme .projects {
    background: rgba(255,255,255,0.9);
    color: #282c34;
}

body.light-theme section h2,
body.light-theme .projects h2 {
    color: #0b3d91;
}

/* Job & School Light */
body.light-theme .job h3,
body.light-theme .school h3 {
    color: #000000;
}

body.light-theme .job p,
body.light-theme .school p {
    color: #444444;
}

/* Info Cards Light */
body.light-theme .info-card {
    background-color: rgba(255,255,255,0.7);
    color: #282c34;
}

body.light-theme .info-card h3,
body.light-theme .info-card a {
    color: #0b3d91;
}

/* Skills Light */
body.light-theme .skills li {
    background-color: #0b3d91;
    color: #ffffff;
}

/* Footer Light */
body.light-theme footer {
    background: #f0f0f0;
    color: #282c34;
    border-top: 2px solid #0b3d91;
}

body.light-theme footer a {
    color: #0b3d91;
}

/* Buttons Light */
body.light-theme .download-btn,
body.light-theme .contact-btn {
    background-color: #0b3d91;
    color: #ffffff;
}

/* Toggle Light */
body.light-theme #theme-toggle {
    background-color: #0b3d91;
    color: #ffffff;
}

body.light-theme #theme-toggle:hover {
    background-color: #44475a;
}
