:root {
    --white: #fff;
}

/* ===============================
   WIDGET GLOBAL
================================ */
.contact-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99999;
    font-family: sans-serif;
}

/* ===============================
   PULSE
================================ */
.pulse-effect {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    animation: pulse 2s infinite;
}

.pulse-effect:nth-child(2) {
    animation-delay: .8s;
}

@keyframes pulse {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ===============================
   BOUTON PRINCIPAL
================================ */
.main-button {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.3);

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
   ICÔNES ANIMÉES
================================ */
#iconWrapper {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    transition: transform .6s ease;
}

.icon-slide {
    min-height: 100%;      /* 🔥 clé du centrage */
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    color: #fff;
    line-height: 1;        /* 🔥 évite le décalage emoji */
}

/* ===============================
   ÉTAT OUVERT
================================ */
.close-icon {
    display: none;
    font-size: 26px;
    color: #fff;
}

.contact-widget.open #iconWrapper {
    display: none;
}

.contact-widget.open .close-icon {
    display: block;
}

.contact-widget.open .pulse-effect {
    display: none;
}

/* ===============================
   MENU
================================ */
.contact-menu {
    position: absolute;
    bottom: 80px;
    left: 0;

    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: .3s;
}

.contact-widget.open .contact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
	background: white;
}

.contact-item {
    background: #fff;
    padding: 10px 18px;
     display: flex;
    align-items: center;

    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}

.icon-circle {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    margin-right: 12px;
}

.label {
    color: #333;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* ===============================
   MODALES
================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
