:root {
    --primary-color: #4a6bff;
    --secondary-color: #ff6b6b;
    --dark-color: #2c3e50;
    --dark-blue: #1a2a4a;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7ff;
    overflow-x: hidden;
}

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

/* Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 1000;
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    height: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

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

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

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

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

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--dark-color);
    z-index: 1002;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(26, 42, 74, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: var(--transition);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
        padding: 10px 20px;
        display: block;
    }

    .nav-links a:hover {
        color: var(--secondary-color);
        background-color: rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: block;
    }

    .hamburger.active {
        color: white;
    }
}

/* Hero Section */
.hero {
    padding: 150px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 80px;
    }
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: contain; /* Changé de cover à contain */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f7ff; /* Ajout d'une couleur de fond */
}

.slide.active {
    opacity: 1;
}

/* Images spécifiques avec des styles adaptés */
.slide:nth-child(1) {
    background-image: url('images/average-score-for-a-20-year-old-e1738223302678.jpg');
    background-size: cover; /* Garde cover pour la première image */
}

.slide:nth-child(2) {
    background-image: url('images/neosurf.png');
    background-size: contain;
}

.slide:nth-child(3) {
    background-image: url('images/toneo.png');
    background-size: contain;
}

.slide:nth-child(4) {
    background-image: url('images/transcash.jfif');
    background-size: contain;
}

.slide:nth-child(5) {
    background-image: url('images/apple_card.jfif');
    background-size: contain;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3a5bef;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 107, 255, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: white;
}

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

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    background-color: rgba(74, 107, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 20px;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.about-image {
    flex: 1;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.benefits {
    background-color: #f5f7ff;
}

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

.benefit-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Why Choose Us */
.why-us {
    background-color: white;
}

.why-us-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.why-us-image {
    flex: 1;
}

.why-us-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.why-us-text {
    flex: 1;
}

.why-us-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.why-us-points {
    margin-top: 30px;
}

.why-us-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.why-us-point:hover {
    background-color: #e9f0ff;
    transform: translateX(5px);
}

.why-us-point i {
    color: var(--primary-color);
    font-size: 20px;
    margin-right: 15px;
    margin-top: 3px;
}

/* Steps Section */
.steps {
    background-color: #f5f7ff;
    position: relative;
    overflow: hidden;
}

.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.step-tree {
    position: relative;
    width: 100%;
    height: 600px;
}

.tree-trunk {
    position: absolute;
    width: 20px;
    height: 500px;
    background: linear-gradient(to right, #8B4513, #A0522D);
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 10px;
    z-index: 1;
}

.step-item {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    transition: all 0.5s ease;
}

.step-content {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 45%;
    position: relative;
    z-index: 2;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-branch {
    position: absolute;
    width: 20px;
    height: 100px;
    background: linear-gradient(to right, #8B4513, #A0522D);
    border-radius: 10px;
    z-index: 1;
}

.step-1 {
    top: 0;
    left: 0;
}

.step-1 .step-content {
    margin-left: auto;
}

.step-1 .step-branch {
    right: 45%;
    top: 50px;
    transform: rotate(-30deg);
    transform-origin: top center;
}

.step-2 {
    top: 150px;
    right: 0;
}

.step-2 .step-content {
    margin-right: auto;
}

.step-2 .step-branch {
    left: 45%;
    top: 50px;
    transform: rotate(30deg);
    transform-origin: top center;
}

.step-3 {
    top: 300px;
    left: 0;
}

.step-3 .step-content {
    margin-left: auto;
}

.step-3 .step-branch {
    right: 45%;
    top: 50px;
    transform: rotate(-20deg);
    transform-origin: top center;
}

.step-4 {
    top: 450px;
    right: 0;
}

.step-4 .step-content {
    margin-right: auto;
}

.step-4 .step-branch {
    left: 45%;
    top: 50px;
    transform: rotate(20deg);
    transform-origin: top center;
}

/* Testimonials */
.testimonials {
    background-color: white;
}

.testimonials-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    min-width: 350px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-user {
    margin-left: 15px;
}

.testimonial-user h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.testimonial-rating {
    color: var(--warning-color);
}

.testimonial-text {
    font-style: italic;
    color: #666;
}

.leave-review-btn {
    display: block;
    width: 200px;
    margin: 40px auto 0;
    text-align: center;
}

/* Review Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal h3 {
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-stars i {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.rating-stars i.active {
    color: var(--warning-color);
}

.submit-review {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-review:hover {
    background-color: #3a5bef;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6c5ce7 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta .btn-secondary {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn-secondary:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
}

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

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

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    margin-top: 5px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content, .why-us-content {
        flex-direction: column;
    }

    .about-image, .why-us-image {
        margin-top: 40px;
    }

    .step-tree {
        height: 700px;
    }

    .step-item {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-bottom: 40px;
    }

    .step-content {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .step-branch {
        display: none;
    }

    .tree-trunk {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }
    
    /* Ajustements spécifiques pour les slides sur mobile */
    .slide {
        background-size: contain;
    }
    
    .slide:nth-child(1) {
        background-size: cover;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .testimonial-card {
        min-width: 280px;
    }

    .step-tree {
        height: auto;
    }

    .tree-trunk {
        display: none;
    }

    .step-item {
        position: relative;
        margin-bottom: 30px;
    }

    .step-content {
        width: 100%;
    }
}


/* WHERE TO BUY - SANS IMAGES */
.where-to-buy {
    padding: clamp(40px, 5vw, 80px) 0;
    background-color: #f9f9f9;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-top: clamp(30px, 4vw, 50px);
}

.partner-card {
    background: white;
    padding: clamp(25px, 3vw, 35px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.partner-icon {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(15px, 2vw, 20px);
}

.partner-icon i {
    font-size: 24px;
    color: #0066cc;
}

.partner-card h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    margin-bottom: 12px;
    color: #333;
}

.partner-card p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    margin-bottom: clamp(15px, 2vw, 20px);
    flex-grow: 1;
    color: #666;
    line-height: 1.5;
}

.btn-small {
    padding: clamp(6px, 1vw, 8px) clamp(15px, 2vw, 20px);
    font-size: clamp(0.8rem, 1.1vw, 0.9rem);
    background: #0066cc;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-small:hover {
    background: #004d99;
}

.disclaimer {
    margin-top: clamp(25px, 3vw, 40px);
    padding: clamp(10px, 2vw, 15px);
    background-color: #f0f7ff;
    border-radius: 5px;
    text-align: center;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}

/* Accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
