/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #20B2AA 0%, #008B8B 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

.container {
    max-width: 900px; /* Réduit pour une meilleure lisibilité */
    margin: 0 auto;
    padding: 20px;
    flex-grow: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #4CAF50 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4), 
                inset 0 1px 0 rgba(255,255,255,0.3);
    animation: float 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4), 
                    inset 0 1px 0 rgba(255,255,255,0.3);
    }
    50% { 
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(76, 175, 80, 0.5), 
                    inset 0 1px 0 rgba(255,255,255,0.4);
    }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.house-icon {
    width: 50px;
    height: 38px;
    position: relative;
    z-index: 2;
}

.house-icon .roof {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-bottom: 22px solid white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.house-icon .roof::after {
    content: '';
    position: absolute;
    top: 22px;
    left: -25px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e0e0e0, white, #e0e0e0);
    border-radius: 2px;
}

.house-icon .walls {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 28px;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    border-radius: 0 0 4px 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8),
                0 2px 6px rgba(0,0,0,0.1);
}

.house-icon .door {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 18px;
    background: linear-gradient(180deg, #4CAF50, #45a049);
    border-radius: 6px 6px 2px 2px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3),
                0 1px 2px rgba(0,0,0,0.2);
}

.house-icon .door::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 2px;
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
}

.house-icon .windows {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4),
                0 1px 2px rgba(0,0,0,0.1);
}

.house-icon .windows::after {
    content: '';
    position: absolute;
    top: 0;
    right: -24px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4),
                0 1px 2px rgba(0,0,0,0.1);
}

h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Navigation Menu Styles */
.nav-menu {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    margin: 0 auto 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.nav-btn {
    background: rgba(255,255,255,0.9);
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-btn.active {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Main Content Area */
.main-content {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.ip-section h2 {
    color: #20B2AA;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.ip-label {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 10px;
}

.ip-address {
    font-size: 2.8em;
    font-weight: bold;
    color: #008B8B;
    background: #e0f7fa;
    padding: 15px 25px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    word-break: break-all;
}

.ip-address.not-detected {
    color: #999;
    background: #f0f0f0;
    font-style: italic;
    font-size: 1.8em;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #20B2AA;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.info-card h3 {
    color: #008B8B;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.info-card p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Copy and Refresh Buttons */
.button-group {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.copy-btn, .refresh-btn {
    background: linear-gradient(45deg, #20B2AA, #008B8B);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 139, 139, 0.3);
}

.copy-btn::before, .refresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.copy-btn:hover::before, .refresh-btn:hover::before {
    left: 100%;
}

.copy-btn:hover, .refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 139, 139, 0.4);
}

/* Favorite Button */
.favorite-btn {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.favorite-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.favorite-btn:hover::before {
    left: 100%;
}

.favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .ip-address {
        font-size: 2em;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }

    .nav-buttons {
        gap: 5px;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .container {
        max-width: 100%;
        padding: 15px;
    }
    
    .ip-section {
        padding: 25px;
    }
}

/* Section More Tools - Style révolutionnaire */
.featured-tools {
    margin: 4rem auto;
    max-width: 1200px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

/* Effet de fond animé */
.featured-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes backgroundFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10px, -10px) scale(1.05); }
}

.featured-tools h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-align: center;
    font-weight: 800;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-tools-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tool-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    position: relative;
    z-index: 2;
}

.tool-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px 25px;
    border-radius: 20px;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 10%, transparent 80%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.tool-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) scale(1.1);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

.tool-card .icon-container {
    font-size: 3.5rem;
    color: #3498db;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    padding: 15px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.tool-card:hover .icon-container {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.tool-card h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.tool-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Media Queries for More Tools Section */
@media (max-width: 1024px) {
    .featured-tools {
        padding: 40px 30px;
        margin: 3rem auto;
    }

    .featured-tools h2 {
        font-size: 2.2rem;
    }

    .tool-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .featured-tools {
        padding: 30px 20px;
        border-radius: 20px;
        margin: 2rem auto;
    }

    .featured-tools h2 {
        font-size: 1.8rem;
    }

    .featured-tools-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .tool-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-card {
        padding: 25px 20px;
    }

    .tool-card .icon-container {
        font-size: 3rem;
        width: 70px;
        height: 70px;
    }

    .tool-card h3 {
        font-size: 1.4rem;
    }

    .tool-card p {
        font-size: 0.9rem;
    }
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    margin-top: auto; /* Pousse le footer vers le bas */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

footer p {
    margin: 0;
    font-size: 0.9em;
}


/* Style pour le conteneur du bouton Buy Me a Coffee */
.coffee-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px 20px;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border-radius: 20px;
    border: 2px solid #FFD54F;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.coffee-section h3 {
    color: #F57F17;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

.coffee-section p {
    color: #795548;
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.5;
}

.coffee-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Style pour le bouton Buy Me a Coffee */
#bmc-button {
    transform: scale(1.2);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

#bmc-button:hover {
    transform: scale(1.25);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}

@media (max-width: 768px) {
    .coffee-section {
        margin: 30px 0;
        padding: 25px 15px;
    }
    
    #bmc-button {
        transform: scale(1.1);
    }
    
    #bmc-button:hover {
        transform: scale(1.15);
    }
}

/* Styles pour la surveillance automatique */
.auto-refresh-container {
    background: #f0f8ff;
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.auto-refresh-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.auto-refresh-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4CAF50;
    cursor: pointer;
}

.auto-refresh-checkbox label {
    font-weight: bold;
    color: #333;
    cursor: pointer;
    font-size: 1.1em;
}

.auto-refresh-status {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.auto-refresh-status.active {
    color: #4CAF50;
    font-weight: bold;
}

/* Styles pour les options de notifications */
.notification-options {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    display: none;
}

.notification-options.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 15px;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding: 15px;
    }
}

.notification-options h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1em;
}

.notification-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.notification-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    font-size: 0.9em;
}

.notification-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4CAF50;
    cursor: pointer;
}

.notification-option-icon {
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.notification-option-required {
    color: #666;
    font-size: 0.8em;
    font-style: italic;
}

/* Animation pour l'onglet qui clignote */
@keyframes tabBlink {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.tab-blinking {
    animation: tabBlink 1s ease-in-out infinite;
}
