/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: #2d6cdf;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1a54c2;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #2d6cdf;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 1.5rem;
}

.menu a {
    position: relative;
}

.menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #2d6cdf;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.menu a:hover:after {
    width: 100%;
}

/* Section Accueil */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: #2d6cdf;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Section À propos */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/3; /* Définit directement le ratio 4:3 */
    object-fit: cover; /* Pour que l'image couvre tout l'espace sans déformation */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 1rem;
}

/* Section CV */
.cv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.cv-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.cv-year {
    min-width: 100px;
    font-weight: bold;
    color: #2d6cdf;
}

.cv-info h4 {
    margin-bottom: 0.5rem;
}

.cv-download {
    text-align: center;
    margin-top: 2rem;
}

/* Section Scolarité */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2d6cdf;
}

.timeline-year {
    font-weight: bold;
    color: #2d6cdf;
    margin-bottom: 0.5rem;
}


/* Section BTS SIO */
.bts-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.bts-intro {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.bts-intro p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.bts-filieres {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.filiere-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.filiere-card:hover {
    transform: translateY(-5px);
}

.filiere-icon {
    height: 120px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filiere-icon img {
    max-height: 80px;
    max-width: 80px;
}

.filiere-content {
    padding: 1.5rem;
}

.filiere-content h3 {
    color: #2d6cdf;
    margin-bottom: 0.5rem;
}

.filiere-content h4 {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
    font-weight: normal;
}

.filiere-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.filiere-content li {
    margin-bottom: 0.5rem;
}

.bts-poursuites {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bts-poursuites h3 {
    color: #2d6cdf;
    margin-bottom: 1rem;
    text-align: center;
}

.bts-poursuites ul {
    padding-left: 1.5rem;
    list-style-type: disc;
    margin-top: 1rem;
}

.bts-poursuites li {
    margin-bottom: 0.5rem;
}

/* Media Queries pour la section BTS SIO */
@media (max-width: 768px) {
    .bts-filieres {
        grid-template-columns: 1fr;
    }
}





/* Section Stages */
.stages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stage-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.stage-card:hover {
    transform: translateY(-5px);
}

.stage-header {
    background-color: #2d6cdf;
    color: #fff;
    padding: 1rem;
}

.stage-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.stage-body {
    padding: 1.5rem;
}

.stage-body p {
    margin-bottom: 0.5rem;
}



/* Styles pour la section Scolarité modifiée */
.education-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.education-item:hover {
    transform: translateY(-5px);
}

.education-logo {
    width: 120px;
    height: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.education-logo img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 5px;
}

.education-content {
    padding: 1.5rem;
    flex: 1;
}

.education-date {
    font-weight: bold;
    color: #2d6cdf;
    margin-bottom: 0.5rem;
}

.education-content h3 {
    margin-bottom: 0.5rem;
}

.education-diploma {
    font-style: italic;
    margin-bottom: 1rem;
    color: #666;
}

/* Styles pour le lien vers le rapport de stage */
.stage-report {
    margin-top: 1.5rem;
    text-align: right;
}

.btn-report {
    display: inline-flex;
    align-items: center;
    background-color: #e74c3c;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-report:hover {
    background-color: #c0392b;
}

.pdf-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Media Queries pour les sections Scolarité et Stages */
@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
    }
    
    .education-logo {
        width: 100%;
        height: 120px;
    }
    
    .education-logo img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .education-logo {
        height: 100px;
    }
    
    .education-logo img {
        max-height: 60px;
    }
    
    .stage-report {
        text-align: center;
    }
}






/* Section Compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill-icon {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.skill-icon img {
    width: 50px;
    height: auto;
}

.skill-item:hover .skill-icon {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.skill-item span {
    font-weight: 500;
}

/* Media Queries pour les projets et compétences */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .skill-icon {
        width: 70px;
        height: 70px;
    }
    
    .skill-icon img {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
    }
    
    .skill-icon img {
        width: 35px;
    }
}

/* Styles pour la section Projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-card a {
    display: block;
    color: #333;
}

.project-image {
    height: 200px;
    overflow: hidden;
}

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

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: #2d6cdf;
}

/* Section Veille Technologique */
.veille-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.veille-item h3 {
    margin-bottom: 1rem;
    color: #2d6cdf;
}

.veille-item p {
    margin-bottom: 1rem;
}

/* Styles pour la section Veille Technologique améliorés */
.veille-title {
    color: #2d6cdf;
    text-decoration: underline;
    text-decoration-color: #e74c3c;
    text-decoration-thickness: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.source-highlight {
    color: #e74c3c;
    font-weight: bold;
}

.veille-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.veille-item:hover {
    transform: translateY(-5px);
}

.bg-center {
    text-align: center;
    margin-bottom: 2.5rem;
}

.bg-center h3 {
    color: #2d6cdf;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.veille-content > p {
    margin-bottom: 2rem;
}


/* Section Contact */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
}

.icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #2d6cdf;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

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

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* Media Queries */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .menu {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu li {
        margin: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .cv-content {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
