/* === VARIABLES === */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4c46b6;
    --accent-color: #ff6584;
    --dark-color: #2c2c54;
    --light-color: #f5f6ff;
    --text-color: #333;
    --light-text: #f5f5f5;
    --gradient-primary: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-color);
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
    padding-bottom: 1rem;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-right: 2rem;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin-right: 2rem;
}

.nav-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* === SECTION ACCUEIL === */
.section-accueil {
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--light-color);
    position: relative;
    margin-top: 100px;
}

.accueil-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 600px;
}

.accueil-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.accueil-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.accueil-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-download {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--gradient-primary);
    color: var(--light-text);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-download i {
    margin-right: 0.5rem;
}

/* Animations d'arrière-plan pour l'accueil */
.animated-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape1 {
    width: 300px;
    height: 300px;
    background: rgba(108, 99, 255, 0.2);
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 101, 132, 0.2);
    top: 50%;
    right: 30%;
    animation: float 8s ease-in-out infinite;
}

.shape3 {
    width: 150px;
    height: 150px;
    background: rgba(76, 70, 182, 0.2);
    top: 30%;
    right: 40%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* === SECTION TITLES === */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

/* === SECTION PARCOURS === */
.section-parcours {
    background: #fff;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
    z-index: 1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: absolute;
    z-index: 3;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    font-style: italic;
    color: #777;
    display: block;
    margin-bottom: 0.8rem;
}

/* === SECTION PROJETS === */
.section-projets {
    background: var(--light-color);
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.projet-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.projet-img {
    height: 200px;
    overflow: hidden;
}

.projet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.projet-card:hover .projet-img img {
    transform: scale(1.1);
}

.projet-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.projet-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.projet-info p {
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.btn-projet {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    align-self: flex-start;
    margin-top: auto; 
    
}

.btn-projet:hover {
    background: var(--secondary-color);
}

/* === SECTION PROJETS FUTURS === */
.section-projets-futurs {
    background: white;
    position: relative;
    overflow: hidden;
}

.projets-futurs-list {
    padding: 0;
    margin: 0;
}

.projet-futur-item {
    display: flex;
    margin-bottom: 2rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.projet-futur-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.projet-futur-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    padding: 1.5rem;
}

.projet-futur-content {
    padding: 1.5rem;
}

.projet-futur-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* === SECTION DOCUMENT === */
.section-document {
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.document-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.document-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.document-preview {
    position: relative;
    max-width: 600px;
    width: 100%;
    height: 400px;
    margin: 0 auto;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.document-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.document-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.document-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: white;
    color: var(--primary-color);
    font-size: 3rem;
}

.document-placeholder p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

.document-zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: var(--transition);
}

.document-preview:hover .document-zoom-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Modal pour l'affichage du document en grand */
.document-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.document-modal.active {
    display: flex;
}

.document-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    overflow: auto;
}

.document-modal-img {
    width: 100%;
    height: auto;
    display: block;
}

.document-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.document-modal-zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2001;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

/* === SECTION COMPÉTENCES === */
.section-competences {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Styles pour les skill-cards sans barres de progression */
.skill-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    min-width: 50px;
    text-align: center;
}

.skill-info {
    flex: 1;
}

.skill-info h3 {
    color: var(--dark-color);
    margin-bottom: 0;
    font-size: 1.2rem;
}

/* Pour améliorer l'apparence des cartes de compétences sans les barres */
.skill-card {
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.skill-icon {
    margin-right: 0;
    margin-bottom: 1rem;
    font-size: 3rem;
    display: block;
}

.skill-info {
    text-align: center;
}

/* === SECTION VEILLE === */
.section-veille {
    background: #fff;
}

.veille-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.veille-categories {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 3rem;
    gap: 2rem;
}

.veille-categorie {
    padding: 2.5rem 2rem;
    margin: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    width: 280px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    position: relative;
    cursor: default; /* Suppression du curseur pointer */
}

.veille-categorie:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.veille-categorie i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
    transition: var(--transition);
}

.veille-categorie:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.veille-categorie h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.veille-categorie p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Ajout d'un effet de bordure décorative */
.veille-categorie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 0 0 10px 10px;
    transition: var(--transition);
}

.veille-categorie:hover::before {
    width: 80px;
    background: var(--secondary-color);
}

/* === SECTION CONTACT === */
.section-contact {
    background: var(--light-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info, .contact-form {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
}

/* Styles pour la version centrée du contact */
.contact-info-only {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 600px;
}

.contact-info-centered {
    width: 100%;
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-info-centered:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.contact-info-centered .info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.contact-info-centered .info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
}

.contact-info-centered .social-media {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-info-centered .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-info-centered .social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* === FOOTER === */
footer {
    background: var(--dark-color);
    color: var(--light-text);
    padding: 2rem 0;
    text-align: center;
}

/* === RESPONSIVE === */
@media screen and (max-width: 992px) {
    .accueil-content h1 {
        font-size: 2.8rem;
    }
    
    .accueil-content h2 {
        font-size: 1.6rem;
    }
    
    .animated-bg {
        width: 40%;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: var(--transition);
        margin-right: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .accueil-content {
        text-align: center;
        max-width: 100%;
    }

    .section-accueil {
        padding-left: 100px;
        padding-right: 100px;
    }
    
    .animated-bg {
        display: none;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd) {
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 6px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }

    /* Adaptations pour les skill-cards sur mobile */
    .skill-card {
        flex-direction: column;
        text-align: center;
    }
    
    .skill-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* Adaptation responsive pour la veille */
    .veille-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .veille-categorie {
        width: 100%;
        max-width: 350px;
    }
}

@media screen and (max-width: 576px) {
    .section {
        padding: 70px 0;
    }
    
    .accueil-content h1 {
        font-size: 2.2rem;
    }
    
    .accueil-content h2 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .projets-grid {
        grid-template-columns: 1fr;
    }
    
    .veille-categorie {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* === ANIMATIONS SUPPLÉMENTAIRES === */
/* Animation pour les liens de navigation */
@keyframes nav-link-hover {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.nav-links a:hover {
    animation: nav-link-hover 0.5s ease;
}

/* Animation de chargement de la page */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Animation pour les boutons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-download:hover, .btn-submit:hover, .btn-projet:hover {
    animation: pulse 1s infinite;
}

/* Animation pour les icônes */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.info-item i:hover, .veille-categorie i:hover, .timeline-icon i:hover {
    animation: spin 1s linear;
}