:root {
    --primary-color: #21becd;
    --secondary-color: #EE5631;
    --accent-color: #00B894;
    --text-color: #333333;
    --background-color: #FFFFFF;
    --section-padding-sm: 0.5rem 2rem;
    --section-padding-md: 1rem 2rem;
    --section-padding-lg: 1.5rem 2rem;
    --section-padding-xl: 3rem 2rem;
    --section-padding-xxl: 5rem 2rem;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.8rem 2rem;
}

.navbar.scrolled .nav-links a {
    color: white;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--secondary-color);
}

.navbar.scrolled .logo {
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
    height: 50px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

section {
    padding: var(--section-padding-xl);
    /* padding-bottom: 0; */
}

section:first-of-type {
    padding: 0rem;
}

section:last-of-type {
    padding: var(--section-padding-xxl);
}

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

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Presentation Section */
.presentation {
    background-color: #fff;
}

.presentation .container {
    max-width: 1200px;
    margin: 0 auto;
}

.presentation h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.presentation-content {
    display: grid;
    gap: 1rem;
}

.main-intro {
    text-align: center;
    /* max-width: 800px; */
    margin: 0 auto;
}

.main-intro .highlight {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.main-intro .partner-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-intro .partner-link:hover {
    color: #1ca8b9;
    text-decoration: underline;
}

.target-audience {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.target-audience h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.our-strengths {
    padding: 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
}

.our-strengths h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.our-strengths ul {
    list-style: none;
    padding: 0;
}

.our-strengths li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.our-strengths li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.call-to-action {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.call-to-action p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.call-to-action .cta-button {
    background-color: white;
    color: var(--primary-color);
}

.call-to-action .cta-button:hover {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .presentation-content {
        gap: 2rem;
    }

    .main-intro .highlight {
        font-size: 1.1rem;
    }

    .target-audience, .our-strengths, .call-to-action {
        padding: 1.5rem;
    }
}

/* Partners Section */
.partners {
    background-color: #fff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.partner-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.partner-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.partner-role {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.partner-name {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.partner-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partner-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.partner-contact a:hover {
    color: var(--primary-color);
}

.partner-contact i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .partner-card {
        padding: 1.5rem;
    }
}

/* Proposition 1 : Style Moderne avec Images */
.partners-modern {
    background-color: #fff;
}

.partners-modern .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.partners-modern .partner-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.partners-modern .partner-card:hover {
    transform: translateY(-10px);
}

.partners-modern .partner-logo {
    height: 150px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-modern .partner-logo img {
    max-width: 200px;
    max-height: 100px;
}

.partners-modern .partner-info {
    padding: 2rem;
}

.partners-modern .service-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(33, 190, 205, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.9rem;
}

/* Proposition 2 : Style Minimaliste */
.partners-minimal {
    background-color: #f8f9fa;
}

.partners-minimal .partners-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.partners-minimal .partner-item {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
}

.partners-minimal .partner-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.partners-minimal .partner-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.partners-minimal .website-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.partners-minimal .website-btn:hover {
    text-decoration: underline;
}

/* Proposition 3 : Style Carte de Visite */
.partners-business {
    background-color: #fff;
}

.partners-business .partners-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.partners-business .business-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.partners-business .business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.partners-business header {
    margin-bottom: 2rem;
}

.partners-business .subtitle {
    color: #666;
    font-size: 0.9rem;
}

.partners-business .contact-person {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.partners-business .contact-person i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.partners-business .person-info {
    display: flex;
    flex-direction: column;
}

.partners-business .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partners-business .contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.partners-business .contact-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .partners-modern .partners-grid,
    .partners-minimal .partners-container,
    .partners-business .partners-showcase {
        padding: 0 1rem;
    }

    .partners-minimal .partner-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .partners-business .business-card {
        padding: 1.5rem;
    }
}

/* Section Clients */
.clients {
    background-color: #fff;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.client-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.client-header {
    margin-bottom: 1rem;
}

.client-logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.client-link:hover .client-logo {
    transform: scale(1.1);
}

.client-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    width: 100%;
    aspect-ratio: 16/9;
}

.client-work {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.project-image:hover .client-work {
    transform: scale(1.05);
}

.project-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0 0 0;
    min-height: 2.7em;
}

.client-link {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: block;
}

.client-link:hover .client-card {
    transform: translateY(-5px);
}

.client-link:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .client-card {
        padding: 1.5rem;
    }

    .client-logo {
        max-width: 150px;
    }

    .client-work {
        height: 150px;
    }
}

/* Services Section */
.services {
    background-color: #f8f9fa;
}

.services h2, .portfolio h2, .partners-business h2, .contact h2, .clients h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.service-card p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Portfolio Section */
.portfolio {

}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/9;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
}

.contact-profile {
    text-align: center;
    /* margin-bottom: 2rem; */
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.contact-profile h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-profile .role {
    color: var(--secondary-color);
    font-weight: 500;
    /* margin-bottom: 1.5rem; */
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.contact-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    /* margin-bottom: 1.5rem; */
}

.contact-info p {
    /* margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem; */
}

.contact-info a,
.footer-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover,
.footer-info a:hover {
    color: var(--secondary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #d94b2a;
}

/* Instagram Feed Section */
.instagram-feed {
    text-align: center;
    color: white;
}

.instagram-feed h2 {
    color: white;
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.instagram-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 2rem; */
    background-color: var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.instagram-follow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 0;
    max-width: 250px;
    background-color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.instagram-follow:hover {
    background-color: #1ca8b9;
}

.instagram-follow i {
    font-size: 1.2rem;
}

/* Personnalisation du widget Elfsight */
.eapps-instagram-feed-title {
    font-family: 'Poppins', sans-serif !important;
}

.eapps-instagram-feed-posts-grid {
    padding: 0 !important;
}

.eapps-instagram-feed-posts-item {
    border-radius: 10px !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .elfsight-container {
        padding: 0 1rem;
    }
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.popup.show .popup-content {
    transform: translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.popup-header h3 {
    margin: 0;
    color: #333;
}

.close-popup {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-popup:hover {
    color: #333;
}

.popup-body {
    color: #666;
}

/* Style du bouton pendant le chargement */
.cta-button.loading .button-text {
    visibility: hidden;
}

.cta-button.loading .loader {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

.service-card, .client-card, .portfolio-item {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    /* Centrage vertical */
    display: none; /* Garde display none par défaut */
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: 0;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: fixed; /* Changed from absolute to fixed */
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Animation */
.modal-content, .modal {
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: 0;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: fixed;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
}

/* Classes pour ajuster la position des images */
.position-left {
    object-position: left center;
}

.position-right {
    object-position: right center;
}

.position-top {
    object-position: center top;
}

.position-bottom {
    object-position: center bottom;
}

/* Positions combinées */
.position-top-left {
    object-position: left top;
}

.position-top-right {
    object-position: right top;
}

.position-bottom-left {
    object-position: left bottom;
}

.position-bottom-right {
    object-position: right bottom;
}
