/* Hero Section */
.portfolio-hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--color-muted);
    margin-bottom: 3rem;
}

/* ========================================
   CARROUSEL UNIQUE MODERNE
   ======================================== */

.portfolio-showcase {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-showcase::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: var(--color-accent);
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
}

.showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 80px;
}

.showcase-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.showcase-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem;
}

/* Visuel du projet - Centré et proportionné */
.slide-visual {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    max-height: 600px;
}

.slide-visual img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
    margin: 0 auto;
}

.zoom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.zoom-icon {
    font-size: 3rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.slide-visual:hover .zoom-overlay {
    opacity: 1;
}

.slide-visual:hover .zoom-icon {
    transform: scale(1);
}

.slide-visual:hover img {
    transform: scale(1.05);
}

/* Informations du projet */
.slide-info {
    padding: 2rem;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 62, 108, 0.3);
}

.link-icon {
    font-size: 1.1rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 62, 108, 0.2) 0%, rgba(233, 30, 99, 0.2) 100%);
    border: 1px solid rgba(255, 62, 108, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* Boutons de navigation */
.showcase-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--color-accent) 0%, #e91e63 100%);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 62, 108, 0.4);
}

.showcase-btn:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 62, 108, 0.6);
}

.showcase-btn.prev {
    left: 10px;
}

.showcase-btn.next {
    right: 10px;
}

.showcase-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dots de navigation */
.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2.5rem;
}

.showcase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.showcase-dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 62, 108, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.showcase-dot:hover:not(.active) {
    background: rgba(255, 62, 108, 0.5);
    transform: scale(1.1);
}

/* Compteur */
.showcase-counter {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-muted);
    font-weight: 500;
}

#currentSlide {
    color: var(--color-accent);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Modal pour agrandir les images */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--color-accent);
    transform: rotate(90deg);
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* ========================================
   SECTION SITES WEB (GRILLE)
   ======================================== */

.web-projects-section {
    padding: 5rem 8%;
    background: #0a0a0a;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, #e91e63 100%);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 1.1rem;
    margin-top: 2rem;
}

.web-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Carte projet web */
.web-project-card {
    background: linear-gradient(135deg, #151515 0%, #1f1f1f 100%);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.web-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 62, 108, 0.3);
}

.web-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #000;
}

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

.web-project-card:hover .web-card-image img {
    transform: scale(1.1);
}

.web-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.web-project-card:hover .web-card-overlay {
    opacity: 1;
}

.btn-visit {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #e91e63 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 62, 108, 0.3);
}

.btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 62, 108, 0.5);
}

.web-card-content {
    padding: 2rem;
}

.web-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.web-card-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.web-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature {
    font-size: 0.85rem;
    color: var(--color-accent);
    opacity: 0.8;
}

/* ========================================
   TRUST SECTION
   ======================================== */

.trust-teaser {
    padding: 60px 8%;
    background: linear-gradient(135deg, #151515 0%, #222222 100%);
    margin: 40px 20px;
    border-radius: 10px;
}

.trust-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.trust-text p {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.map-preview {
    width: 300px;
    height: 200px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
}

.map-dots {
    width: 100%;
    height: 100%;
    position: relative;
}

.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.btn-trust {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #e91e63 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 62, 108, 0.3);
}

.btn-trust:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 62, 108, 0.5);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 80px 8%;
    text-align: center;
    background: linear-gradient(135deg, #151515 0%, #222222 100%);
    position: relative;
    overflow: hidden;
    margin: 20px;
    border-radius: 10px;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 80%;
    height: 300%;
    background: var(--color-accent);
    opacity: 0.05;
    transform: rotate(-20deg);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--color-muted);
    margin-bottom: 30px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
    padding: 3rem 8%;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.footer-section h3 {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--color-muted);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--color-muted);
    font-size: 0.9rem;
}

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

@media (max-width: 1200px) {
    .showcase-slide {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .web-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .showcase-container {
        padding: 0 60px;
    }
    
    .showcase-slide {
        padding: 2rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .showcase-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .portfolio-showcase {
        padding: 2rem 1rem;
    }
    
    .showcase-container {
        padding: 0 50px;
    }
    
    .showcase-slide {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
    
    .showcase-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .web-projects-section {
        padding: 3rem 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .web-projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .web-card-image {
        height: 220px;
    }
    
    footer {
        padding: 2rem 5%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .showcase-container {
        padding: 0 40px;
    }
    
    .showcase-slide {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        justify-content: center;
    }
    
    .showcase-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .showcase-btn.prev {
        left: 5px;
    }
    
    .showcase-btn.next {
        right: 5px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .web-card-content {
        padding: 1.5rem;
    }
    
    .web-card-title {
        font-size: 1.3rem;
    }
}