/* Pages et Layout Styles */

/* Styles pour navigation fluide type "changement de page" */
.page-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
    padding-bottom: 0; /* Suppression du padding-bottom global */
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh; /* Hauteur complète de l'écran */
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 2rem;
    padding-bottom: 2rem; /* Padding normal, le footer suivra naturellement */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-sizing: border-box;
}

.page.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.page.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.page.next {
    transform: translateX(100%);
    opacity: 0;
}

/* Card styles */
.card {
    background: rgba(255,255,255,0.95);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Effet d'ombre pour les titres des pages 2, 3 et 4 */
#experience-title,
#skills-title,
#languages-title {
    text-shadow: 0 4px 8px rgba(102, 126, 234, 0.3), 
                 0 2px 4px rgba(118, 75, 162, 0.2);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.skill-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 1.2rem;
    position: relative;
    z-index: 9999 !important;
}

.star.half {
    position: relative;
    color: #e5e7eb;
}

.star.half::before {
    content: "★";
    position: absolute;
    left: 0;
    color: #fbbf24;
    width: 50%;
    overflow: hidden;
}

/* Special pages styles - Z-index élevé pour apparaître au premier plan */
.special-page {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.9) !important;
    z-index: 5000 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto !important;
    display: block !important;
}

.special-page.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.special-content {
    max-width: 4xl;
    margin: 2rem auto;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    z-index: 5001;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-in-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-in-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utilitaires */
.font-helvetica {
    font-family: Helvetica, Arial, sans-serif;
}

.lang-flag.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Responsive adjustments for pages */
@media (max-width: 768px) {
    .page {
        padding: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Footer responsive styles - Comportement normal */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    footer .relative.z-10 {
        padding: 1rem;
    }
    
    footer .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
