/* --- CONFIGURATION TAILWIND & FONTS --- */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    background-color: #f9fafb;
    color: #111827;
}

/* Gestion de la safe-area iPhone */
.pb-safe { padding-bottom: env(safe-area-inset-bottom); }
.pt-safe { padding-top: env(safe-area-inset-top); }

/* --- ANIMATIONS --- */
.page-enter {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- UTILITAIRES --- */
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* FIX PSI: Stabilisation de la taille du logo pour éviter le CLS */
#header-logo {
    width: auto;
    height: 40px; /* Équivalent h-10 Tailwind */
    aspect-ratio: 68/70; /* Ratio rapporté par PSI */
}

/* --- COMPOSANTS GLOBAUX (Nouveau) --- */

/* Cartes standards */
.card {
    background-color: white;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    padding: 1rem;
    transition: background-color 0.2s, transform 0.1s;
}

/* Boutons standards */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem; /* rounded-xl */
    font-weight: 700;
    font-size: 0.875rem; /* text-sm */
    transition: all 0.2s;
    cursor: pointer;
    gap: 0.5rem;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background-color: #15803d; /* green-700 */
    color: white;
    box-shadow: 0 4px 6px -1px rgba(21, 128, 61, 0.2);
}
.btn-primary:hover { background-color: #166534; /* green-800 */ }

.btn-secondary {
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #374151; /* gray-700 */
}
.btn-secondary:hover { background-color: #f9fafb; }

/* Inputs de formulaire */
.input-field {
    width: 100%;
    background-color: #f9fafb; /* gray-50 */
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem; /* text-sm */
    outline: none;
    transition: border-color 0.2s, ring 0.2s;
}
.input-field:focus {
    border-color: #22c55e; /* green-500 */
    box-shadow: 0 0 0 1px #22c55e;
}

/* Liens de menu (utilisés dans menu.html) */
.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    transition: background-color 0.2s;
}
.menu-link:active { background-color: #f9fafb; }

/* --- STYLE CONTENU ARTICLE --- */
.article-content h2 { 
    font-weight: 700; 
    font-size: 1.25rem; 
    margin-top: 1.5rem; 
    margin-bottom: 0.75rem; 
    color: #111827; 
}
.article-content h3 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #374151;
}
.article-content p { 
    margin-bottom: 1rem; 
    line-height: 1.6;
    color: #4b5563; /* gray-600 */
}
.article-content ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    color: #4b5563;
}
.article-content li {
    margin-bottom: 0.25rem;
}