/* Page À Propos - Thème Cyan */

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

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #134e4a 50%, #1a1a1a 100%);
    min-height: 100vh;
    color: white;
    font-family: 'Arial', sans-serif;

    .container {
        padding-top: 120px;
        padding-left: 50px;
        padding-right: 50px;
        min-height: 100vh;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;

        .title {
            font-size: 4em;
            font-weight: bold;
            color: #06b6d4;
            text-align: center;
            letter-spacing: 5px;
            margin-bottom: 10px;
            text-shadow: 0 0 8px rgba(6, 182, 212, 0.6), 0 0 16px rgba(6, 182, 212, 0.4);
            animation: titleGlow 3s ease-in-out infinite alternate;
        }

        .subtitle {
            font-size: 2em;
            font-weight: bold;
            color: #06b6d4;
            text-align: center;
            margin-bottom: 60px;
            letter-spacing: 5px;
            text-shadow: 0 0 6px rgba(6, 182, 212, 0.5), 0 0 12px rgba(6, 182, 212, 0.3);
            opacity: 0;
            animation: fadeInUp 1s ease-out 0.5s forwards;
        }

        .filter-tabs {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 50px;
            opacity: 0;
            animation: fadeInUp 1s ease-out 1s forwards;
            max-width: 100%;

            .filter-btn {
                background: rgba(6, 182, 212, 0.1);
                border: 2px solid #06b6d4;
                color: #06b6d4;
                padding: 12px 25px;
                border-radius: 25px;
                cursor: pointer;
                transition: all 0.3s ease;
                font-weight: bold;
                letter-spacing: 1px;
                white-space: nowrap;

                &:hover,
                &.active {
                    background: #06b6d4;
                    color: white;
                    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
                    transform: translateY(-2px);
                }
            }
        }

        .about-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto 80px auto;
            padding-bottom: 50px;
            width: 100%;
            box-sizing: border-box;

            .photo-card {
                position: relative;
                background: rgba(255, 255, 255, 0.05);
                border-radius: 15px;
                overflow: hidden;
                border: 2px solid rgba(6, 182, 212, 0.3);
                cursor: pointer;
                transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                opacity: 0;
                transform: translateY(50px);
                animation: fadeInUp 0.8s ease-out forwards;
                backdrop-filter: blur(10px);
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;

                &:nth-child(1) { animation-delay: 0.2s; }
                &:nth-child(2) { animation-delay: 0.4s; }
                &:nth-child(3) { animation-delay: 0.6s; }
                &:nth-child(4) { animation-delay: 0.8s; }
                &:nth-child(5) { animation-delay: 1s; }
                &:nth-child(6) { animation-delay: 1.2s; }

                &:hover {
                    transform: translateY(-10px) scale(1.02);
                    border-color: #06b6d4;
                    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);

                    .photo-image {
                        img {
                            transform: scale(1.1);
                        }
                    }

                    .photo-overlay {
                        opacity: 1;
                    }
                }

                .photo-image {
                    width: 100%;
                    height: 250px;
                    background: linear-gradient(45deg, #0f766e, #14b8a6);
                    position: relative;
                    overflow: hidden;

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

                    .photo-overlay {
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        bottom: 0;
                        background: linear-gradient(135deg, rgba(6, 182, 212, 0.8), rgba(6, 182, 212, 0.4));
                        opacity: 0;
                        transition: opacity 0.3s ease;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        .view-icon {
                            font-size: 2em;
                            color: white;
                            animation: pulse 2s infinite;
                        }
                    }
                }

                .photo-info {
                    padding: 20px;

                    .photo-title {
                        font-size: 1.3em;
                        font-weight: bold;
                        color: #06b6d4;
                        margin-bottom: 10px;
                        letter-spacing: 2px;
                    }

                    .photo-category {
                        color: rgba(255, 255, 255, 0.7);
                        font-size: 0.9em;
                        margin-bottom: 10px;
                        text-transform: uppercase;
                        letter-spacing: 1px;
                    }

                    .photo-description {
                        color: rgba(255, 255, 255, 0.8);
                        line-height: 1.6;
                        font-size: 0.95em;
                    }
                }
            }
        }
    }

    /* Section Présentation */
    .presentation-section {
        margin: 80px 0;
        padding: 0 20px;
        display: flex;
        justify-content: center;

        .presentation-card {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(6, 182, 212, 0.3);
            border-radius: 20px;
            padding: 40px;
            max-width: 800px;
            text-align: center;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;

            &:hover {
                border-color: #06b6d4;
                box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
                transform: translateY(-5px);
            }

            h3 {
                font-size: 2.2em;
                color: #06b6d4;
                margin-bottom: 25px;
                font-weight: bold;
                letter-spacing: 2px;
                text-shadow: 0 0 6px rgba(6, 182, 212, 0.5);
            }

            p {
                color: rgba(255, 255, 255, 0.8);
                font-size: 1.1em;
                line-height: 1.8;
                margin-bottom: 30px;
            }

            .stats-mini {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                gap: 20px;
                margin-top: 30px;

                .stat-mini {
                    text-align: center;
                    padding: 15px;
                    border-radius: 10px;
                    background: rgba(6, 182, 212, 0.1);
                    border: 1px solid rgba(6, 182, 212, 0.2);
                    transition: all 0.3s ease;

                    &:hover {
                        transform: translateY(-3px);
                        box-shadow: 0 8px 20px rgba(6, 182, 212, 0.2);
                    }

                    .number {
                        display: block;
                        font-size: 2em;
                        color: #06b6d4;
                        font-weight: bold;
                        margin-bottom: 5px;
                    }

                    .label {
                        color: rgba(255, 255, 255, 0.7);
                        font-size: 0.9em;
                        text-transform: uppercase;
                        letter-spacing: 1px;
                    }
                }
            }
        }
    }

    /* Section Compétences */
    .skills-section {
        margin: 80px 0;
        padding: 0 20px;

        h3 {
            font-size: 2.2em;
            color: #06b6d4;
            text-align: center;
            margin-bottom: 40px;
            font-weight: bold;
            letter-spacing: 2px;
            text-shadow: 0 0 6px rgba(6, 182, 212, 0.5);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            max-width: 1000px;
            margin: 0 auto;

            .skill-item {
                background: rgba(255, 255, 255, 0.05);
                border: 1px solid rgba(6, 182, 212, 0.2);
                border-radius: 15px;
                padding: 25px;
                transition: all 0.3s ease;
                backdrop-filter: blur(10px);

                &:hover {
                    transform: translateY(-5px);
                    border-color: #06b6d4;
                    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.2);
                }

                .skill-icon {
                    font-size: 2.5em;
                    text-align: center;
                    margin-bottom: 15px;
                }

                .skill-name {
                    font-size: 1.2em;
                    color: #06b6d4;
                    font-weight: bold;
                    text-align: center;
                    margin-bottom: 15px;
                    letter-spacing: 1px;
                }

                .skill-level {
                    background: rgba(6, 182, 212, 0.1);
                    height: 8px;
                    border-radius: 4px;
                    overflow: hidden;
                    position: relative;

                    .skill-bar {
                        height: 100%;
                        background: linear-gradient(90deg, #06b6d4, #0891b2);
                        width: 0%;
                        transition: width 2s ease-in-out;
                        border-radius: 4px;
                        position: relative;

                        &::after {
                            content: '';
                            position: absolute;
                            top: 0;
                            right: 0;
                            width: 3px;
                            height: 100%;
                            background: rgba(255, 255, 255, 0.8);
                            border-radius: 0 4px 4px 0;
                        }
                    }
                }
            }
        }
    }

    /* Modales */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s ease-out;

        &.active {
            display: flex;
        }

        .modal-content {
            background: #2a2a2a;
            border-radius: 20px;
            padding: 40px;
            max-width: 700px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            text-align: center;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(6, 182, 212, 0.3);
            animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-sizing: border-box;

            .close-btn {
                position: absolute;
                top: 20px;
                right: 30px;
                font-size: 2em;
                color: #999;
                cursor: pointer;
                transition: color 0.3s;

                &:hover {
                    color: #06b6d4;
                }
            }

            .modal-header {
                display: flex;
                align-items: center;
                gap: 20px;
                margin-bottom: 30px;
                padding-bottom: 20px;
                border-bottom: 2px solid rgba(6, 182, 212, 0.2);

                .modal-image {
                    width: 150px;
                    height: 150px;
                    background: linear-gradient(45deg, #0f766e, #14b8a6);
                    border: 4px solid #06b6d4;
                    border-radius: 15px;
                    overflow: hidden;
                    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
                    flex-shrink: 0;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }

                .modal-title-section {
                    text-align: left;
                    flex: 1;

                    .modal-title {
                        font-size: 2.2em;
                        font-weight: bold;
                        margin-bottom: 10px;
                        color: #06b6d4;
                        letter-spacing: 2px;
                    }

                    .modal-category {
                        color: rgba(255, 255, 255, 0.7);
                        font-size: 1.1em;
                        text-transform: uppercase;
                        letter-spacing: 1px;
                        margin-bottom: 10px;
                    }
                }
            }

            .modal-details {
                display: grid;
                grid-template-columns: 1fr;
                gap: 20px;
                margin: 30px 0;

                .detail-section {
                    text-align: left;

                    h4 {
                        color: #06b6d4;
                        font-size: 1.2em;
                        margin-bottom: 15px;
                        letter-spacing: 1px;
                        border-bottom: 1px solid rgba(6, 182, 212, 0.3);
                        padding-bottom: 5px;
                    }

                    .detail-item {
                        display: flex;
                        justify-content: space-between;
                        margin: 10px 0;
                        padding: 8px 0;
                        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                        flex-wrap: wrap;
                        gap: 10px;

                        .detail-label {
                            color: rgba(255, 255, 255, 0.8);
                            font-weight: 500;
                            min-width: 120px;
                        }

                        .detail-value {
                            color: #06b6d4;
                            font-weight: bold;
                            text-align: right;
                        }
                    }
                }
            }

            .modal-description {
                text-align: left;
                color: rgba(255, 255, 255, 0.8);
                line-height: 1.6;
                font-size: 1.1em;
                margin-top: 20px;
                padding: 20px;
                background: rgba(6, 182, 212, 0.05);
                border-radius: 10px;
                border-left: 4px solid #06b6d4;
            }
        }
    }
}

/* Animations */
@keyframes titleGlow {
    0% { 
        text-shadow: 0 0 8px rgba(6, 182, 212, 0.6), 0 0 16px rgba(6, 182, 212, 0.4); 
    }
    100% { 
        text-shadow: 0 0 12px rgba(6, 182, 212, 0.8), 0 0 24px rgba(6, 182, 212, 0.6); 
    }
}

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Classes utilitaires */
.hidden {
    display: none !important;
}

/* Responsive - Tablettes */
@media (max-width: 1024px) {
    body {
        .container {
            padding-left: 30px;
            padding-right: 30px;
            padding-top: 100px;

            .title {
                font-size: 3em;
                letter-spacing: 3px;
            }

            .subtitle {
                font-size: 1.6em;
                letter-spacing: 3px;
                margin-bottom: 40px;
            }

            .about-grid {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 25px;
            }

            .filter-tabs {
                gap: 15px;
                margin-bottom: 40px;

                .filter-btn {
                    padding: 10px 20px;
                    font-size: 0.9em;
                }
            }
        }

        .presentation-section {
            margin: 60px 0;
            padding: 0 15px;

            .presentation-card {
                padding: 30px 20px;

                h3 {
                    font-size: 1.8em;
                    letter-spacing: 1px;
                }

                .stats-mini {
                    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                    gap: 15px;

                    .stat-mini {
                        padding: 12px;

                        .number {
                            font-size: 1.6em;
                        }

                        .label {
                            font-size: 0.8em;
                        }
                    }
                }
            }
        }

        .skills-section {
            margin: 60px 0;

            h3 {
                font-size: 1.8em;
            }

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

                .skill-item {
                    padding: 20px;

                    .skill-icon {
                        font-size: 2em;
                    }

                    .skill-name {
                        font-size: 1.1em;
                    }
                }
            }
        }

        .modal {
            .modal-content {
                padding: 30px;
                max-width: 90%;

                .modal-header {
                    flex-direction: column;
                    text-align: center;

                    .modal-image {
                        width: 120px;
                        height: 120px;
                    }

                    .modal-title-section {
                        text-align: center;

                        .modal-title {
                            font-size: 1.8em;
                        }
                    }
                }

                .modal-details {
                    .detail-item {
                        flex-direction: column;
                        gap: 5px;

                        .detail-value {
                            text-align: left;
                        }
                    }
                }
            }
        }
    }
}

/* Responsive - Mobiles */
@media (max-width: 768px) {
    body {
        .container {
            padding-left: 20px;
            padding-right: 20px;
            padding-top: 80px;

            .title {
                font-size: 2.5em;
                letter-spacing: 2px;
            }

            .subtitle {
                font-size: 1.3em;
                letter-spacing: 2px;
                margin-bottom: 30px;
            }

            .about-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                max-width: 400px;
            }

            .filter-tabs {
                gap: 10px;
                margin-bottom: 30px;

                .filter-btn {
                    padding: 8px 15px;
                    font-size: 0.85em;
                    letter-spacing: 0.5px;
                }
            }
        }

        .presentation-section {
            margin: 50px 0;
            padding: 0 10px;

            .presentation-card {
                padding: 25px 15px;

                h3 {
                    font-size: 1.6em;
                }

                p {
                    font-size: 1em;
                }

                .stats-mini {
                    grid-template-columns: 1fr;
                    gap: 10px;

                    .stat-mini {
                        padding: 10px;

                        .number {
                            font-size: 1.4em;
                        }
                    }
                }
            }
        }

        .skills-section {
            margin: 50px 0;
            padding: 0 10px;

            h3 {
                font-size: 1.6em;
                margin-bottom: 30px;
            }

            .skills-grid {
                grid-template-columns: 1fr;
                gap: 15px;

                .skill-item {
                    padding: 18px;

                    .skill-icon {
                        font-size: 1.8em;
                    }

                    .skill-name {
                        font-size: 1em;
                    }
                }
            }
        }

        .modal {
            .modal-content {
                padding: 25px 20px;
                margin: 20px;
                max-width: calc(100vw - 40px);
                width: calc(100vw - 40px);

                .close-btn {
                    top: 15px;
                    right: 20px;
                    font-size: 1.5em;
                }

                .modal-header {
                    .modal-image {
                        width: 100px;
                        height: 100px;
                    }

                    .modal-title-section {
                        .modal-title {
                            font-size: 1.4em;
                            letter-spacing: 1px;
                        }
                    }
                }
            }
        }
    }
}

/* Responsive - Petits mobiles */
@media (max-width: 480px) {
    body {
        .container {
            padding-left: 15px;
            padding-right: 15px;
            padding-top: 60px;

            .title {
                font-size: 2em;
                letter-spacing: 1px;
            }

            .subtitle {
                font-size: 1.1em;
                letter-spacing: 1px;
                margin-bottom: 25px;
            }

            .about-grid {
                max-width: 100%;
                gap: 15px;

                .photo-card {
                    .photo-image {
                        height: 200px;
                    }

                    .photo-info {
                        padding: 15px;

                        .photo-title {
                            font-size: 1.1em;
                            letter-spacing: 1px;
                        }

                        .photo-category {
                            font-size: 0.8em;
                        }

                        .photo-description {
                            font-size: 0.85em;
                            line-height: 1.4;
                        }
                    }
                }
            }

            .filter-tabs {
                .filter-btn {
                    padding: 6px 12px;
                    font-size: 0.8em;
                }
            }
        }

        .presentation-section {
            margin: 40px 0;
            padding: 0 5px;

            .presentation-card {
                padding: 20px 12px;

                h3 {
                    font-size: 1.4em;
                    letter-spacing: 0.5px;
                }

                p {
                    font-size: 0.9em;
                    line-height: 1.6;
                }

                .stats-mini {
                    .stat-mini {
                        padding: 8px;

                        .number {
                            font-size: 1.2em;
                        }

                        .label {
                            font-size: 0.75em;
                        }
                    }
                }
            }
        }

        .skills-section {
            margin: 40px 0;
            padding: 0 5px;

            h3 {
                font-size: 1.4em;
                margin-bottom: 25px;
            }

            .skills-grid {
                gap: 12px;

                .skill-item {
                    padding: 15px;

                    .skill-icon {
                        font-size: 1.6em;
                        margin-bottom: 10px;
                    }

                    .skill-name {
                        font-size: 0.9em;
                        margin-bottom: 12px;
                    }

                    .skill-level {
                        height: 6px;

                        .skill-bar {
                            &::after {
                                width: 2px;
                            }
                        }
                    }
                }
            }
        }

        .modal {
            .modal-content {
                padding: 20px 15px;
                margin: 15px;
                max-width: calc(100vw - 30px);
                width: calc(100vw - 30px);

                .close-btn {
                    top: 10px;
                    right: 15px;
                    font-size: 1.3em;
                }

                .modal-header {
                    .modal-image {
                        width: 80px;
                        height: 80px;
                    }

                    .modal-title-section {
                        .modal-title {
                            font-size: 1.2em;
                            margin-bottom: 5px;
                        }

                        .modal-category {
                            font-size: 0.9em;
                        }
                    }
                }

                .modal-description {
                    font-size: 0.9em;
                    padding: 15px;
                }
            }
        }
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    body {
        .container {
            padding-left: 10px;
            padding-right: 10px;

            .title {
                font-size: 1.6em;
                letter-spacing: 0.5px;
            }

            .subtitle {
                font-size: 1em;
                letter-spacing: 0.5px;
            }

            .about-grid {
                .photo-card {
                    .photo-image {
                        height: 160px;
                    }

                    .photo-info {
                        padding: 12px;

                        .photo-title {
                            font-size: 1em;
                        }

                        .photo-description {
                            font-size: 0.8em;
                        }
                    }
                }
            }
        }

        .presentation-section {
            margin: 30px 0;

            .presentation-card {
                padding: 15px 8px;

                h3 {
                    font-size: 1.2em;
                    letter-spacing: 0.3px;
                }

                p {
                    font-size: 0.85em;
                }
            }
        }

        .skills-section {
            margin: 30px 0;

            h3 {
                font-size: 1.2em;
            }

            .skills-grid {
                .skill-item {
                    padding: 12px;

                    .skill-icon {
                        font-size: 1.4em;
                    }

                    .skill-name {
                        font-size: 0.85em;
                    }
                }
            }
        }

        .modal {
            .modal-content {
                padding: 15px 10px;
                margin: 10px;
                max-width: calc(100vw - 20px);
                width: calc(100vw - 20px);

                .modal-header {
                    .modal-image {
                        width: 70px;
                        height: 70px;
                    }

                    .modal-title-section {
                        .modal-title {
                            font-size: 1.1em;
                        }

                        .modal-category {
                            font-size: 0.8em;
                        }
                    }
                }

                .modal-description {
                    font-size: 0.8em;
                    padding: 12px;
                }
            }
        }
    }
}