@media screen and (max-width: 767px) {
    /* Cache complètement le logo original */
    .contact-page .logo img {
        display: none !important;
    }

    /* Nouveau logo pour la page contact */
    .contact-page .logo {
        position: relative;
        width: 80px;
        height: 80px;
    }

    .contact-page .logo::after {
        content: '';
        display: block;
        position: fixed;
        top: -136px;
        left: -19px;
        width: 250px;
        height: 370px;
        background: url('../static/logoo.png') no-repeat center center;
        background-size: contain;
        z-index: 1003;
    }

    /* Navigation fixe */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: transparent;
        padding: 10px;
    }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: -270px;
    width: 160px;
    height: auto; /* Changed from 24vh to auto */
    min-height: 200px; /* Added minimum height */
    background: rgba(210, 214, 208, 0.98);
    flex-direction: column;
    padding: 40px 0;
    gap: 8px;
    z-index: 1001;
    border-radius: 20px 0 0 20px;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    margin: 0;
    transition: right 0.3s ease;
}

.nav-links a {
    color: #333;
    font-size: 1em;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    width: 80%;
    margin: 0;
    text-align: right;
    margin-left: 20px; /* Reduced from 70px */
    display: block; /* Added to ensure proper block display */
    white-space: nowrap; /* Prevents text wrapping */
    overflow: hidden; /* Prevents overflow */
    text-overflow: ellipsis; /* Adds ... if text is too long */
}



    /* Menu toggle */
    .menu-toggle {
        display: flex;
        width: 25px;
        height: 20px;
        position: fixed;
        right: 15px;
        top: 15px;
        z-index: 1002;
        flex-direction: column;
        justify-content: space-between;
    }
   

    /* Container des informations de contact */
    .contact-info-container {
        width: 95%;
        margin: 100px auto 20px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    /* Titre principal */
    .contact-title {
        font-size: 1em;
        color: #333;
        text-align: center;
        margin-bottom: 25px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    /* Cartes d'information */
    .contact-card {
        background: white;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 10px;
        box-shadow: 0 3px 10px rgba(80, 163, 162, 0.2);
        transform: translateY(0);
        transition: transform 0.3s ease;
    }

    .contact-card:hover {
        transform: translateY(-5px);
    }

    /* Icônes */
    .contact-icon {
        font-size: 2em;
        color: #50a3a2;
        margin-bottom: 10px;
        text-align: center;
    }

    /* Titres des sections */
    .contact-section-title {
        color: #333;
        font-size: 1em;
        margin-bottom: 6px;
        text-align: center;
        font-weight: bold;
    }

    /* Texte des informations */
    .contact-text {
        color: #666;
        font-size: 0.9em;
        text-align: center;
        line-height: 1.4;
    }

    /* Animation d'apparition */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .contact-card {
        animation: fadeInUp 0.6s ease forwards;
    }

    .contact-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .contact-card:nth-child(3) {
        animation-delay: 0.4s;
    }

    

 .map-link {
        text-decoration: none;
        color: #ccc1c1;
        display: block;
        padding: 5px;
    }

    .map-link:active {
        background-color: rgba(80, 163, 162, 0.1);
        border-radius: 5px;
    }
}