@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --accent-color: #5ba3f5;
    --bg-gradient: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --surface-light: rgba(255, 255, 255, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.1);
    --logo-size-desktop: 120px;
    --logo-size-tablet: 100px;
    --logo-size-mobile: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, 
        #4a90e2 0%, 
        #357abd 40%, 
        #2c7cc4 65%, 
        #ffffff 65%, 
        #f8fafc 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%, 
            #ffffff 65%, 
            #f8fafc 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); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
    padding-top: 15px;
}

.header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.header-text {
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    width: var(--logo-size-desktop);
    height: var(--logo-size-desktop);
    animation: logoSpin 1s ease-out 0.3s both;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    max-width: 100%;
    max-height: 100%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); }
    to { filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5)); }
}

@keyframes logoSpin {
    from { transform: rotate(-360deg) scale(0.5); opacity: 0; }
    to { transform: rotate(0deg) scale(1); opacity: 1; }
}

.header p {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.intro-box {
    background: var(--surface-light);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 50px;
    margin-bottom: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: slideInLeft 1s ease-out 0.6s both;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.intro-box.no-scroll-reveal {
    animation: slideInLeft 1s ease-out 0.6s both;
}

.intro-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.intro-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.intro-box h2 {
    color: #4a90e2;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.typewriter-container {
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                min-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: height, min-height;
}

.typewriter-text {
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 1;
    min-height: 1.5rem;
}

.typewriter-cursor {
    animation: blinkCursor 1s infinite;
    font-weight: normal;
}

@keyframes blinkCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typewriter-text ul {
    list-style: none;
    margin: 20px 0;
}

.typewriter-text li {
    margin: 15px 0;
    padding-left: 10px;
    position: relative;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.typewriter-text .emoji {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Section À propos */
.about-section {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(74, 144, 226, 0.3),
        0 10px 25px rgba(74, 144, 226, 0.1);
    animation: slideInRight 1s ease-out 0.9s both;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 50px;
    align-items: center;
    color: white;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    animation: slideInLeft 0.8s ease-out 1.2s both;
}

.expertise-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.6s ease-out 1.4s both;
    position: relative;
}

.expertise-star {
    margin-right: 8px;
    animation: starTwinkle 2s infinite ease-in-out;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.about-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.3em;
    animation: slideInLeft 0.8s ease-out 1.6s both;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    opacity: 0;
    animation: slideInRight 0.6s ease-out calc(1.8s + var(--i) * 0.2s) both;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item i {
    margin-right: 12px;
    font-size: 1.2rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: rgba(255, 255, 255, 1);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover::before {
    opacity: 1;
}

.personal-message {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 700;
    opacity: 0.95;
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    padding-left: 20px;
    margin-top: 25px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    /*animation: 
        typeWriter 2s ease-out 2.4s both,
        blinkCursor 1s infinite 4.4s,
        hideCursorPersonal 0.1s ease-out 7s both;*/
}

@keyframes hideCursorPersonal {
    to { border-right-color: transparent; }
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: url('../profile.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    animation: profileAppear 1s ease-out 2s both;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: profileShine 3s infinite;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: profileRipple 4s infinite ease-out;
}

@keyframes profileRipple {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0; }
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.profile-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    display: block;
}

.welcome-text {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 60px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    animation: fadeIn 1s ease-out 3s both;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.service-card {
    background: var(--surface-light);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 30px;
    padding: 60px 50px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
    animation: slideInUp 0.8s ease-out calc(var(--i) * 0.3s + 1.2s) both;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.service-card:hover::before {
    animation-duration: 2s;
}

.service-icon {
    width: 120px;
    height: 120px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(74, 144, 226, 0.2), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover .service-icon {
    background: rgba(74, 144, 226, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon::before {
    transform: rotate(45deg) translateX(100%);
}

.service-icon i {
    font-size: 3rem;
    color: #4a90e2;
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.service-card:hover .service-title {
    transform: translateY(-2px);
}

.service-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: var(--text-light);
    transition: opacity 0.3s ease;
}

.service-card:hover .service-description {
    color: var(--text-dark);
}

.service-btn {
    background: #4a90e2;
    color: white;
    border: 2px solid #4a90e2;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-btn::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;
}

.service-btn:hover::before {
    width: 100%;
    height: 100%;
}

.service-btn:hover {
    color: #4a90e2;
    border-color: #4a90e2;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes typeWriter {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 100%;
    }
}

@keyframes profileAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes profileShine {
    0% { transform: rotate(45deg) translateX(-200%); }
    100% { transform: rotate(45deg) translateX(200%); }
}

/* Particules animées */
.about-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat1 4s infinite ease-in-out;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 15%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: particleFloat2 3s infinite ease-in-out 1s;
}

@keyframes particleFloat1 {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.6; }
    33% { transform: translateY(-20px) translateX(10px); opacity: 1; }
    66% { transform: translateY(10px) translateX(-5px); opacity: 0.8; }
}

@keyframes particleFloat2 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.4; }
    50% { transform: translateY(-15px) translateX(8px) scale(1.5); opacity: 0.8; }
}

/* Badge expertise pulsation */
.expertise-badge::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    animation: badgePulse 3s infinite ease-in-out;
    z-index: -1;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .about-section {
        padding: 40px 30px;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .profile-photo, .profile-placeholder {
        width: 130px;
        height: 130px;
    }

    .personal-message {
        white-space: normal !important;
        overflow: visible !important;
        border-right: none !important;
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .intro-box h2 {
        font-size: 1.4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-card {
        padding: 50px 35px;
    }

    .intro-box {
        padding: 35px;
    }

    .container {
        padding: 30px 15px;
    }

    .header-content {
        gap: 20px;
    }
    
    .logo {
        width: var(--logo-size-tablet);
        height: var(--logo-size-tablet);
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 40px 25px;
    }

    .intro-box {
        padding: 25px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .header-content {
        gap: 15px;
    }
    
    .logo {
        width: var(--logo-size-mobile);
        height: var(--logo-size-mobile);
        margin-bottom: 0;
    }
}

/* Écrans très larges */
@media (min-width: 1400px) {
    .logo {
        width: 140px;
        height: 140px;
    }
}

/* Hover effects for the entire page */
.container:hover .floating-element {
    animation-duration: 30s;
}

.testimonials-section {
    padding: 60px 20px;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    animation: scroll 25s linear infinite;
    gap: 30px;
    width: max-content;
    /* Pas de transition pour éviter les saccades */
}

.carousel-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    min-width: 400px;
    width: 400px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    color: white;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 15px;
}

.testimonial-author {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Calcul précis : 7 cartes × (400px largeur + 30px gap) = 3010px */
        transform: translateX(calc(-7 * 430px));
    }
}

/* Alternative avec une animation plus fluide */
@keyframes smoothScroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-7 * 430px), 0, 0);
    }
}

/* Utilisez smoothScroll pour une meilleure performance */
.carousel-track {
    display: flex;
    animation: smoothScroll 25s linear infinite;
    gap: 30px;
    width: max-content;
    will-change: transform; /* Optimisation GPU */
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        min-width: 300px;
        width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-track {
        animation: smoothScrollMobile 20s linear infinite;
    }
    
    @keyframes smoothScrollMobile {
        from {
            transform: translate3d(0, 0, 0);
        }
        to {
            /* 7 cartes × (300px + 30px) = 2310px */
            transform: translate3d(-2310px, 0, 0);
        }
    }
}
/* ========== SECTION BAROMÈTRE RETRAITE ========== */
.barometre-section {
    margin: 50px 0;
}

.barometre-container {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.barometre-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.barometre-icon {
    font-size: 80px;
    color: white;
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.barometre-content {
    color: white;
    z-index: 1;
}

.barometre-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
}

.barometre-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0.95;
}

.barometre-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-badge i {
    font-size: 16px;
}

.barometre-cta {
    z-index: 1;
}

.barometre-btn {
    background: #ff6b35;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.barometre-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: #ff5722;
}

.barometre-btn i {
    transition: transform 0.3s ease;
}

.barometre-btn:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 968px) {
    .barometre-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 25px;
        gap: 25px;
    }

    .barometre-icon {
        font-size: 60px;
        margin: 0 auto;
    }

    .barometre-title {
        font-size: 24px;
    }

    .barometre-description {
        font-size: 15px;
    }

    .barometre-features {
        justify-content: center;
    }

    .barometre-cta {
        display: flex;
        justify-content: center;
    }

    .barometre-btn {
        font-size: 16px;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .barometre-container {
        padding: 25px 20px;
    }

    .barometre-title {
        font-size: 20px;
    }

    .barometre-description {
        font-size: 14px;
    }

    .feature-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .barometre-btn {
        width: 100%;
        justify-content: center;
    }
}
