/* --- CONFIGURATION DES COULEURS (C'est ici qu'on change le rose !) --- */
:root {
    /* Le rose principal */
    --primary: #db2777; 
    
    /* Un rose très clair pour le fond de la page */
    --bg-soft: #fdf2f8; 
    
    /* Couleur du texte foncé */
    --text-dark: #1e293b;
    
    /* Couleur du texte gris */
    --text-gray: #64748b;
    
    /* Blanc pur */
    --white: #ffffff;
    
    /* Police */
    --font: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-soft);
    color: var(--text-dark);
    font-family: var(--font);
    line-height: 1.6;
    padding: 6rem 1rem 2rem 1rem;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- LAYOUT --- */
.container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- NAVBAR FIXE --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Pour Safari */
    
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem 0;
}

.nav-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}
.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-gray);
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary); }

/* Bouton CV spécial dans la navbar */
.btn-nav {
    background-color: var(--primary);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem !important;
    transition: transform 0.2s;
}

.btn-nav:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(219, 39, 119, 0.3);
}

/* --- AJUSTEMENT RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-content { justify-content: center; }
}

/* --- SECTION HERO (Carte principale) --- */
.hero-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 10px 30px rgba(219, 39, 119, 0.05); /* Ombre rosée légère */
    margin-bottom: 4rem;
}

.hero-content { flex: 1; }

.badge {
    background: linear-gradient(135deg, var(--primary), #ec4899);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 1.5rem 0;
}

/* Effet de texte dégradé pour le mot "uniques" */
.gradient-text {
    background: linear-gradient(to right, var(--primary), #831843);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    /* Petit effet rotation pour le style */
    transform: rotate(3deg);
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- BOUTONS --- */
.buttons-group { display: flex; gap: 1rem; margin-bottom: 2rem; }

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover { background-color: var(--primary); color: white; }

.social-links { display: flex; gap: 1.5rem; font-weight: 600; font-size: 0.9rem; }
.social-links a:hover { color: var(--primary); text-decoration: underline; }

/* --- SECTION PROJETS --- */
.projects-section {
    margin-bottom: 4rem;
}

.section-title { font-size: 2rem; margin-bottom: 2rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    padding: 0; 
    border-radius: 15px;
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    width: 100%;
    height: 200px;
    background-color: var(--bg-soft);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.link-arrow {
    margin-top: auto; 
    padding-top: 1rem;
}

.card:hover { transform: translateY(-5px); border-color: var(--primary); }

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 1.5rem; }*



.tags { 
    display: flex; 
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tags span {
    background-color: var(--bg-soft);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    
    white-space: nowrap; 
    
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-arrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0; 
}

.card-links {
    margin-top: auto; 
    display: flex;
    gap: 1.5rem;
}

/* --- MISE EN PAGE 2 COLONNES (Resume) --- */
.resume-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% gauche, 50% droite */
    gap: 4rem; /* Espace entre les deux colonnes */
    align-items: start;
}

/* --- SECTION SKILLS --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Grille auto-adaptative */
    gap: 1.5rem;
}

/* Définition de l'animation Gelée */
@keyframes jelly {
    0% { transform: scale(1, 1); }
    30% { transform: scale(1.25, 0.75); }
    40% { transform: scale(0.75, 1.25); }
    50% { transform: scale(1.15, 0.85); }
    65% { transform: scale(0.95, 1.05); }
    75% { transform: scale(1.05, 0.95); }
    100% { transform: scale(1, 1); }
}

.skill-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s; 
}

.skill-card i {
    font-size: 3rem;
    color: var(--text-gray);
    transition: color 0.3s;
}

.skill-card:hover {
    animation: jelly 0.7s both;
    border-color: var(--primary);
    background-color: #fdf2f8;
}

.skill-card:hover i {
    color: inherit;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .resume-container {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 3rem;
    }
}

/* --- FOOTER --- */
footer { text-align: center; margin-top: 4rem; color: var(--text-gray); font-size: 0.9rem; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero-card { flex-direction: column-reverse; padding: 2rem; text-align: center; }
    .hero-image img { width: 100%; max-width: 250px; transform: rotate(0); }
    .buttons-group { justify-content: center; }
    .social-links { justify-content: center; }
    h1 { font-size: 2rem; }
}


/* --- SECTION PARCOURS (TIMELINE) --- */
.timeline-section { margin-bottom: 4rem; }

.timeline {
    border-left: 3px solid var(--bg-soft);
    margin-left: 1rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

/* Le petit point rose sur la ligne */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.2);
}

.timeline-date {
    display: inline-block;
    background-color: #fdf2f8;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.timeline-content h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.timeline-content h4 { font-size: 1rem; color: var(--text-gray); font-weight: 500; margin-bottom: 0.5rem; }

/* --- ANIMATIONS SYMPAS --- */
.card-img-wrapper img {
    transition: transform 0.5s ease;
}
.card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

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

.hero-image img {
    animation: float 5s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- SECTION CONTACT --- */
.contact-section {
    margin-bottom: 4rem;
    width: 100%; 
}

.contact-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 100%; 
}

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

/* Style des labels */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Style des champs (Input & Textarea) */
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background-color: var(--bg-soft);
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s;
    outline: none;
}

/* Au clic (Focus), la bordure devient rose */
.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.1);
}

/* Le bouton envoyer */
.btn-submit {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    margin-top: 1rem;
}