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

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Montserrat', sans-serif;
    }

    :root {
        --blue: #38b2ea;
        --red: #e53e3e;
        --yellow: #ffc107;
        --gray: #777777;
    }

    html, body {
        overflow-x: hidden;
        scroll-behavior: smooth;
    }

    .parallax-container {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }

    .parallax-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 120%;
        background: linear-gradient(135deg, var(--blue) 0%, var(--red) 50%, var(--yellow) 100%);
        background-size: 300% 300%;
        animation: gradientAnimation 15s ease infinite;
        transform: translateY(0);
        z-index: -1;
    }

    @keyframes gradientAnimation {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    .logo {
        position: relative;
        width: 120px;
        height: 120px;
        margin: 0 auto;
        perspective: 1000px;
    }

    /* Ajustement du logo pour mobile */
    @media (max-width: 640px) {
        .logo {
            width: 100px;
            height: 100px;
            margin-top: 60px;
        }
    }

    .logo-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.6s;
        transform-style: preserve-3d;
        animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
        0% {
            transform: translateY(0px) rotateY(0deg);
        }
        50% {
            transform: translateY(-20px) rotateY(180deg);
        }
        100% {
            transform: translateY(0px) rotateY(360deg);
        }
    }

    .logo-front, .logo-back {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 50%;
        background-color: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }

    .logo-back {
        transform: rotateY(180deg);
        background: white;
    }

    .card-3d {
        position: relative;
        width: 100%;
        height: 100%;
        transition: all 0.5s ease;
        transform-style: preserve-3d;
        perspective: 1000px;
    }

    .tilt-card {
        transform: rotateX(0) rotateY(0);
        transition: transform 0.5s ease;
        cursor: pointer;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 15px;
        overflow: hidden;
        background-color: white;
    }

    .scroll-reveal {
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .scroll-reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-item {
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-item::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background: linear-gradient(to right, var(--red), var(--yellow));
        transition: width 0.3s ease;
    }

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

    .brand-name {
        transition: color 0.3s ease;
    }

    /* Style de bouton transparent avec bordure blanche comme "Nous contacter" */
    .transparent-btn {
        background-color: transparent;
        border: 2px solid white;
        color: white;
        padding: 10px 30px;
        border-radius: 30px;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-block;
        text-align: center;
    }

    /* Ajustement des boutons pour mobile */
    @media (max-width: 640px) {
        .transparent-btn {
            padding: 8px 20px;
            font-size: 14px;
            white-space: nowrap;
        }
    }

    .transparent-btn:hover {
        background-color: white;
        color: #4a5568;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .gradient-btn {
        background: transparent;
        border: 2px solid white;
        color: white;
        padding: 12px 30px;
        border-radius: 30px;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    .gradient-btn:hover {
        background-color: white;
        color: #4a5568;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .flip-card {
        background-color: transparent;
        perspective: 1000px;
        height: 450px;
    }

    /* Ajustement de la hauteur des cartes flip pour mobile */
    @media (max-width: 768px) {
        .flip-card {
            height: 400px;
            margin-bottom: 20px;
        }
    }

    @media (max-width: 640px) {
        .flip-card {
            height: 350px;
        }
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.6s;
        transform-style: preserve-3d;
    }

    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }

    /* Ajout pour permettre le touch sur mobile */
    @media (max-width: 768px) {
        .flip-card.touch .flip-card-inner {
            transform: rotateY(180deg);
        }
    }

    .flip-card-front, .flip-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 15px;
        overflow: hidden;
    }

    .flip-card-front {
        background-color: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .flip-card-back {
        background: linear-gradient(135deg, var(--red) 50%, var(--yellow) 100%);
        color: white;
        transform: rotateY(180deg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px;
        overflow-y: auto;
    }

    /* Rendre le texte plus lisible sur mobile */
    @media (max-width: 768px) {
        .flip-card-back {
            padding: 20px;
            font-size: 14px;
        }

        .flip-card-back h3 {
            font-size: 18px;
            margin-bottom: 10px;
        }

        .flip-card-back p {
            margin-bottom: 8px;
        }
    }

    .wave-bg {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        overflow: hidden;
        line-height: 0;
        transform: rotate(180deg);
    }

    .wave-bg svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 110px;
    }

    /* Ajuster la hauteur des vagues pour mobile */
    @media (max-width: 640px) {
        .wave-bg svg {
            height: 60px;
        }
    }

    .counter-item {
        border-radius: 15px;
        overflow: hidden;
        padding: 15px;
        text-align: center;
        background-color: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    /* Ajustement des éléments compteur pour mobile */
    @media (max-width: 768px) {
        .counter-item {
            padding: 12px;
            margin-bottom: 15px;
        }
    }

    .counter-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

    .counter-value {
        position: relative;
        margin-left: 12px;
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(to right, var(--red), var(--yellow));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
    }

    /* Ajuster la taille des compteurs pour mobile */
    @media (max-width: 640px) {
        .counter-value {
            font-size: 2rem;
            margin-left: 5px;
        }

        .counter-item p {
            font-size: 14px;
        }
    }

    /* Animation pour les titres comme "Notre histoire" */
    .animated-title {
        position: relative;
        font-size: 2rem;
        font-weight: 700;
        background: linear-gradient(to right, var(--red), var(--yellow));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.8s ease;
    }

    /* Ajuster la taille des titres animés pour mobile */
    @media (max-width: 768px) {
        .animated-title {
            font-size: 1.5rem;
        }
    }

    @media (max-width: 640px) {
        .animated-title {
            font-size: 1.25rem;
        }
    }

    .animated-title.active {
        transform: translateY(0);
        opacity: 1;
    }

    .testimonial-wrapper {
        position: relative;
        overflow: hidden;
    }

    .testimonial-slider {
        display: flex;
        transition: transform 0.5s ease;
    }

    .testimonial-card {
        flex: 0 0 100%;
        padding: 30px;
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin: 0 10px;
    }

    .testimonial-card blockquote {
        position: relative;
        padding-left: 30px;
    }

    .testimonial-card blockquote::before {
        content: '\201C';
        font-size: 5rem;
        position: absolute;
        left: -20px;
        top: -30px;
        color: rgba(56, 178, 234, 0.2);
    }

    .nav-indicator {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.3);
        margin: 0 5px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .indicator.active {
        background-color: white;
        transform: scale(1.2);
    }

    .form-control {
        width: 100%;
        padding: 15px;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .form-control:focus {
        outline: none;
        border-color: var(--gray);
        box-shadow: 0 0 0 3px rgba(192, 192, 192, 0.2);
    }

    .cursor-glow {
        position: fixed;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: transparent;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
    }

    /* Masquer le curseur glow sur mobile et tablette */
    @media (max-width: 1024px) {
        .cursor-glow {
            display: none;
        }
    }

    /* CSS pour le bouton de retour en haut (à ajouter dans votre section style) */
    .scroll-to-top {
        position: fixed;
        bottom: 40px;
        right: 30px;
        width: 50px;
        height: 50px;
        background-color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 1000;
        padding: 5px;
        transform: translateY(20px);
    }

    /* Ajuster la position et taille du bouton sur mobile */
    @media (max-width: 640px) {
        .scroll-to-top {
            bottom: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
        }
    }

    .scroll-to-top.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .scroll-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    /* Se connecter - Style pour le menu déroulant du compte utilisateur */
    .group:hover .group-hover\:block {
        display: block;
    }

    .group-hover\:scale-100 {
        transform: scale(1);
    }

    .transform {
        transition-property: transform;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 150ms;
    }

    .scale-0 {
        transform: scale(0);
    }

    /* Assurer que le menu disparaît après que la souris le quitte */
    .group:hover .group-hover\:block {
        animation: fadeIn 0.2s ease-out forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .custom-text-box-MQ {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 9999px;
        padding: 5px 15px;
        margin-top: 10px;
        margin-bottom: 30px;
        max-width: 90%;
        position: relative;
        z-index: 1;
    }

    /* Ajustement de la citation pour mobile */
    @media (max-width: 640px) {
        .custom-text-box-MQ {
            padding: 5px 12px;
            margin-bottom: 20px;
            font-size: 16px !important;
        }
    }

    .mq{
        padding: 8px 24px !important;
    }

    /* Style pour le menu mobile */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-nav a {
        color: white;
        font-weight: bold;
        font-size: 20px;
        margin: 15px 0;
        display: block;
        text-align: center;
        text-decoration: none;
    }

    .mobile-nav-header {
        position: absolute;
        top: 10px;
        left: 20px;
        display: flex;
        align-items: center;
    }

    .text-yellow-menu {
        color: #FFD700 !important;
    }

    /* Ajustements pour les sections de contact sur mobile */
    @media (max-width: 768px) {
        .contact-info-item {
            flex-direction: column;
            align-items: flex-start;
            margin-bottom: 20px;
            align-items: center;
            justify-items: center;
        }

        .contact-info-item .icon-container {
            margin-bottom: 10px;

        }

        .contact-text {
            margin-left: 0 !important;
            margin-top: 5px;
        }

        .MQbtn{
            color: #FFD700 !important;
        }
    }


