/*
 Theme Name: Perso
 Description: Thème personnalisé - Page Services
 Version: 1.0.6 - Mise à jour portfolio corrigée
*/

/* Variables CSS héritées du header.css */

/* ===== SECTION SERVICES ===== */
.custom-services-section {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    gap: 80px;
    align-items: flex-start;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.left-side {
    flex: 1 1 400px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 500px;
}

#portfolio-title,
#custom-services-title {
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.3;
    color: #333;
}

.description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Bouton Découvrir */
.btn-get-started {
    background: linear-gradient(135deg, #CA9724 0%, #e0b450 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(202, 151, 36, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-get-started:hover::before {
    left: 100%;
}

.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(202, 151, 36, 0.4);
}

.btn-get-started::after {
    content: "→";
    font-weight: bold;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-get-started:hover::after {
    transform: translateX(8px);
}

/* Grille des cartes de service */
.right-side {
    flex: 2 1 700px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    justify-items: center;
    align-items: center;
}

/* Cartes de service */
.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    border: 2px solid rgba(202, 151, 36, 0.1);
    width: 100%;
    min-height: 220px;
    padding: 35px 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(202, 151, 36, 0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card .card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.service-card:hover {
    background: linear-gradient(135deg, #CA9724 0%, #e0b450 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(202, 151, 36, 0.3);
    border-color: #CA9724;
}

.service-card:hover .card-title {
    color: #ffffff;
    transform: scale(1.05);
}

.service-card:hover .card-desc {
    color: #ffffff;
}

.service-card:hover .icon-circle {
    background-color: rgba(255, 255, 255, 0.9);
    color: #CA9724;
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.8);
}

.service-card.active {
    background: linear-gradient(135deg, #CA9724 0%, #e0b450 100%);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(202, 151, 36, 0.4);
    z-index: 10;
}

/* Icônes des cartes */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #CA9724 0%, #e0b450 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid rgba(202, 151, 36, 0.2);
    position: relative;
    z-index: 2;
}

.icon-circle i {
    font-size: 1.6rem;
    font-weight: 900;
}

/* Texte des cartes */
.card-text {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--black);
    line-height: 1.4;
    text-align: center;
    margin: 0 0 10px 0;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    padding: 0 10px;
}

.card-desc {
    font-size: 0.95em;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== SECTION PORTFOLIO ===== */
.portfolio-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 20px;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.portfolio-header-left {
    flex: 1;
}

.portfolio-subtitle {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 0;
    width: 100%;
    max-width: 600px;
    line-height: 1.4;
}

/* Articles portfolio - CORRECTION CRITIQUE : flex row pour desktop */
.portfolio-feature {
    display: flex;
    flex-direction: row;
    gap: 60px;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #CA9724;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    align-items: center;
}

.portfolio-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.portfolio-feature.highlight {
    background: rgba(202, 151, 36, 0.05);
    border-left: 4px solid #CA9724;
}

.portfolio-text {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-image {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-image img {
    width: 100%;
    max-width: 450px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #CA9724;
    line-height: 1.3;
}

.feature-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Tags des prestations */
.feature-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 20px 0 0 0;
    list-style: none;
}

.tag-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.tag-btn:hover {
    background: linear-gradient(135deg, #CA9724 0%, #e0b450 100%);
    color: white;
    border-color: #CA9724;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(202, 151, 36, 0.3);
}

.tag-btn.active {
    background: linear-gradient(135deg, #CA9724 0%, #e0b450 100%);
    color: white;
    border-color: #CA9724;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(202, 151, 36, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablettes */
@media (max-width: 1024px) {
    .custom-services-section {
        gap: 50px;
        padding: 40px 20px;
    }

    .right-side {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 25px;
    }

    .service-card {
        min-height: 200px;
        padding: 30px 20px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .icon-circle i {
        font-size: 1.4rem;
    }

    .card-title {
        font-size: 1.1em;
    }

    .card-desc {
        font-size: 0.95em;
    }

    /* Portfolio tablette */
    .portfolio-container {
        padding: 30px 15px;
        gap: 40px;
    }

    .portfolio-feature {
        gap: 40px;
        padding: 40px 30px;
    }

    .portfolio-image img {
        height: 250px;
        max-width: 350px;
    }
}

/* Tablettes portrait */
@media (max-width: 768px) {
    .custom-services-section {
        flex-direction: column;
        gap: 40px;
        padding: 30px 15px;
    }

    .left-side {
        max-width: 100%;
        height: auto;
        gap: 25px;
        text-align: center;
        align-items: center;
    }

    .right-side {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        min-height: 180px;
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
    }

    .icon-circle {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
        margin-right: 0;
    }

    .icon-circle i {
        font-size: 1.3rem;
    }

    .card-title {
        font-size: 1.1em;
        min-height: auto;
        text-align: center;
    }

    .card-desc {
        font-size: 0.9em;
        line-height: 1.4;
        text-align: center;
    }

    .btn-get-started {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    .subtitle {
        font-size: 1.3em;
        margin-bottom: 20px;
    }

    .description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* Portfolio tablette portrait */
    .portfolio-container {
        padding: 25px 15px;
        gap: 30px;
    }

    .portfolio-feature {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .portfolio-text {
        order: 1;
        flex: 1 1 100%;
    }

    .portfolio-image {
        order: 2;
        flex: 1 1 100%;
        justify-content: center;
    }

    .portfolio-image img {
        height: 200px;
        max-width: 100%;
    }

    .feature-title {
        font-size: 1.3rem;
    }

    .feature-desc {
        font-size: 1rem;
    }

    .feature-tags {
        gap: 10px;
    }

    .tag-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: normal;
    }
}

/* Mobiles */
@media (max-width: 480px) {
    .custom-services-section {
        padding: 25px 10px;
        gap: 30px;
        border-radius: 15px;
    }

    .right-side {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 15px;
    }

    .service-card {
        min-height: 160px;
        padding: 20px 15px;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .icon-circle i {
        font-size: 1.2rem;
    }

    .card-text {
        text-align: left;
        align-items: flex-start;
        justify-content: center;
    }

    .card-title {
        font-size: 1em;
        text-align: left;
        justify-content: flex-start;
        padding: 0;
        min-height: auto;
    }

    .card-desc {
        font-size: 0.85em;
        line-height: 1.3;
        text-align: left;
    }

    .subtitle {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .btn-get-started {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Portfolio mobile */
    .portfolio-section {
        padding: 40px 10px;
    }

    .portfolio-container {
        padding: 20px 10px;
        gap: 20px;
    }

    .portfolio-feature {
        padding: 25px 15px;
        gap: 25px;
    }

    .portfolio-image img {
        height: 180px;
    }

    .portfolio-subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-desc {
        font-size: 0.9rem;
    }

    .tag-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}