/* Variables pour les couleurs principales du site */
:root {
    --purple: #5a32a8;         /* Violet principal */
    --dark-purple: #422480;    /* Violet foncé au survol */
    --light-purple: #f3effb;   /* Violet très clair pour le fond de certaines sections */
    --text: #333;              /* Couleur du texte principal */
    --gray: #777;              /* Couleur du texte secondaire (gris) */
}

/* Règle pour que la page défile doucement lorsqu'on clique sur un lien du menu */
html {
    scroll-behavior: smooth; 
}

/* Réinitialisation des marges et application de la police */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

/* =========================================
   EN-TÊTE & NAVIGATION
   ========================================= */
.main-header { 
    background: var(--purple); 
    color: white; 
    position: relative; 
    padding-bottom: 60px; 
}

/* Menu de navigation bloqué en haut (sticky) */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    padding: 25px 10%; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    background: var(--purple); 
}

.logo { font-weight: 700; font-size: 1.4rem; letter-spacing: 2px; }
.nav-links { display: flex; list-style: none; }
.nav-links a { color: white; text-decoration: none; font-size: 0.75rem; margin-left: 20px; font-weight: 500; text-transform: uppercase; }

/* Contenu principal de bienvenue */
.hero { text-align: center; padding: 40px 0 100px; }
.profile-img { 
    width: 130px; 
    height: 130px; 
    border-radius: 50%; 
    border: 6px solid rgba(255,255,255,0.2); 
    object-fit: cover; 
    display: block; 
    margin: 0 auto;
}
.hero h1 { font-size: 2.2rem; margin: 20px 0 10px; }
.connect-row { display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 0.8rem; letter-spacing: 1px; }
.social-links a { color: white; margin: 0 5px; font-size: 1.2rem; text-decoration: none; }
.social-links.purple a { color: var(--purple); }

/* La forme inclinée blanche (Slant) en bas du bloc violet */
.hero-slant {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 80px;
    background: white; clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 100%, 0 0);
    z-index: 1;
}

/* =========================================
   MISE EN PAGE GÉNÉRALE DES SECTIONS
   ========================================= */
.section { padding: 90px 10%; }
.bg-light { background: var(--light-purple); } /* Fond grisé/violet clair */
.container { max-width: 1140px; margin: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; } /* Grille à deux colonnes */
.section-title { color: var(--purple); font-size: 1.4rem; margin-bottom: 15px; text-transform: uppercase; }
.subtitle { color: var(--gray); font-size: 0.9rem; margin-bottom: 40px; }

.text-side p { margin-bottom: 20px; line-height: 1.7; color: var(--gray); font-size: 0.95rem; }
.text-side h3 { margin-bottom: 15px; color: var(--text); }

/* =========================================
   COMPÉTENCES (Barres de progression)
   ========================================= */
.skill-item { margin-bottom: 20px; }
.skill-info { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.8rem; margin-bottom: 8px; color: var(--purple); }
.progress-bg { background: #eee; height: 10px; border-radius: 5px; }
.progress { background: var(--purple); height: 100%; border-radius: 5px; }

/* =========================================
   SERVICES (Boîtes d'expertise)
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-box { background: white; padding: 40px 20px; border-radius: 8px; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.service-box:hover { transform: translateY(-5px); } /* Petit effet d'élévation au survol de la souris */
.service-box i { font-size: 2rem; color: var(--purple); margin-bottom: 15px; }
.service-box h4 { font-size: 0.9rem; margin-bottom: 10px; }
.service-box p { font-size: 0.85rem; color: var(--gray); }

/* =========================================
   PORTFOLIO (Galerie d'images)
   ========================================= */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.portfolio-grid img { width: 100%; height: 300px; object-fit: cover; border-radius: 5px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* =========================================
   EXPÉRIENCE (Ligne du temps / Timeline)
   ========================================= */
.timeline { max-width: 600px; margin: 0 auto; text-align: left; border-left: 2px solid var(--purple); padding-left: 30px; position: relative; }
.timeline-entry { position: relative; margin-bottom: 30px; }
.timeline-entry::before {
    content: ''; position: absolute; left: -37px; top: 0; width: 12px; height: 12px;
    background: var(--purple); border-radius: 50%;
}
.brand { font-weight: 700; color: var(--purple); margin-bottom: 5px; font-size: 1.1rem; }

/* =========================================
   STATISTIQUES (Bandeau violet)
   ========================================= */
.stats-bar { background: var(--purple); color: white; padding: 60px 10%; position: relative; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat i { font-size: 2rem; margin-bottom: 15px; opacity: 0.8; }
.stat h3 { font-size: 2rem; margin-bottom: 5px; }
/* Forme inclinée en bas du bandeau des statistiques */
.stats-slant {
    position: absolute; bottom: -50px; left: 0; width: 100%; height: 50px;
    background: var(--purple); clip-path: polygon(0 0, 100% 0, 100% 0, 50% 100%, 0 0);
}

/* =========================================
   SECTION BLOG (Articles)
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}
.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.blog-card h4 { padding: 20px 20px 10px 20px; font-size: 1.1rem; color: var(--text); }
.blog-card p { padding: 0 20px 20px 20px; font-size: 0.85rem; color: var(--gray); line-height: 1.5; }

/* =========================================
   FORMULAIRE DE CONTACT
   ========================================= */
.contact-form { max-width: 800px; margin: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
input, textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 5px; outline: none; font-family: inherit; }
button { background: var(--purple); color: white; border: none; padding: 15px 40px; border-radius: 5px; cursor: pointer; font-weight: 600; letter-spacing: 1px; transition: 0.3s; }
button:hover { background: var(--dark-purple); }

/* =========================================
   PIED DE PAGE (Footer)
   ========================================= */
.footer { background: #f9f9f9; padding-top: 100px; }
.newsletter { background: #222; color: white; padding: 50px; max-width: 800px; margin: -50px auto 40px; text-align: center; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.news-input { display: flex; margin-top: 25px; gap: 10px; }
.news-input input { flex: 1; border: none; padding: 15px; border-radius: 5px; }
.news-input button { background: #ffeb3b; color: #333; }
.news-input button:hover { background: #ffd600; }
.footer-bottom { text-align: center; padding: 30px; border-top: 1px solid #ddd; color: var(--gray); display: flex; justify-content: center; align-items: center; gap: 20px; flex-direction: column; }
.footer-socials a { text-decoration: none; }
.footer-socials i { font-size: 1.5rem; color: var(--purple); cursor: pointer; }