/* ========================= */
/* ======= Style global ===== */
/* ========================= */

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================= */
/* ========== Navbar ========= */
/* ========================= */

.navbar {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #343a40 !important;
}

.navbar a {
    color: white !important;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover {
    color: #f8d210 !important;
}

/* ========================= */
/* ========== Footer ========= */
/* ========================= */

footer {
    width: 100%;
    padding: 15px 0;
    background: #343a40;
    color: white;
    text-align: center;
}

/* ========================= */
/* ========== Boutons ========= */
/* ========================= */

.btn {
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

.btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ========================= */
/* ========== Cartes ========= */
/* ========================= */

.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

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

/* ========================= */
/* ========== Projets ========= */
/* ========================= */

.projet-section,
.projet-image {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.projet-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    margin: 0 auto;
}

.img-projet {
    height: 250px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .projet-image {
        max-height: 300px;
    }
}

/* ========================= */
/* ========== Carousel ========= */
/* ========================= */

.carousel-item img {
    filter: brightness(85%);
    transition: filter 0.5s;
}

.carousel-item:hover img {
    filter: brightness(100%);
}

/* ========================= */
/* ========== Tags ========= */
/* ========================= */

.tag-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.tag-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

/* ========================= */
/* ========== TinyMCE Responsive ========= */
/* ========================= */

.tinymce-content {
    word-break: break-word;
}

.tinymce-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.tinymce-content iframe {
    width: 100%;
    max-width: 100%;
}

.tinymce-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
}

/* Alignements desktop uniquement */
@media (min-width: 769px) {
    .align-left {
        float: left;
        margin-right: 20px;
    }

    .align-right {
        float: right;
        margin-left: 20px;
    }
}

/* Mobile : supprimer floats */
@media (max-width: 768px) {
    .align-left,
    .align-right {
        float: none;
        display: block;
        margin: 10px auto;
    }
}

/* ========================= */
/* ========== Listes ========= */
/* ========================= */

ul, ol {
    list-style-position: outside;
    padding-left: 20px;
}

/* ========================= */
/* ========== Code Blocks ========= */
/* ========================= */

pre {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    overflow-x: auto;
}

pre code {
    font-family: "Courier New", monospace;
    font-size: 14px;
}

.code-block .copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.copy-btn:hover {
    background-color: #0056b3;
}

/* ========================= */
/* ======= MOBILE MODERNE (OPTION 2) ======= */
/* ========================= */

@media (max-width: 768px) {

    main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .card {
        border-radius: 0;
        box-shadow: none;
        padding: 20px !important;
    }

}
/* ========================= */
/* ======= MODELES 3D GRID ====== */
/* ========================= */

.modele-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.modele-title-link {
    color: #222;
    font-weight: 600;
}

.modele-title-link:hover {
    color: #007bff;
}

/* ===== FIX SCROLL MOBILE FINAL ===== */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.row {
    --bs-gutter-x: 0;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}
/* ========================= */
/* ===== PORTFOLIO HERO ===== */
/* ========================= */

.portfolio-hero {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.portfolio-title {
    font-size: 3rem;
    font-weight: 700;
}

.portfolio-subtitle {
    color: #f8d210;
    margin-bottom: 20px;
}

.portfolio-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
}

.portfolio-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 30px;
    margin-top: 15px;
    font-weight: 500;
}

.portfolio-photo {
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0px 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.portfolio-photo:hover {
    transform: scale(1.05);
}

/* ===== deuxime HERO ===== */
.portfolio-hero {
    padding-top: 120px;
    padding-bottom: 120px;
}

.portfolio-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.portfolio-subtitle {
    font-size: 1.4rem;
}

.portfolio-description {
    margin-top: 25px;
    max-width: 520px;
}

.portfolio-hero .btn {
    background: white;
    color: #0f2027;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 25px;
}

.portfolio-hero .btn:hover {
    background: #f8d210;
    color: black;
}
/* ========================= */
/* ===== PORTFOLIO SKILLS ===== */
/* ========================= */

.portfolio-skills {
    background: #f4f7fa;
}

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

.skill-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 20px 40px rgba(0,0,0,0.12);
}

.skill-card h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.skill-card ul {
    list-style: none;
    padding: 0;
}

.skill-card li {
    margin-bottom: 10px;
    opacity: 0.8;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: #2c5364;
    display: block;
    margin: 12px auto 0;
    border-radius: 3px;
}

.skill-card h4::before {
    content: "\25B8";
    margin-right: 8px;
    color: #2c5364;
    font-weight: bold;
}

.skill-card li {
    position: relative;
    padding-left: 18px;
}

.skill-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #2c5364;
    font-weight: bold;
}

/* ========================= */
/* ===== PORTFOLIO SOCIAL ===== */
/* ========================= */

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

.social-link {
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link i {
    font-size: 16px;
}
/* ========================= */
/* ===== TIMELINE PREMIUM ===== */
/* ========================= */

.portfolio-timeline {
    background: white;
}

.timeline {
    position: relative;
    margin-left: 20px;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #2c5364;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #2c5364;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(44,83,100,0.2);
}

.timeline-year {
    font-weight: 700;
    color: #2c5364;
    margin-bottom: 8px;
}

.timeline-content h5 {
    margin: 0;
    font-weight: 600;
}

.timeline-content p {
    margin: 5px 0 10px;
    opacity: 0.8;
}


/* ========================= */
/* ===== PROJETS ===== */
/* ========================= */

.portfolio-projects {
    background: white;
}

.project-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.project-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

.project-card p {
    opacity: 0.85;
    font-size: 0.95rem;
}

.project-tag {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
    background: #2c5364;
    color: white;
    border-radius: 20px;
}

/* ========================= */
/* ===== MOBILE OPTIMISATION ===== */
/* ========================= */

@media (max-width: 768px) {

    h1 {
        font-size: 1.8rem;
    }

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

    .project-card {
        padding: 20px;
    }

    .project-card h5 {
        font-size: 1.1rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }

    .timeline-year {
        font-size: 0.9rem;
    }

    .timeline-content h5 {
        font-size: 1rem;
    }

}
