/* Variables de couleurs */
:root {
    --primary: #31b0f4; /* Nouveau bleu RFCK */
    --secondary: #dc2626; /* Rouge RFCK */
    --light: #ffffff; /* Blanc */
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Saira', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), #5bc0f8);
    color: var(--light);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(49, 176, 244, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), #e53e3e);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(49, 176, 244, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #e53e3e);
}

.btn-secondary::before {
    background: linear-gradient(135deg, var(--primary), #5bc0f8);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center; /* Centrage vertical */
    height: 80px; /* Hauteur fixe pour centrage */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary);
    margin-left: 5px;
}

.logo i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center; /* Centrage vertical des liens */
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--secondary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    width: 30px;
    height: 21px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Section Hero avec Slider */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center; /* Centrage vertical */
    justify-content: center; /* Centrage horizontal */
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    text-align: center;
    color: var(--light);
    padding: 0 20px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slider-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--light);
    transform: scale(1.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Section À propos */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Section Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cartes sur la même ligne */
    gap: 30px;
}

.service-card {
    background-color: var(--light);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Section Équipe */
.team {
    background-color: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.team-member.animate {
    opacity: 1;
    transform: translateY(0);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.member-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.member-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 25px 20px;
}

.member-info h3 {
    color: var(--primary);
    font-size: 1.3rem;
}

.member-info p {
    color: var(--gray);
    font-size: 1rem;
}

/* Section Blog */
.blog {
    background-color: var(--light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.blog-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray);
}

.blog-date {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.blog-date i {
    margin-right: 5px;
    color: var(--secondary);
}

.blog-category {
    background-color: var(--light-gray);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
}

.blog-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.blog-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.blog-link:hover {
    color: var(--primary);
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* Section Témoignages */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial {
    background-color: var(--light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: none;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: var(--light-gray);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.testimonial-role {
    color: var(--gray);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Section Contact */
.contact {
    background-color: var(--light-gray);
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-details h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Saira', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 176, 244, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer - NOUVEAU DESIGN */
footer {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: var(--light);
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    color: var(--light);
    margin-bottom: 25px;
    position: relative;
    font-size: 1.3rem;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-logo span {
    color: var(--secondary);
    margin-left: 5px;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.footer-about {
    margin-bottom: 25px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light);
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(49, 176, 244, 0.4);
}

.contact-info-footer {
    margin-top: 20px;
}

.contact-info-footer p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info-footer i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
}

.newsletter {
    margin-top: 25px;
}

.newsletter p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Saira', sans-serif;
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--primary), #5bc0f8);
    color: var(--light);
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, var(--secondary), #e53e3e);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Animations supplémentaires */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.bounce {
    animation: bounce 2s infinite;
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne sur tablettes */
    }
}

@media (max-width: 992px) {
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .about-image, .about-text, .contact-info, .contact-form {
        width: 100%;
    }
    
    .about-image {
        transform: none;
        margin-top: 30px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 0 0 50%;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--light);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .slide h1 {
        font-size: 2.5rem;
    }
    
    .slide p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
    
    section {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* 1 carte par ligne sur mobile */
    }
}

@media (max-width: 576px) {
    .slide h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .service-card, .team-member, .blog-card {
        padding: 25px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input, .newsletter-btn {
        width: 100%;
        border-radius: 5px;
    }
    
    .newsletter-btn {
        margin-top: 10px;
        padding: 12px;
    }
}