/* 
* Main CSS file for Alexzandre Le Hellay's Portfolio
* Color Scheme:
* - Background: #FDF7F4
* - Primary Colors: #D5573B (Red/Orange), #1F1F1F (Black)
* - Secondary Colors: #068D9D (Teal), #4F6D7A (Gray-Blue), #1D7A8F (Deep Blue)
* - Text: #1F1F1F (Black), #555555 (Gray), #FDF7F4 (Off-White)
*/

/* ======= GENERAL STYLES ======= */
:root {fas fa-building
    --background: #FDF7F4;
    --primary-red: #D5573B;
    --primary-black: #1F1F1F;
    --secondary-teal: #068D9D;
    --secondary-gray-blue: #4F6D7A;
    --secondary-deep-blue: #1D7A8F;
    --text-black: #1F1F1F;
    --text-gray: #555555;
    --text-white: #FDF7F4;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--background);
    color: var(--text-black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--primary-black);
}

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

a:hover {
    color: var(--secondary-teal);
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    color: var(--primary-black);
}

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

.section-description {
    text-align: center;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

/* ======= BUTTONS ======= */
.btn {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    text-transform: capitalize;
}

.primary-btn {
    background-color: var(--primary-red);
    color: var(--text-white);
    border: 2px solid var(--primary-red);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-red);
}

.secondary-btn {
    background-color: transparent;
    color: var(--secondary-teal);
    border: 2px solid var(--secondary-teal);
}

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

.primary-btn-sm {
    background-color: var(--primary-red);
    color: var(--text-white);
    border: 2px solid var(--primary-red);
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 25px;
}

.primary-btn-sm:hover {
    background-color: transparent;
    color: var(--primary-red);
}

/* ======= HEADER & NAVIGATION ======= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--primary-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    transition: all var(--transition-speed) ease;
    width: 100%;
}

main {
    padding-top: 80px;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.8rem;
}

.brand-text {
    color: var(--text-white);
}

.navbar-nav {
    align-items: center;
}

.navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-white);
    padding: 10px 15px;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-red);
}

/* ======= HOME SECTION ======= */
.home-section {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.intro-text {
    position: relative;
}

.section__text__p1 {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.section__text__p2 {
    font-size: 1.5rem;
    color: var(--secondary-teal);
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

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

.social-icon:hover {
    background-color: var(--primary-red);
    color: var(--text-white);
    transform: translateY(-5px);
}

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img-placeholder {
    width: 300px;
    height: 300px;
    background-color: #f2f2f2;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-gray);
    border: 3px solid var(--primary-red);
}

.profile-img-placeholder i {
    font-size: 6rem;
    margin-bottom: 10px;
}

.profile-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-picture {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 3px solid var(--primary-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* About section */
.about-section {
    padding: 80px 0;
    background-color: #f9f0eb;
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-gray);
}

.quick-link-card {
    display: block;
    background-color: var(--background);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    height: 100%;
    color: var(--text-black);
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: var(--primary-red);
}

.quick-link-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.quick-link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.quick-link-card p {
    color: var(--text-gray);
}

/* ======= PARCOURS SECTION ======= */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-red);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: -1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.timeline-content {
    max-width: 70%;
    margin: 0 auto;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

/* Style pour les cartes d'établissement cliquables */
.timeline-item .card[data-school] {
    cursor: pointer;
    position: relative;
}

.timeline-item .card[data-school]::after {
    content: "Cliquez pour plus d'informations";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.modal-body .card-title {
    color: var(--primary-red);
}

.modal-body p {
    color: var(--text-black);
}

.timeline-item .card[data-school]:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.card-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 0;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-teal);
    margin-bottom: 10px;
}

.card-date {
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-gray);
}

/* ======= COMPETENCES SECTION ======= */
.skills-container {
    margin-top: 50px;
}

.skill-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
    color: var(--primary-black);
}

.category-title i {
    margin-right: 10px;
    color: var(--primary-red);
}

.skill-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
}

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

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    text-align: center;
}

.skill-name {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-black);
}

.skill-progress {
    margin-top: 15px;
}

.progress {
    height: 10px;
    margin-bottom: 5px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-red);
    border-radius: 5px;
}

.progress-text {
    float: right;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.certification-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.certification-icon {
    font-size: 2.5rem;
    color: var(--secondary-teal);
    margin-bottom: 15px;
}

.certification-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-black);
}

.certification-desc {
    color: var(--text-gray);
}

/* Styles pour le popup des certifications */
.certification-card {
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

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

.certification-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-teal);
    margin-bottom: 20px;
}

.certification-image, .school-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.school-image,
.project-detail-image {
    max-height: 300px;
    margin: 0 auto;
    display: block;
}

.school-title-orange, .project-title-orange {
    color: #D5573B; /* Orange foncé correspondant à la couleur principale du site */
    font-weight: 600;
}

/* ======= PROJETS SECTION ======= */
.projects-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.nav-pills .nav-link {
    border-radius: 30px;
    padding: 8px 25px;
    margin: 0 10px;
    color: var(--text-black);
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-red);
    color: var(--text-white);
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
    margin-bottom: 30px;
}

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

.project-img-placeholder {
    height: 200px;
    background-color: var(--primary-red);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.project-img-placeholder span {
    font-size: 1.2rem;
    margin-top: 10px;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.project-techs {
    margin-bottom: 15px;
}

.tech-badge {
    display: inline-block;
    background-color: #f2f2f2;
    color: var(--text-black);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.project-links {
    display: flex;
    gap: 10px;
}

/* ======= VEILLE SECTION ======= */
.veille-introduction {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.article-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
}

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

.article-img-placeholder {
    height: 160px;
    background-color: var(--secondary-teal);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.article-title a {
    color: var(--primary-black);
    transition: color var(--transition-speed) ease;
}

.article-title a:hover {
    color: var(--primary-red);
}

.article-source {
    color: var(--primary-red);
    font-weight: 500;
    margin-bottom: 5px;
}

.article-date {
    color: var(--text-gray);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-summary {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.veille-sources h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-black);
}

.source-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
}

.source-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.source-card h4 {
    margin-bottom: 15px;
    color: var(--primary-black);
}

.source-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.source-card ul li {
    margin-bottom: 10px;
}

.source-card ul li a {
    color: var(--secondary-teal);
    transition: color var(--transition-speed) ease;
}

.source-card ul li a:hover {
    color: var(--primary-red);
}

/* ======= E5 & E6 SECTION ======= */
.document-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
}

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

.document-preview {
    height: 150px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-red);
}

.document-content {
    padding: 20px;
}

.document-title {
    font-size: 1.3rem;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.document-description {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.document-actions {
    display: flex;
    gap: 10px;
}

.document-preview-container {
    min-height: 400px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: var(--text-gray);
}

.preview-placeholder i {
    margin-bottom: 15px;
}

.filename-display {
    font-weight: 500;
    margin-top: 10px;
}

/* ======= CONTACT SECTION ======= */
.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info h3 {
    color: var(--primary-black);
    margin-bottom: 25px;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-black);
}

.info-item p {
    color: var(--text-gray);
}

.social-links h4 {
    margin-bottom: 15px;
    color: var(--primary-black);
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-form h3 {
    color: var(--primary-black);
    margin-bottom: 25px;
    text-align: center;
}

.form-label {
    color: var(--primary-black);
    font-weight: 500;
}

.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(213, 87, 59, 0.2);
    border-color: var(--primary-red);
}

/* ======= FOOTER ======= */
.footer {
    background-color: var(--primary-black);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-heading {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.footer-link-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-col a {
    color: var(--text-white);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-link-col a:hover {
    color: var(--primary-red);
}

.footer-links a {
    color: var(--text-white);
    transition: color var(--transition-speed) ease;
}

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

.footer .social-icon {
    background-color: var(--text-white);
    color: var(--primary-black);
}

.footer .social-icon:hover {
    background-color: var(--primary-red);
    color: var(--text-white);
}

.cv-download-btn {
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.cv-download-btn:hover {
    background-color: transparent;
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* ======= ANIMATIONS ======= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 991px) {
    .title {
        font-size: 2.8rem;
    }
    
    .section__text__p1 {
        font-size: 1.1rem;
    }
    
    .section__text__p2 {
        font-size: 1.3rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-content {
        max-width: 100%;
    }
    
    .profile-img-placeholder {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .home-section {
        padding-top: 150px;
        padding-bottom: 70px;
    }
    
    .title {
        font-size: 2.3rem;
    }
    
    .section__text__p1 {
        font-size: 1rem;
    }
    
    .section__text__p2 {
        font-size: 1.2rem;
    }
    
    .profile-container {
        margin-top: 50px;
    }
    
    .profile-img-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .profile-picture {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info, .contact-form {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .profile-img-placeholder {
        width: 180px;
        height: 180px;
    }
    
    .profile-picture {
        width: 180px;
        height: 180px;
    }
    
    .document-actions {
        flex-direction: column;
    }
    
    .document-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
