/* Styles spécifiques pour la page Nos Services */

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, 
        #4a90e2 0%, 
        #357abd 40%, 
        #2c7cc4 65%, 
        #f8faff 65%, 
        #f8faff 100%);
    background-repeat: no-repeat;
    background-size: 100% 100vh;
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Fix pour iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
        position: relative;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(to bottom, 
            #4a90e2 0%, 
            #357abd 40%, 
            #2c7cc4 65%, 
            #f8faff 65%, 
            #f8faff 100%);
        z-index: -1;
        pointer-events: none;
    }
}

/* Pour les autres navigateurs */
@supports not (-webkit-touch-callout: none) {
    body {
        background-attachment: fixed;
    }
}

/* Floating elements animation */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 70%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Navigation */
.nav-header {
    background: white;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #4a90e2;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.back-button {
    color: #4a90e2;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #4a90e2;
    position: relative;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Tooltip pour le bouton retour */
.back-button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    padding: 6px 12px;
    background: white;
    color: #4a90e2;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-in-out forwards;
}

.back-button[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    border: 6px solid transparent;
    border-bottom-color: white;
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-in-out forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Header section */
.header {
    padding: 30px 2rem 3rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: white;
    letter-spacing: -0.02em;
}

.header > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 2rem 0;
    color: white;
    font-weight: 400;
}

.service-intro {
    background: white;
    color: #333;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    margin: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-intro h2 {
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.01em;
}

.service-intro p {
    margin: 0;
    opacity: 0.8;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 1rem auto;
}

.logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    width: 180px;
}

.logo-box:hover {
    transform: translateY(-4px);
}

.logo-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 3px solid white;
    transition: all 0.2s ease;
}

.logo-icon:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.logo-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

/* Classes pour les couleurs adaptatives */
.text-blue {
    color: #4a90e2 !important;
}

.text-white {
    color: white !important;
}

.cta-section {
    background: white;
    color: #333;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.01em;
}

.cta-section p {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Style du bouton CTA avec effet hover élégant */
.cta-button {
    background: #4a90e2;
    color: white;
    border: 2px solid #4a90e2;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: white;
    border-radius: 50px;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.cta-button:hover::before {
    width: 100%;
    height: 100%;
}

.cta-button:hover {
    color: #4a90e2;
    border-color: #4a90e2;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.cta-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: scale(1.1);
}

.content {
    position: relative;
    z-index: 10;
}

.footer {
    background: none;
    color: #4a90e2;
    text-align: center;
    padding: 2rem;
    margin-top: 2.5rem;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .back-button {
        padding: 8px;
        margin-left: 8px;
    }

    .hero-section {
        padding: 30px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-left h1 {
        font-size: 2rem;
    }
    
    .hero-left .subtitle {
        font-size: 1.4rem;
    }

    .hero-left .description {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        max-width: 400px;
        gap: 1.5rem;
    }
    
    .logo-box {
        width: calc(50% - 0.75rem);
        min-width: 140px;
    }
    
    .logo-icon {
        width: 100px;
        height: 100px;
    }
    
    .logo-title {
        font-size: 0.9rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header > p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .service-intro h2 {
        font-size: 1.4rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }
}