/* Styles personnalisés pour le site de Romuald LAINEZ */

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation de pulsation pour les CTA */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation de rotation pour les icônes */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Styles pour les barres de progression */
.progress-bar {
    transition: width 1s ease-in-out;
}

/* Effet de hover pour les cartes de services */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Style pour les inputs du formulaire */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: scale(1.02);
}

/* Correction pour le bouton du formulaire de contact */
#contact-form button[type="submit"] {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    -webkit-transform: none !important;
    -webkit-backface-visibility: visible !important;
}

/* Animation pour les icônes de compétences */
.skill-icon {
    transition: all 0.3s ease;
}

.skill-icon:hover {
    transform: scale(1.2);
    color: #FF6B35;
}

/* Style pour le bouton de navigation mobile */
#mobile-menu-button {
    transition: all 0.3s ease;
}

#mobile-menu-button:hover {
    transform: scale(1.1);
}

/* Animation pour les liens de navigation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

/* Protection contre les animations qui affectent le bouton */
#contact-form button[type="submit"] {
    animation: none !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
}

#contact-form button[type="submit"]:hover {
    transform: translateY(-2px) !important;
}

/* Force le rendu correct du bouton */
#contact-form button[type="submit"] {
    contain: layout style paint !important;
    isolation: isolate !important;
}

/* Styles pour le select du formulaire de contact */
#contact-form select {
    color: white !important;
}

#contact-form select option {
    background-color: white !important;
    color: #374151 !important;
    padding: 8px !important;
}

#contact-form select:focus option:checked {
    background-color: #FF6B35 !important;
    color: white !important;
}

#contact-form select option:hover {
    background-color: #f3f4f6 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #008080;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Style pour les sections avec effet parallaxe */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Animation pour les barres de compétences */
.skill-bar {
    overflow: hidden;
    border-radius: 10px;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
    background: linear-gradient(90deg, #008080, #FF6B35);
}

/* Style pour les cartes d'expérience */
.experience-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.experience-card:hover::before {
    left: 100%;
}

/* Animation pour les icônes sociales */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Style pour le loader */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #008080;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style pour les messages de succès/erreur */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Style pour les tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Style pour les badges de compétences */
.skill-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: linear-gradient(45deg, #008080, #FF6B35);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style pour les cartes de statistiques */
.stats-card {
    background: linear-gradient(135deg, #008080, #FF6B35);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Style pour les boutons avec effet de ripple */
.ripple-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ripple-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-button:active::before {
    width: 300px;
    height: 300px;
}

/* Style pour les sections avec effet de glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

/* Animation pour les éléments qui apparaissent au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Style pour les liens externes */
.external-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.external-link::after {
    content: '↗';
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.external-link:hover::after {
    transform: translate(2px, -2px);
}

/* Style pour les citations */
.quote {
    position: relative;
    padding: 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #008080;
    border-radius: 8px;
}

.quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #008080;
    font-family: serif;
}

/* Style pour les listes avec icônes personnalisées */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #008080;
    font-weight: bold;
}

/* Responsive design amélioré */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Style pour les animations de scroll */
.scroll-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Style pour les effets de hover sur les images */
.image-hover {
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-hover:hover {
    transform: scale(1.05);
}

.image-hover img {
    transition: all 0.3s ease;
}

.image-hover:hover img {
    transform: scale(1.1);
}

/* Style pour les modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style pour les notifications toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

/* Style pour les indicateurs de scroll */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e9ecef;
    z-index: 1002;
}

.scroll-indicator-bar {
    height: 100%;
    background: linear-gradient(90deg, #008080, #FF6B35);
    width: 0%;
    transition: width 0.1s ease;
} 