/* Styles pour le header - Version homogène avec le design existant */

/* Header container */
header.container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #fff;
}

/* Navbar */
.navbar {
    padding: 0;
    background-color: #fff;
}

.navbar-brand {
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
}

.navbar-brand img {
    max-height: 33px !important;
    width: auto;
}

/* Navigation links */
.main-menu > li > a {
    font-size: 16px;
    color: #000;
    font-weight: 600;
    line-height: 23px;
    position: relative;
    padding: 25px 0;
    text-align: center;
    display: block;
    transition: all 0.3s linear;
}

.main-menu > li > a:before {
    width: 0;
    content: '\f0da';
    font-family: "Font Awesome 5 Pro";
    left: -25px;
    right: auto;
    opacity: 0;
}

.nav-item .nav-link {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

.navbar-light .navbar-nav .nav-link {
    color: #000;
    font-weight: 600;
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
    color: #006acc;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: #006acc;
}

/* Bouton du header */
.main-button {
    margin-left: 27px;
}

.main-button-header .btn {
    font-size: 15.2px; /* etonne */
    font-weight: 600;
    border-radius: 4px;
    padding: 0 24px;
    line-height: 30px;
    display: block;
    align-items: center;
}

.btn-gradient3 {
    background-image: -webkit-linear-gradient(90deg, #006acc 0, #01d5ff 50%, #006acc);
    background-image: -moz-linear-gradient(90deg, #006acc 0, #01d5ff 50%, #006acc);
    background-image: -ms-linear-gradient(90deg, #006acc 0, #01d5ff 50%, #006acc);
    background-image: -o-linear-gradient(90deg, #006acc 0, #01d5ff 50%, #006acc);
    background-image: linear-gradient(90deg, #006acc 0, #01d5ff 50%, #006acc);
    background-size: 300%, 1px;
    background-position: 0;
    color: #fff;
    border: none;
    transition: all 0.3s linear;
}

.btn-gradient3:hover {
    background-image: -webkit-linear-gradient(90deg, #01d5ff 0, #006acc 50%, #006acc);
    background-image: -moz-linear-gradient(90deg, #01d5ff 0, #006acc 50%, #006acc);
    background-image: -ms-linear-gradient(90deg, #01d5ff 0, #006acc 50%, #006acc);
    background-image: -o-linear-gradient(90deg, #01d5ff 0, #006acc 50%, #006acc);
    background-image: linear-gradient(90deg, #01d5ff 0, #006acc 50%, #006acc);
    background-size: 300%, 1px;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
}

.btn-gradient3 img {
    animation: 4s ease-in-out 0.7s infinite ring;
    transform-origin: 50% 4px;
}

@keyframes ring {
    0% { transform: rotate(0); }
    25%, 5% { transform: rotate(30deg); }
    10%, 30% { transform: rotate(-28deg); }
    15% { transform: rotate(34deg); }
    20% { transform: rotate(-32deg); }
    35% { transform: rotate(26deg); }
    40% { transform: rotate(-24deg); }
    45% { transform: rotate(22deg); }
    50% { transform: rotate(-20deg); }
    55% { transform: rotate(18deg); }
    60% { transform: rotate(-16deg); }
    65% { transform: rotate(14deg); }
    70% { transform: rotate(-12deg); }
    75% { transform: rotate(10deg); }
    80% { transform: rotate(-8deg); }
    85% { transform: rotate(6deg); }
    90% { transform: rotate(-4deg); }
    95% { transform: rotate(2deg); }
    to { transform: rotate(-1deg); }
}

/* Effet shine au survol */
.btn-gradient3 {
    position: relative;
    overflow: hidden !important;
    z-index: 1;
}

.btn-gradient3:before,
.btn-gradient3:after {
    content: '';
    position: absolute;
    height: 100%;
    top: 0;
    -webkit-transform: translateX(-100px) skewX(-15deg);
    transform: translateX(-100px) skewX(-15deg);
}

.btn-gradient3:before {
    display: block;
    background: rgba(255, 255, 255, 0.5);
    width: 60px;
    left: 0;
    opacity: 0.5;
    -webkit-filter: blur(30px);
    filter: blur(30px);
}

.btn-gradient3:after {
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    left: 30px;
    opacity: 0;
    -webkit-filter: blur(5px);
    filter: blur(5px);
}

.btn-gradient3:hover:before,
.btn-gradient3:hover:after {
    -webkit-transform: translateX(300px) skewX(-15deg);
    transform: translateX(300px) skewX(-15deg);
    opacity: 0.6;
    transition: 0.7s;
}

/* Bouton toggle menu mobile */
.navbar-toggler {
    background-color: transparent;
    border-color: transparent;
    padding: 0.25rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* WhatsApp buttons */
.media-first {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.media-first a,
.media-second a {
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    width: 50px;
    height: 50px;
    font-size: 36px;
    margin-left: 6px;
    color: #fff;
    text-decoration: none !important;
}

.media-second {
    display: flex;
    align-items: center;
}

/* Menu mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        z-index: 1000;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .main-menu > li > a {
        padding: 12px 0;
    }
    
    .main-menu.menumenuM {
        margin-top: 10px;
    }
    
    .main-menu.menumenuM .nav-link {
        padding: 10px 0;
        font-size: 16px;
        font-weight: 600;
    }
    
    .main-button-header {
        margin-top: 15px;
        margin-left: 0 !important;
    }
    
    .main-button-header .btn {
        display: inline-block;
        width: auto;
    }
    
    .media-second {
        margin-top: 15px;
        justify-content: center;
    }
    
    .media-first a,
    .media-second a {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 26px !important;
    }
    
    .media-first {
        margin-right: 5px;
    }
    
    .media-first a {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
}

/* Desktop large */
@media (min-width: 1200px) {
    .main-menu > li > a {
        font-size: 16px;
        line-height: 23px;
        padding: 25px 0;
    }
    
    .main-button {
        margin-left: 27px;
    }
}

/* Animation du bouton WhatsApp au survol */
.media-first a:hover,
.media-second a:hover {
    opacity: 0.9;
    transform: scale(1.05);
    transition: all 0.3s ease;
}