@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #0f0c29; /* dark fallback if video fails */
}

/* Header */
header {
    background-color: #601cfc;
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo {
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.6em;
}

.navigation a {
    color: #000;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    margin-left: 25px;
    transition: 0.3s ease;
}

.navigation a:hover {
    color: #ffffff;
}

/* Main Section */

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent; /* Video is behind */
}

.main h2 {
    color: #fff;
    font-size: 1.6em;
}

.main h2 span {
    color: #eca200;
    display: block;
    font-size: 2.8em;
    margin-top: 10px;
}

.main h3 {
    color: #fff;
    font-size: 2em;
    margin: 20px 0;
}

.main-btn {
    color: #fff;
    background-color: #3a6cf4;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s ease;
}

.main-btn:hover {
    background-color: #0a49f6;
    transform: scale(1.05);
}

/* Section Titles */
.title {
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    color: #3a6cf4;
    margin-bottom: 30px;
}

/* Cards */
.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    width: 250px;
    transition: 0.3s ease;
}

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

.card .icon {
    font-size: 3em;
    color: #3a6cf4;
    margin-bottom: 15px;
}

.card .info h3 {
    color: #3a6cf4;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.projects {
    background: rgba(0, 0, 0, 0.4); /* Transparent dark overlay */
    backdrop-filter: blur(8px);     /* Blur effect */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    padding: 50px 20px;
    border-radius: 15px;            /* Optional: rounded corners */
}


.project-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 250px;
    transition: 0.3s ease;
}

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

.project-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.project-info {
    padding: 15px;
    text-align: center;
}

.project-category {
    font-size: 0.9em;
    font-weight: 600;
    color: #fff3f3;
}

.exchange-rates-container {
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
}

.achat-price, .vente-price {
    font-weight: 700;
    color: #3a6cf4;
}

/* Convertisseur Section */
.converter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 50px 20px;
}

.converter-card {
    background: rgba(255, 255, 255, 0.35); /* transparent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    width: 300px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4); /* frosted border */
}

.converter-card h3 {
    margin-bottom: 15px;
    color: #ffffff; /* keep your accent color */
}

.converter-input-group {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.converter-card input, 
.converter-card select {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5); /* softer glass for inputs */
    backdrop-filter: blur(8px);
}

.converter-icon {
    font-size: 2em;
    margin: 10px 0;
    color: #3a6cf4;
}

.converter-note {
    text-align: center;
    color: red;
    font-weight: 600;
    margin-top: 20px;
}

/* Contact Section */
.contact .card .icon {
    font-size: 3em;
    color: #3a6cf4;
}

.contact .info a {
    text-decoration: none;
    color: #000;
}

.contact .info a:hover {
    color: #601cfc;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.25); /* transparent black */
    backdrop-filter: blur(10px);     /* blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    color: #fff;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* subtle border */
}


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

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #601cfc;
}

.modal-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.modal-map-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3a6cf4;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 10px;
}

.modal-map-btn:hover {
    background-color: #0a49f6;
}

/* Responsive */
@media(max-width:900px){
    header {
        flex-direction: column;
        padding: 15px;
    }

    .converter-container {
        flex-direction: column;
    }

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

    .project-card, .card, .converter-card {
        width: 90%;
    }
}
/* --- RÉSERVER Button Styling --- */
.more-details {
    display: inline-block;
    text-decoration: none;
    background-color: #3a6cf4;
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.more-details:hover {
    background-color: #0a49f6;
    transform: scale(1.05);
}
.more-details {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.converter-note {
    text-align: center;
    color: #fff; /* white text for contrast */
    background-color: #e74c3c; /* red background */
    font-weight: 700;
    margin: 20px auto 0 auto;
    font-size: clamp(14px, 2.5vw, 18px);
    padding: 15px 20px;
    border-radius: 10px;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.converter-note i {
    font-size: 1.2em;
    color: #fff;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    font-size: 1.8em;
    gap: 10px; /* space between logo and text */
}

.logo-img {
    width: 50px; /* adjust size */
    height: auto;
}
header {
    background-color: #f0f0f0;
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* reduced for better spacing */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* space between logo and text */
    text-decoration: none;
    color: #000;
    font-weight: 700;
}

.logo-img {
    width: 40px;       /* adjust as needed */
    height: 40px;      /* keeps it square */
    object-fit: contain;
}

.logo span {
    font-size: 1.4em;  /* smaller and balanced with logo */
    text-transform: uppercase;
}
.navigation a {
    color: #fff;                  /* white text for contrast */
    background-color: #3a6cf4;    /* blue button background */
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    padding: 8px 15px;            /* make it look like a button */
    margin-left: 10px;            /* spacing between buttons */
    border-radius: 8px;           /* rounded corners */
    transition: 0.3s ease;
}

.navigation a:hover {
    background-color: #601cfc;    /* darker blue on hover */
    transform: scale(1.05);       /* slight pop effect */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
header {
    background: rgba(255, 255, 255, 0.35); /* light transparent white */
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

header {
    display: flex;
    align-items: center;
    gap: 15px; /* space between logo & title */
}

header .logo img {
    width: 60px;      /* adjust size */
    height: auto;
}
.google-reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.review-card {
    width: 300px;
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-name {
    font-weight: bold;
    font-size: 1.1em;
}

.review-stars {
    color: #f4b400;
}

.review-text {
    font-size: 0.95em;
    margin-top: 10px;
    line-height: 1.4em;
}
#live-date-time {
    margin: 20px auto 0;
    padding: 12px 25px;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    width: fit-content;

    background: rgba(255, 255, 255, 0.15); /* Transparent */
    backdrop-filter: blur(10px);           /* iPhone-style blur */
    -webkit-backdrop-filter: blur(10px);

    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);

    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
/* ===== VIDEO BACKGROUND ===== */
#video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); /* dark fallback */
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(40%) blur(3px);
}

@media (max-width: 768px) {
    #video-wrapper {
        position: fixed;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    #bg-video {
        min-width: 100vw;
        min-height: 100vh;
    }
}
/* ===== 3D DEVISES SECTION ===== */

.projects .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    perspective: 1200px; /* Enables 3D depth */
}

/* 3D CARDS */
.project-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;
    padding: 15px;
    width: 260px;

    transform-style: preserve-3d;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

/* 3D hover effect */
.project-card:hover {
    transform: rotateY(15deg) rotateX(8deg) scale(1.07);
    box-shadow: 0 25px 45px rgba(0,0,0,0.45);
}

/* Image pops out */
.project-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: translateZ(40px) scale(1.1);
}

/* Info also lifted forward */
.project-info {
    padding: 15px;
    text-align: center;
    transform: translateZ(20px);
}

.exchange-rates-container span {
    transform: translateZ(20px);
}
.scroll-cards {
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
}

.scroll-track {
    display: flex;
    gap: 20px;
    padding: 10px;
    animation: scrollLeft 25s linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-120%); }
}

.scroll-card {
    min-width: 150px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15); /* transparent box */
    backdrop-filter: blur(6px);            /* blur glass effect */
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.scroll-card img {
    width: 45px;
    height: 30px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.scroll-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.scroll-card p {
    font-size: 14px;
    margin: 2px 0;
}
/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 25px;
    right: 25px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float img {
    width: 70px;
    height: 70px;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
/* Background Blur */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px); /* iPhone style */
    background: rgba(0, 0, 0, 0.35);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* iPhone Popup Box */
.modal-content {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(12px); /* iPhone glass */
    padding: 25px;
    width: 88%;
    max-width: 360px;
    border-radius: 22px; /* iPhone rounded */
    text-align: center;
    position: relative;
    box-shadow: 0 25px 45px rgba(0,0,0,0.15);
    animation: iosPopup 0.28s ease-out;
}

/* Close Button (iPhone style) */
.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #555;
    font-weight: 300;
}

/* Icon + Text */
.modal-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-size: 17px;
    color: #222;
}

/* Icons */
.modal-info i {
    font-size: 22px;
    color: #007aff; /* iOS blue */
}

/* iPhone Button */
.modal-map-btn {
    display: block;
    background: #007aff;
    color: white;
    padding: 14px;
    text-decoration: none;
    border-radius: 14px; /* iPhone round button */
    margin-top: 18px;
    font-size: 16px;
    font-weight: 500;
    transition: 0.2s;
}

.modal-map-btn:active {
    background: #0060d4;
    transform: scale(0.97); /* iPhone click effect */
}

/* Animation */
@keyframes iosPopup {
    from {
        opacity: 0;
        transform: scale(0.82) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
/* Modal Buttons Style */
.modal-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    transition: 0.3s;
    background-color: #601cfc; /* Default purple */
}

.modal-btn:hover {
    transform: scale(1.03);
    background-color: #4b16c9;
}

/* WhatsApp Button */
.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #1eb94f;
}

/* Phone Button (same purple as map) */
.phone-btn {
    background-color: #601cfc;
}

/* Map Button */
.map-btn {
    background-color: #601cfc;
}
.status-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.status-closed {
    background: #dc3545 !important;
}
.popup-message {
  position: fixed;                 /* FIXED TO SCREEN */
  bottom: 40px;                    /* Distance from bottom of screen */
  left: 50%;
  transform: translateX(-50%) translateY(40px) scale(0.95);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  color: white;
  padding: 22px 35px;
  font-size: 1.3rem;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 999999;                /* MAKE SURE IT'S ALWAYS ON TOP */
  font-weight: 600;
  text-align: center;
  max-width: 90%;
  animation: bubbleBounce 0.8s ease;
}

/* SHOW */
.popup-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* SPEECH BUBBLE TAIL */
.popup-message::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 20px solid rgba(0, 0, 0, 0.45);
}

/* BOUNCE EFFECT */
@keyframes bubbleBounce {
  0% { transform: translateX(-50%) translateY(60px) scale(0.8); opacity: 0; }
  50% { transform: translateX(-50%) translateY(-10px) scale(1.05); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}
.map-container {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 30px;
}

.map-container:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.55);
    padding: 10px 16px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    backdrop-filter: blur(4px);
    display: flex;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}

/* Remove horizontal scrolling everywhere */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}
/* Force WhatsApp floating button to stay inside the viewport */
.whatsapp-floating {
    position: fixed !important;
    right: 15px !important;   /* always visible */
    bottom: 20px !important;
    z-index: 9999 !important;
    transform: none !important;
}
* {
    box-sizing: border-box;
}
/* 🔥 OPTIMISATION MOBILE - VERSION COMPLÈTE */
@media (max-width: 600px) {

    /* BODY & LAYOUT */
    body {
        padding: 0;
        margin: 0;
        font-size: 14px;
        overflow-x: hidden;
    }

    /* HEADER FIX */
    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 12px 0 !important;
        gap: 10px;
        text-align: center;
    }

    header img {
        width: 85px !important;
        height: auto !important;
    }

    header h1, header .site-title {
        font-size: 18px !important;
        line-height: 22px !important;
        text-align: center !important;
        max-width: 90%;
    }

    /* NAVIGATION BUTTONS */
    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    nav ul li a {
        padding: 8px 14px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }

    /* TITRES PRINCIPAUX */
    h2, h3, .main-title {
        font-size: 20px !important;
        line-height: 26px !important;
        text-align: center !important;
        margin: 10px 0;
        padding: 0 10px;
    }

    /* SECTION DEVISES */
    .currency-section {
        padding: 0 10px;
    }

    .currency-card {
        min-width: 140px !important;
        max-width: 48% !important;
        margin: 5px !important;
    }

    .currency-row {
        justify-content: center !important;
        gap: 10px;
    }

    /* SERVICES */
    .service-card {
        width: 90% !important;
        margin: auto !important;
        margin-bottom: 20px !important;
        padding: 15px !important;
    }

    /* MAP */
    .map-container {
        height: 220px !important;
        margin: 20px auto !important;
        border-radius: 14px;
    }

    /* POPUP MESSAGE */
    .popup-message {
        bottom: 25px !important;
        width: 85% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 14px !important;
        padding: 12px 16px !important;
    }

    .popup-message::after {
        bottom: -12px !important;
    }

    /* FOOTER */
    footer {
        padding: 20px 0 !important;
        font-size: 13px !important;
        text-align: center !important;
    }
}
@media (max-width: 600px) {
    header {
        height: auto !important;
        padding: 8px 10px !important;
    }

    header img {
        max-height: 40px !important;
        width: auto !important;
    }

    header .title {
        font-size: 14px !important;
        line-height: 16px !important;
    }
}
@media (max-width: 600px) {
    .main {
        padding-top: 120px !important; /* adjust if needed */
    }
}
@media (max-width: 600px) {
    .main h2 {
        font-size: 22px !important;
        text-align: center !important;
    }

    .main h2 span {
        font-size: 20px !important;
    }

    .main h3 {
        font-size: 14px !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
}
/* HAMBURGER BUTTON (PHONE ONLY) */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* MOBILE MENU HIDDEN BY DEFAULT */
.navigation {
    display: flex;
    gap: 20px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

    .navigation {
        display: none;      /* hide menu */
        flex-direction: column;
        background: rgba(0,0,0,0.9);
        position: absolute;
        top: 80px;
        right: 0;
        width: 200px;
        padding: 15px;
        border-radius: 10px;
        z-index: 9999;
    }

    .navigation.show {
        display: flex;  /* show when hamburger clicked */
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
        z-index: 10000;
    }
}
.review-card {
    animation: fadeReview 0.6s ease;
}

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