        :root {
            --primary: #438EB9;
            --secondary: #852b23da;
            --bg: #f4f6f9;
            --text: #2c3e50;
        }



        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Noto Sans', Tahoma, Geneva, Verdana, sans-serif;;
        }

        body {
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            height: 100%;
            margin: 0;
            display: flex;
            flex-direction: column;
        }
        
        .app-header {
            height: 65px;
            background: var(--primary);
            color: #fff;
            display: flex;
            align-items: center;
            padding: 0 16px;
            font-weight: 800;
        }

        h3 {
             font-size: 20px;
            font-weight: 600;
            letter-spacing: .3px;
        }
         h2{
            font-weight: 800;
        }
        p {
            font-size: 14.5px;
            color: #4a5568;
        }

         /* main {
        flex: 1;
        position: relative;
        overflow: hidden;
        } */

        .card {
            background: #fff;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 10px rgba(0,0,0,.05);
            margin: 10px;
        }

        .card h3 {
            margin-bottom: 10px;
            color: var(--primary);
            font-weight: 700;
        }

        /* Bottom navigation */
            .bottom-nav {
                height: 64px;
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;

                background: #fff;
                border-top: 1px solid #ddd;

                display: flex;
                justify-content: space-around;
                align-items: center;

                z-index: 1000;
            }


        .bottom-nav a {
            text-decoration: none;
            color: #777;
            font-size: 12px;
            text-align: center;
            flex: 1;
        }

        .bottom-nav a i {
            display: block;
            font-size: 18px;
            margin-bottom: 4px;
        }

        .bottom-nav a.active {
            color: var(--secondary);
        }

        .bottom-nav a.active i {
            color: var(--secondary);
        } 

/* Bouton pro */
.btn-follow {
    margin-top: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0a3d62, #1e90ff);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-follow:active {
    transform: scale(0.97);
}


/* WebView */
.webview {
    position: fixed;
    top: 56px;              /* hauteur header si tu en as */
    left: 0;
    right: 0;
    bottom: 64px;           /* bottom bar */
    background: white;
    z-index: 10;
}

.webview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hidden {
    display: none;
}

/* Loader */
.webview-loader {
    position: absolute;     /* PAS fixed */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid var(--primary);;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.auth-wrapper {
    padding: 15px;
}

.auth-card {
    max-width: 380px;
    margin: auto;
}

.auth-subtitle {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.auth-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.auth-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}


.btn.full {
    width: 100%;
    padding: 10px;
    font-weight: 600;
    border-radius: 12px;
}
.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 40px;
}

.password-field i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.password-field i:hover {
    color: #000;
}

/* Boutons onglets */
.btn-tab {
    flex: 1;
    background: #f1f1f1;
    color: #555;
    font-weight: 500;
}

.btn-tab.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* Bouton principal */
.active-btn {
    font-weight: 600;
}
/* 
Recense mobile */

/* Bouton */
.btn-primary.full {
    width: 100%;
    background-color: var(--primary);
    color: #fff;
    border-radius: 7px;
    border-color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary.full:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Supprimer le style bleu de focus de Bootstrap sur tous les selects et inputs */
.form-select:focus,input:focus {
    outline: none; /* supprime le contour bleu */
    box-shadow: none; /* supprime l'ombre par défaut */
    border-color: var(--primary); /* couleur de bordure personnalisée */
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 768px) {
    .home-layout {
        flex-direction: column;
    }

    .webview-container {
        position: fixed;
        inset: 0;
        z-index: 999;
        border-radius: 0;
    }
}
