/* Page Réalisations - Style minimaliste et élégant */

.realisations-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.realisations-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-light);
    opacity: 0.9;
}

/* Background minimal */
.background-decoration-minimal {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.background-decoration-minimal .circle {
    opacity: 0.05;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(208, 223, 240, 0.1);
    padding-bottom: 1rem;
}

.tab-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 300;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: width 0.3s ease;
}

.tab-button.active {
    color: var(--text-light);
}

.tab-button.active::after {
    width: 100%;
}

.tab-button:hover {
    color: var(--text-light);
    letter-spacing: 3px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects Grid - Websites */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(208, 223, 240, 0.02);
    border: 1px solid rgba(208, 223, 240, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(208, 223, 240, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-screenshot {
    width: 100%;
    height: 300px;
    background: rgba(10, 14, 26, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: rgba(10, 14, 26, 0.3);
}

.project-screenshot img.loaded {
    opacity: 1;
}

.project-screenshot iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
}

.project-screenshot iframe.loaded {
    opacity: 1;
}

.screenshot-placeholder {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    text-align: center;
    padding: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-info {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.project-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.project-link::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-light);
    transition: width 0.3s ease;
}

.project-link:hover::before {
    width: 100%;
}

.project-link:hover {
    letter-spacing: 4px;
}

/* Personal Projects Grid */
.personal-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.personal-project-card {
    background: rgba(208, 223, 240, 0.02);
    border: 1px solid rgba(208, 223, 240, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.personal-project-card:hover {
    border-color: rgba(208, 223, 240, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.personal-project-preview {
    width: 100%;
    height: 350px;
    background: rgba(10, 14, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-container svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.personal-project-info {
    padding: 2rem;
}

.personal-project-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.personal-project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.personal-project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.test-link,
.copy-link-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(208, 223, 240, 0.05);
    border: 1px solid rgba(208, 223, 240, 0.2);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.test-link:hover,
.copy-link-btn:hover {
    background: rgba(208, 223, 240, 0.1);
    border-color: rgba(208, 223, 240, 0.4);
    letter-spacing: 3px;
}

.copy-area {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.copy-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(208, 223, 240, 0.05);
    border: 1px solid rgba(208, 223, 240, 0.2);
    color: var(--text-light);
    font-size: 0.85rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(208, 223, 240, 0.1);
    border: 1px solid rgba(208, 223, 240, 0.3);
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.copy-btn:hover {
    background: rgba(208, 223, 240, 0.2);
    border-color: rgba(208, 223, 240, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .realisations-main {
        padding: 5rem 1.5rem 2rem;
        overflow-x: hidden;
    }

    .realisations-title {
        font-size: 1.75rem;
        letter-spacing: 4px;
        margin-bottom: 2.5rem;
        word-wrap: break-word;
    }

    .tabs {
        gap: 0.75rem;
        margin-bottom: 3rem;
        padding-bottom: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-button {
        font-size: 0.75rem;
        padding: 0.6rem 1.2rem;
        letter-spacing: 1.5px;
    }

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

    .personal-projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card,
    .personal-project-card {
        border-radius: 6px;
        overflow: hidden;
    }

    .project-card:hover,
    .personal-project-card:hover {
        transform: none;
    }

    .project-screenshot,
    .personal-project-preview {
        height: 220px;
    }

    .project-screenshot iframe {
        transform: scale(0.8);
        transform-origin: center;
    }

    .project-info,
    .personal-project-info {
        padding: 1.5rem;
    }

    .project-title,
    .personal-project-title {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
        margin-bottom: 0.75rem;
        word-break: break-word;
        line-height: 1.4;
    }

    .project-description,
    .personal-project-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .project-link,
    .test-link,
    .copy-link-btn {
        font-size: 0.75rem;
        padding: 0.6rem 1.2rem;
        letter-spacing: 1.5px;
    }

    .personal-project-actions {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .copy-input {
        font-size: 0.75rem;
        padding: 0.6rem 0.75rem;
    }

    .copy-btn {
        font-size: 0.75rem;
        padding: 0.6rem 1.2rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .realisations-main {
        padding: 4.5rem 1rem 1.5rem;
    }

    .realisations-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
        margin-bottom: 2rem;
        word-wrap: break-word;
    }

    .realisations-main {
        overflow-x: hidden;
    }

    .tabs {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .tab-button {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        letter-spacing: 1px;
    }

    .projects-grid,
    .personal-projects-grid {
        gap: 1.5rem;
    }

    .project-screenshot,
    .personal-project-preview {
        height: 180px;
    }

    .project-screenshot iframe {
        transform: scale(1);
        width: 100% !important;
        height: 100% !important;
    }

    .project-info,
    .personal-project-info {
        padding: 1.25rem;
    }

    .project-title,
    .personal-project-title {
        font-size: 1rem;
        letter-spacing: 1px;
        word-break: break-word;
        line-height: 1.3;
    }

    .project-description,
    .personal-project-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .project-link,
    .test-link,
    .copy-link-btn {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        letter-spacing: 1px;
    }

    .personal-project-actions {
        gap: 0.5rem;
        flex-direction: column;
    }

    .personal-project-actions .test-link,
    .personal-project-actions .copy-link-btn {
        width: 100%;
        justify-content: center;
    }

    .copy-area {
        flex-direction: column;
        gap: 0.5rem;
    }

    .copy-input {
        font-size: 0.7rem;
    }

    .copy-btn {
        font-size: 0.7rem;
        width: 100%;
    }
}
