* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f8fbff;
    color: #1e2d3d;
    padding: 20px;
}

.main-wrapper {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px 10px 10px 10px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    min-height: 152.5px; /* Assure que le header conserve sa hauteur même avec un logo plus grand */
    position: relative;
}

/* Styles pour le badge Private Beta */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.private-beta-badge {
    position: absolute;
    bottom: -5px;
    right: -28px;
    background: linear-gradient(50deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: glow-pulse 2s ease-in-out infinite alternate;
    z-index: 10;
    white-space: nowrap;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 107, 107, 0.1);
    }
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .private-beta-badge {
        font-size: 8px;
        padding: 1px 4px;
        right: -5px;
        bottom: -3px;
    }
}

.logo-img {
    height: 112.5px;
    display: inline-block;
    animation: zoomInOut 1.5s ease-in-out 2;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Styles pour le regroupement des outils (langue, statut et connexion) */
.header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 15px;
    right: 20px;
}

/* Style spécifique pour le bouton site web */
.login-button {
    color: #fff;
    background-color: #0070ba;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

.login-button:hover {
    background-color: #005998;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Styles pour la section de connexion */
.login-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 60px;
    margin-top: -20px;
}

.login-container {
    max-width: 500px;
}

.login-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #1e2d3d;
}

.login-form {
    width: 100%;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #505e6d;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #0070ba;
    box-shadow: 0 0 0 2px rgba(0, 112, 186, 0.2);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.submit-btn {
    background-color: #0070ba;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.submit-btn:hover {
    background-color: #005998;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.forgot-password {
    color: #0070ba;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #005998;
    text-decoration: underline;
}


.proxy-info {
    font-size: 0.8em;
    color: #6b7280;
    margin-left: 5px;
    background-color: #f3f4f6;
    padding: 1px 4px;
    border-radius: 3px;
    display: inline-block;
}

.login-info {
    margin-top: 30px;
    padding: 15px;
    background-color: #f0f9ff;
    border-left: 3px solid #0070ba;
    border-radius: 6px;
}

.login-info p {
    font-size: 14px;
    color: #505e6d;
    line-height: 1.5;
}

.login-image {
    max-width: 45%;
}

/* Styles pour les popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.popup {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 80%;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    max-height: 85vh; /* Limite la hauteur de la popup */
    display: flex;
    flex-direction: column;
}

.popup.active {
    transform: translateY(0);
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    color: #0070ba;
}

.close-popup {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #505e6d;
    transition: transform 0.2s ease;
}

.close-popup:hover {
    transform: rotate(90deg);
    color: #0070ba;
}

.popup-content {
    font-size: 16px;
    line-height: 1.6;
    color: #505e6d;
    overflow-y: auto; /* Ajoute une barre de défilement vertical si nécessaire */
    -webkit-overflow-scrolling: touch; /* Pour une meilleure expérience de défilement sur iOS */
    padding-right: 10px; /* Espace pour la barre de défilement */
    flex-grow: 1; /* Permet au contenu de remplir l'espace disponible */
    position: relative;
}

.popup-content p {
    margin-bottom: 15px;
}

.popup-content p:last-child {
    margin-bottom: 0;
}

/* Styles pour le formulaire de réinitialisation */
.reset-form {
    margin: 15px 0;
}

.reset-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.reset-message.success {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
    display: block;
}

.reset-message.error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    display: block;
}

@keyframes scroll-animation {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid #0070ba;
    border-radius: 15px;
    display: none; /* Caché par défaut, affiché uniquement sur mobile */
    justify-content: center;
    z-index: 5;
}

.scroll-indicator:before {
    content: '';
    width: 6px;
    height: 10px;
    position: absolute;
    top: 8px;
    background-color: #0070ba;
    border-radius: 3px;
    animation: scroll-animation 2s infinite;
}

/* Styles pour l'état du service */
.service-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f8f8f8;
    color: #1e2d3d;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    z-index: 100;
}

.service-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.status-gyro {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.gyro-light {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.gyro-ok {
    background: conic-gradient(
        #34d371 0%, 
        #a3f3c8 25%, 
        #34d371 50%, 
        #a3f3c8 75%, 
        #34d371 100%
    );
    box-shadow: 0 0 7px rgba(52, 211, 113, 0.8);
    animation: pulse-green 2s ease-in-out infinite, rotate 6s linear infinite;
}

.gyro-ko {
    background: conic-gradient(
        #ef4444 0%, 
        #fca5a5 25%, 
        #ef4444 50%, 
        #fca5a5 75%, 
        #ef4444 100%
    );
    box-shadow: 0 0 7px rgba(239, 68, 68, 0.8);
    animation: pulse-red 1s ease-in-out infinite, rotate 3s linear infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; box-shadow: 0 0 7px rgba(52, 211, 113, 0.8); }
    50% { opacity: 0.8; box-shadow: 0 0 14px rgba(52, 211, 113, 0.9); }
    100% { opacity: 1; box-shadow: 0 0 7px rgba(52, 211, 113, 0.8); }
}

@keyframes pulse-red {
    0% { opacity: 1; box-shadow: 0 0 7px rgba(239, 68, 68, 0.8); }
    50% { opacity: 0.8; box-shadow: 0 0 14px rgba(239, 68, 68, 0.9); }
    100% { opacity: 1; box-shadow: 0 0 7px rgba(239, 68, 68, 0.8); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour les drapeaux de langue */
.language-selector {
    display: flex;
    gap: 10px;
}

.language-flag {
    width: 30px;
    height: 20px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.language-flag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.language-flag.active {
    box-shadow: 0 0 0 2px #0070ba;
}

.footer {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    align-items: center;
}

.footer-link {
    color: #505e6d;
    text-decoration: none;
    font-size: 12px;
    margin-left: 15px;
}

.footer-link:hover {
    text-decoration: underline;
}

.copyright {
    color: #505e6d;
    font-size: 12px;
}

.email-support {
    color: #0070ba;
    font-weight: 500;
}

/* Styles pour les appareils mobiles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }
    
    .logo-img {
        height: 90px;
    }
    
    .header-tools {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 15px;
        justify-content: center;
    }
    
    .login-section {
        flex-direction: column;
        padding-bottom: 40px;
    }
    
    .login-container {
        order: 1;
        width: 100%;
        padding: 0 10px;
    }
    
    .login-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .login-image {
        order: 0;
        max-width: 85%;
        margin-bottom: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .forgot-password {
        text-align: center;
        display: block;
    }
    
    .login-info {
        text-align: center;
    }
    
    .popup {
        width: 90%;
        padding: 20px;
    }
    
    .scroll-indicator {
        display: flex;
    }
    
    .service-status {
        font-size: 10px;
    }
    
    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer div:last-child {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-link {
        margin-left: 0;
    }
}

/* Styles pour les très petits écrans */
@media (max-width: 480px) {
    .logo-img {
        height: 70px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .popup {
        width: 95%;
        padding: 15px;
    }
}

/* Correction pour empêcher les retours à la ligne dans les prix */
.price-cell,
.price-down,
.price-up,
.price-same,
.euro-price,
.formatted-price {
    white-space: nowrap;
}

/* Pour les badges de devise également */
.currency-badge {
    white-space: nowrap;
}

/* Pour les prix dans les tableaux de produits */
.products-table .price-cell {
    white-space: nowrap;
}

/* Pour tous les éléments contenant des prix formatés */
[id^="price-"],
.product-price,
.target-price,
.current-price {
    white-space: nowrap;
}

/* Amélioration des styles pour les boutons désactivés */
.refresh-price-btn:disabled,
.refresh-euro-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
    border-color: #d1d5db !important;
    transform: none !important;
    box-shadow: none !important;
}

.refresh-price-btn:disabled:hover,
.refresh-euro-btn:disabled:hover {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Assurer que les boutons désactivés ne réagissent pas aux interactions */
.refresh-price-btn[data-permanently-disabled="true"],
.refresh-euro-btn[data-permanently-disabled="true"] {
    pointer-events: none;
    opacity: 0.5;
    background-color: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
}

/* Styles pour le disclaimer Beta */
.beta-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    border-radius: 6px;
}

.beta-disclaimer h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #c2410c;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.beta-disclaimer h4:before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 18px;
}

.beta-disclaimer p {
    margin-bottom: 0;
    font-size: 14px;
    color: #9a3412;
    line-height: 1.5;
}

.beta-disclaimer .email-support {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
}

.beta-disclaimer .email-support:hover {
    text-decoration: underline;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .beta-disclaimer {
        margin-top: 15px;
        padding: 12px;
    }
    
    .beta-disclaimer h4 {
        font-size: 15px;
    }
    
    .beta-disclaimer h4:before {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .beta-disclaimer p {
        font-size: 13px;
    }
}

/* Styles pour l'affichage des actualisations automatiques */
.auto-refresh-status .limit-counter.auto-counter {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.limit-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 8px;
}

.refresh-price-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .refresh-price-container {
        justify-content: center;
    }
    
    .limit-status {
        margin-bottom: 5px;
    }
}

.auto-refresh-status .limit-counter.auto-counter {
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

/* Style quand la limite n'est pas atteinte */
.auto-refresh-status .limit-counter.limit-ok {
    background-color: #d1fae5;
    color: #047857;
}

/* Style quand la limite est atteinte */
.auto-refresh-status .limit-counter.limit-reached {
    background-color: #fee2e2;
    color: #b91c1c;
}