/* Header 2 - Style inspiré du footer */

/* Header wrapper avec style footer */
.header2 {
    padding: 30px 0 0px;
    background: #fff;
}

.header2-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    background: #F5F5F5;
    border-radius: 30px;
    border: 1px solid #c3c3c3;
    box-shadow: 5px 5px 0px #dbeef9;
    overflow: hidden;
}

/* Bandeau promo intégré dans le wrapper */
.header2-promo {
    background: #DBEEF9;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    border-bottom: 1px solid #a4a4a4;
    display: none;
}

.header2-promo p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000;
}

.header2-main {
    padding: 20px 40px;
    background: #FFF;
}

.header2-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
}

/* Logo */
.header2-logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

/* Navigation links - centrés */
.header2-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header2-links li {
    margin: 0;
}

.header2-links a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    transition: opacity 0.2s;
}

.header2-links a:hover {
    opacity: 0.5;
}

/* Bouton utilisateur (login/dashboard) */
.header2-user-btn {
    background: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 2px 2px 0px #000;
    color: #000;
}

.header2-user-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000;
    opacity: 1;
}

/* Cacher le texte utilisateur en desktop */
.header2-user-text {
    display: none;
}

/* Bouton RDV */
.header2-btn-rdv {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border: 2px solid #000;
    border-radius: 22px;
    background: #00b67a;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    box-shadow: 3px 3px 0px #000;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.header2-btn-rdv:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
}

/* Cacher le bouton RDV dans les links en desktop (il sera visible seulement en mobile) */
.header2-links .header2-btn-rdv {
    display: none;
}

/* Menu toggle pour mobile */
.header2-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: #dbeef9;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000;
}

.header2-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    transition: all 0.3s;
}

.header2-close-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 28px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #000;
  font-weight: 700;
  color: #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .header2-wrapper {
        border-radius: 20px;
    }

    .header2-main {
        padding: 15px 25px;
    }

    .header2-links {
        gap: 20px;
    }

    .header2-links a {
        font-size: 13px;
    }
}

@media (max-width: 1290px) {
    /* Style mobile simple comme header1 - pas de wrapper arrondi */
    .header2 {
        padding: 0;
    }

    /* Supprimer le padding du container dans le header */
    .header2 .container {
        padding: 0 !important;
    }

    .header2-wrapper {
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        border-bottom: 1px solid #D9D9D9;
    }

    /* Bandeau promo sur mobile avec fond bleu - pleine largeur */
    .header2-promo {
        display: none;
        background: #DBEEF9;
        padding: 10px 20px;
        border-bottom: none;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }

    .header2-promo p {
        font-size: 12px;
        max-width: 100%;
    }

    .header2-main {
        padding: 10px 0;
        background: transparent;
    }

    .header2-nav {
        justify-content: center;
        position: relative;
    }

    .header2-logo {
        display: flex;
        justify-content: center;
    }

    .header2-logo img {
        height: 55px;
    }

    /* Cacher le bouton RDV sur mobile (il sera dans le menu) */
    .header2-nav > .header2-btn-rdv {
        display: none;
    }

    .header2-menu-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 20px;
    }

    /* Menu latéral mobile */
    .header2-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        transform: none !important;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(135deg, #DBEEF9 0%, #fff 100%);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 15px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        border-left: 1px solid #000;
        align-items: stretch;
    }

    .header2-links.active {
        right: 0 !important;
    }

    .header2-links li {
        width: 100%;
    }

    .header2-links a {
        font-size: 16px;
        width: 100%;
        display: block;
        padding: 7px 15px;
        background: #fff;
        border: 1px solid #000;
        border-radius: 8px;
        box-shadow: 2px 2px 0px #000;
        transition: all 0.2s;
    }

    .header2-links a:hover {
        transform: translate(-1px, -1px);
        box-shadow: 3px 3px 0px #000;
        opacity: 1;
    }

    .header2-user-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 15px;
    }

    /* Afficher le texte "Espace membre" en mobile */
    .header2-user-text {
        display: inline;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.8px;
    }

    /* Bouton RDV dans le menu mobile */
    .header2-links .header2-btn-rdv {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
        padding: 15px;
        background-color: #00b67a;
        color: #fff;
    }

    .header2-close-menu {
        display: none;
    }

    .header2-links.active .header2-close-menu {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10000;
    }
}
