﻿/* Bonjour si vous checker mes commentaires  */
/* j'en ais besoins pour mes futures projets car je suis pas tres doué en css  */
/* Donc beaucoup de commentaire mais ca m'aide à développer mes compétences  */

:root {
    --primary-color: #10b981;
    --primary-hover: #059669;
    --bg-color: #0a0f0d;
    --bg-secondary: #1e1e1e;
    --header-bg: #1a1a1a;
    --card-bg: #2c2c2c;
    --text-color: #fff;
    --text-secondary: #bbb;
    --border-color: #333;
    --footer-bg: #1a1a1a;
    --transition-speed: 0.3s;
    --transition-timing: ease;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 10px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-top: 80px; /* Ca Compense la hauteur du header fixe */
    line-height: 1.6;
    transition: background-color var(--transition-speed) var(--transition-timing), 
                color var(--transition-speed) var(--transition-timing);
}

header {
    background-color: var(--header-bg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color var(--transition-speed) var(--transition-timing);
}

/* Navigation principale */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Ceci assure un affichage horizontal */
    flex-wrap: nowrap; /* Pour éviter que les éléments ne passent à la ligne */
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
    position: relative;
    font-weight: 500;
    padding: 5px 0;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Sélecteur de langues et thème */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background-color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--primary-hover);
    transform: rotate(30deg);
}

.language-selector {
    position: relative;
}

.current-lang {
    background-color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.current-lang:hover {
    background-color: var(--primary-hover);
}

.lang-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 10px;
    width: 150px;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.lang-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lang-dropdown li {
    list-style: none;
    margin: 10px 0;
}

.lang-dropdown a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-dropdown a:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Le Styleee pour le reste du contenu */
.intro, .whoami, .services, .tools, .projects, .skills, .character, .experience, .certifications, .appointment, .blogs, .contact {
    padding: 50px;
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Hero section - Page d'accueil */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image {
    text-align: center;
    animation: slideInRight 1s ease;
}

.hero-image img, .intro-image img {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;                                   /* Pour que l'image soit bien contenue dans le cercle */
    object-position: 50% 20%;                            /* Recentrage vers le haut pour voir les cheveux */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);        /* Pour l'Ombre douce autour de l'image */
    background: rgba(255, 255, 255, 0.1);            /* permet 1Fond léger et transparent pour l'effet de verre givré */
    backdrop-filter: blur(10px);                      /* assez dure à mettre en place : Effet de flou pour l'arrière-plan  */
    border: 2px solid rgba(255, 255, 255, 0.5);    /* rappelle : Bordure subtile et semi-transparente */
    margin: 0 auto;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image img:hover, .intro-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Photo de profil dans la hero section (page home) */
.hero .profile-image-container {
    text-align: center;
    animation: slideInRight 1s ease;
}

.hero .profile-image-container .profile-image {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: 50% 20%;                            /* Recentrage vers le haut pour voir les cheveux */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid var(--primary-color);
    margin: 0 auto;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero .profile-image-container .profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Bannière recherche d'alternance */
.alternance-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: pulse-border 2s ease-in-out infinite;
}

.alternance-banner p {
    font-size: 1rem !important;
    color: var(--text-color) !important;
    margin-bottom: 0 !important;
    line-height: 1.6;
}

.alternance-banner strong {
    color: var(--primary-color);
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    }
}

.whoami {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whoami-image img {
    width: 400px;
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.whoami-text {
    max-width: 50%;
}

/* Styles pour les boutons */
.btn, button {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after, button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover, button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover::after, button:hover::after {
    height: 100%;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #000;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

/* Page à propos */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.about-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

.profile-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
}

/* Page compétences */
.skills-container {
    max-width: 1000px;
    margin: 0 auto;
}

.skill-section {
    margin-bottom: 4rem;
}

.skill-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-grid, .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card, .tool-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.skill-card:hover, .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.skill-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-header h3 {
    font-size: 1.25rem;
    color: var(--text-color);
}

.skill-level {
    background-color: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.level-bar {
    background: linear-gradient(90deg, var(--primary-color), #06b6d4);
    height: 100%;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-details {
    list-style-type: none;
    padding-left: 0;
}

.skill-details li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
}

.skill-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.tool-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tool-card ul {
    list-style-type: none;
    padding-left: 0;
}

.tool-card li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
}

.tool-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Page Contact */
.contact-page {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(16, 185, 129, 0.03) 100%);
    min-height: calc(100vh - 80px);
}

.contact-page h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(6, 182, 212, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-page .lead {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.info-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 15px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(16, 185, 129, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.12),
        0 6px 15px rgba(16, 185, 129, 0.15);
}

.info-item:hover::before {
    left: 100%;
}

.info-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.info-item:hover i {
    transform: scale(1.05) rotate(3deg);
    color: #ff8bb3;
}

.info-item h3 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.info-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.info-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.info-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b9d);
    transition: width 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-color);
}

.info-item a:hover::after {
    width: 100%;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
    animation: fadeInUp 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b9d, var(--primary-color));
    animation: shimmer 2s ease-in-out infinite;
}

.contact-form h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b9d);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out calc(0.8s + var(--delay, 0s)) both;
}

.form-group:nth-child(1) { --delay: 0.1s; }
.form-group:nth-child(2) { --delay: 0.2s; }
.form-group:nth-child(3) { --delay: 0.3s; }
.form-group:nth-child(4) { --delay: 0.4s; }

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.8);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 0 0 3px rgba(16, 185, 129, 0.08),
        0 4px 15px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
    line-height: 1.6;
}

.contact-form .btn {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.7), rgba(6, 182, 212, 0.7));
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    animation: fadeInUp 0.6s ease-out 1.3s both;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.contact-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(6, 182, 212, 0.85));
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.contact-form .btn:hover::before {
    left: 100%;
}

.contact-form .btn:active {
    transform: translateY(-1px);
}

.social-links {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.social-links h3 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.6rem;
    font-weight: 600;
    position: relative;
}

.social-links h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b9d);
    border-radius: 1px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(16, 185, 129, 0.1);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--primary-color), #ff6b9d);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.social-icons a i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 
        0 10px 20px rgba(16, 185, 129, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.social-icons a:hover::before {
    width: 100%;
    height: 100%;
}

.social-icons a:hover i {
    color: white;
    transform: scale(1.05);
}

/* Page CV */
.cv-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cv-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.cv-section {
    margin-bottom: 3rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.cv-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-category ul {
    list-style-type: none;
    padding-left: 0;
}

.skill-category li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
}

.skill-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.cv-project {
    margin-bottom: 1.5rem;
}

.cv-project h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Styles pour la section Formation */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.education-item::before {
    content: '🎓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.2rem;
    opacity: 0.75;
    transition: all 0.3s ease;
}

.education-item:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.education-item h3 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.education-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.pdf-container {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
}

.pdf-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

/* Page Projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-thumbnail {
    height: 200px;
    overflow: hidden;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.85rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    border-radius: 20px;
    max-width: 1000px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    padding: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(16, 185, 129, 0.2);
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: var(--primary-color);
    color: #000;
    transform: rotate(90deg) scale(1.1);
}

/* Nouveau style pour le contenu modal */
.modal-header {
    position: relative;
    padding: 3rem 3rem 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.modal-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.modal-tech-tag {
    background: linear-gradient(135deg, var(--primary-color), #06b6d4);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.modal-body {
    padding: 2rem 3rem 3rem;
}

.modal-image-container {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-image-container img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 10px;
}

.modal-image-container:hover img {
    transform: scale(1.02);
}

.modal-description {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: justify;
}

.modal-features {
    background: rgba(16, 185, 129, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.modal-features h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modal-features ul {
    list-style: none;
    padding-left: 0;
}

.modal-features li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
}

.modal-features li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.modal-btn {
    background: linear-gradient(135deg, var(--primary-color), #06b6d4);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Pied de page */
.main-footer {
    padding: 50px 0 20px;
    color: var(--text-color);
    background-color: var(--footer-bg);
    transition: background-color var(--transition-speed) var(--transition-timing), 
                color var(--transition-speed) var(--transition-timing);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

/* Mode sombre/clair */
.dark-theme {
    --bg-color: #121212;
    --header-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --footer-bg: #1a1a1a;
}

.light-theme {
    --bg-color: #222;
    --header-bg: #2a2a2a;
    --card-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #333;
    --footer-bg: #2a2a2a;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .hero-image img, .intro-image img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--header-bg);
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 100;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .hero-image img, .intro-image img {
        width: 200px;
        height: 200px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content .profile-image {
        margin-bottom: 2rem;
    }
    
    .whoami {
        flex-direction: column;
        text-align: center;
    }
    
    .whoami-text {
        max-width: 100%;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }
    
    body {
        padding-top: 70px;
    }
    
    .intro, .whoami, .services, .tools, .projects, .skills, .character, .experience, .certifications, .appointment, .blogs, .contact {
        padding: 30px 15px;
    }
    
    .hero h1, .page-header h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-image img, .intro-image img {
        width: 150px;
        height: 150px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn, button {
        width: 100%;
    }
    
    .skills-grid, .tools-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation pour les boutons */
.btn, button {
    position: relative;
    overflow: hidden;
}

.btn:after, button:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active:after, button:active:after {
    width: 300px;
    height: 300px;
}

/* Section d'expertise */
.expertise {
    padding: 2rem 0 4rem;
    text-align: center;
    position: relative;
}

.expertise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.expertise-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    animation: fadeIn 1s ease;
}

.expertise-description {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 300;
    font-style: italic;
    position: relative;
    padding: 0 2rem;
}

.expertise-description::before,
.expertise-description::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    line-height: 1;
}

.expertise-description::before {
    top: -1rem;
    left: 0;
}

.expertise-description::after {
    bottom: -2rem;
    right: 0;
}

@media (max-width: 768px) {
    .expertise-description {
        font-size: 1.2rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .expertise-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Animations pour la page contact */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Media queries spécifiques pour la page contact */
@media (max-width: 768px) {
    .contact-page {
        padding: 2rem 0;
    }
    
    .contact-page h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-page .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .info-item {
        padding: 2rem 1.5rem;
    }
    
    .info-item i {
        font-size: 2rem;
    }
    
    .contact-form {
        margin: 0 1rem 3rem;
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .contact-form h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-control {
        padding: 0.9rem 1rem;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    .contact-form .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .social-icons {
        gap: 1.5rem;
    }
    
    .social-icons a {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 1.5rem 0;
    }
    
    .contact-page h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-page .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .info-item {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .info-item h3 {
        font-size: 1.1rem;
    }
    
    .info-item p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        margin: 0 0.5rem 2rem;
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .contact-form h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .form-control {
        padding: 0.8rem;
        border-radius: 8px;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    .contact-form .btn {
        padding: 0.9rem 1rem;
        border-radius: 8px;
        font-size: 0.95rem;
    }
    
    .social-links h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icons a {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

/* =============================
   Page Expériences (styles)
   ============================= */
.experiences {
    padding: 3rem 0 4rem;
}

/* En-tête de section avec mise en page en colonnes comme le reste du site */
.experiences .section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.75rem 2rem;
    margin: 1rem auto 2rem; /* espace sous le header fixe */
    max-width: 1200px;
    box-shadow: var(--shadow);
}

.experiences .section-header h1 {
    font-size: 2.2rem;
    margin: 0;
    background: linear-gradient(90deg, var(--text-color), var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    grid-column: 1;
}

.experiences .section-header h2 {
    font-size: 1.8rem;
    margin: 0 0 .5rem 0;
    color: var(--text-color);
    grid-column: 2;
}

.experiences .section-header p {
    color: var(--text-secondary);
    margin: 0;
    grid-column: 2;
}

/* Cartes d'expérience */
.experience-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 0 auto 1.25rem;
    max-width: 1200px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    scroll-margin-top: 100px; /* Compense le header fixe pour l'ancre */
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.experience-card h3 {
    color: var(--text-color);
    margin-bottom: .5rem;
    font-size: 1.35rem;
}

.experience-card p {
    margin: .35rem 0;
}

.experience-card .exp-summary {
    color: var(--text-secondary);
    line-height: 1.7;
}

.experience-card .exp-tags {
    color: var(--primary-color);
    opacity: .95;
    font-weight: 600;
}

.experience-card .btn.pdf {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.experience-card .badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
}

.experience-card.soon {
    opacity: .95;
}

/* Compense le header fixe quand on arrive sur l’ancre #experiences */
#experiences {
    scroll-margin-top: 100px; /* header ~80px + marge de confort */
}

@media (max-width: 900px) {
    .experiences .section-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
    .experiences .section-header h1,
    .experiences .section-header h2,
    .experiences .section-header p { grid-column: 1; }
}