/* ============================================
   VARIABLES ET RÉINITIALISATION
   ============================================ */

:root {
    --primary-color: #ff9076;
    --secondary-color: #ffffff;
    --accent-color: #6b7280;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 6px rgba(255, 144, 118, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f9fafb;
    line-height: 1.6;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

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

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    border: none;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

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



.nav-link.cta {
    background: var(--primary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(179, 116, 212, 0.4);
}



/* ============================================
   SECTION HERO
   ============================================ */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    
}



.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hero-image {
    perspective: 1000px;
    margin-left: auto;
}

.hero-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid #fff;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* ============================================
   CONTENEUR
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   SECTIONS (À PROPOS, COMPÉTENCES, ETC.)
   ============================================ */

section {
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* À PROPOS */

.about {
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
}

.about-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid #fff;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* COMPÉTENCES */

.skills {
    background: #f9fafb;
}

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

.skill-category {
    padding: 2rem;
    background: #ffffff;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* PROJETS */

.projects {
    background: #ffffff;
}

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

.project-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-info p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.project-tags span {
    background: #f3f4f6;
    color: #374151;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* EXPÉRIENCES / TIMELINE */

.experiences {
    background: #ffffff;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 2rem;
    margin-left: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 2rem;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(30, 58, 138, 0.15);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

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

.company {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
    background: #f9fafb;
}

.contact-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
}

input, textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

textarea {
    resize: vertical;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    text-transform: capitalize;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.info-item {
    margin-bottom: 2rem;
}

.label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.95;
}

.contact-info a:hover {
    opacity: 1;
    text-decoration: underline;
}

.contact-info p {
    margin: 0;
}

.social-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.social-icon {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.heart {
    color: #ff6b9d;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* ============================================
   PAGES DE DÉTAIL DES PROJETS
   ============================================ */

.project-detail {
    background: #ffffff;
    padding: 4rem 2rem;
    min-height: 100vh;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
    color: #ff7d5f;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.project-detail-image {
    position: sticky;
    top: 100px;
}

.project-detail-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.project-3 img:first-child {
    width: 60%;
    margin-bottom: 1.5rem;
}

.project-2 img {
    width: 102%;
}

.project-detail-image:hover img {
    transform: scale(1.02);
}

.project-detail-info h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.detail-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-section p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.objectives-list,
.learnings-list {
    list-style: none;
    padding: 0;
}

.objectives-list li,
.learnings-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.objectives-list li::before,
.learnings-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 144, 118, 0.1), rgba(255, 144, 118, 0.2));
    color: var(--primary-color);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 144, 118, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(255, 144, 118, 0.2), rgba(255, 144, 118, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 144, 118, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
        padding-left: 1rem;
        margin-left: 0.5rem;
    }

    .nav-menu ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        margin-left: 0;
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-left: 0;
        padding-top: 2rem;
    }

    .timeline-item::before {
        left: auto;
        top: -9px;
    }
}


#contact .underline {
    width: 60px;
    height: 4px;
    background-color: #b374d4;
    border-radius: 2px;
}

/* La carte blanche du formulaire */
#contact .contact-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 900px; /* Largeur maximale pour ne pas être trop étiré */
}

/* Espacement des champs */
#contact .form-row {
    display: flex;
    gap: 30px; /* Espace entre les colonnes */
    margin-bottom: 25px;
}

#contact .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#contact .form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
}

#contact input, 
#contact textarea {
    background-color: #f4f2f7;
    border: 2px solid transparent;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Effet quand on clique sur un champ */
#contact input:focus, 
#contact textarea:focus {
    border-color: var(--primary-color);
}

/* Zone de texte du message */
#contact textarea {
    width: 100%;
    resize: none; /* Empêche le redimensionnement manuel */
    margin-bottom: 20px;
}

/* Alignement du bouton */
#contact .button-container {
    display: flex;
    justify-content: flex-end;
}

/* Style du bouton avec effet Hover */
#contact .btn-submit {
    background-color: #ff9076;
    color: white;
    border: none;
    padding: 14px 50px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* EFFET HOVER (Souris dessus) */
#contact .btn-submit:hover {
    background-color: #ff7d5f;
    transform: translateY(-3px); /* Le bouton monte légèrement */
    box-shadow: 0 8px 20px rgba(255, 144, 118, 0.4);
}

/* Effet quand on clique sur le bouton */
#contact .btn-submit:active {
    transform: translateY(-1px);
}

/* Adaptation pour mobile */
@media (max-width: 650px) {
    #contact .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    #contact .contact-card {
        padding: 25px;
    }
}

/* Responsive pour les pages de détail de projets */
@media (max-width: 768px) {
    .project-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-detail-image {
        position: static;
    }

    .project-detail-info h1 {
        font-size: 2rem;
    }

    .detail-section h3 {
        font-size: 1.1rem;
    }

    .skills-list {
        gap: 0.6rem;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .project-detail {
        padding: 2rem 1rem;
    }

    .project-detail-info h1 {
        font-size: 1.5rem;
    }

    .detail-section h3 {
        font-size: 1rem;
    }

    .detail-section p {
        font-size: 0.95rem;
    }

    .objectives-list li,
    .learnings-list li {
        font-size: 0.95rem;
        padding-left: 1.2rem;
    }
}