/* * ============================================================
 * ADNIMI LIQUID MORPHISM - CORE DESIGN SYSTEM (V1.0)
 * ============================================================
 * * Ce fichier définit l'identité visuelle exclusive d'Adnimi.
 * Fusion entre la structure physique (Neumorphic Air) et la 
 * transparence éthérée (Liquid Glass).
 * * Structure: 
 * - Relief : Neumorphic 
 * - Surface : Liquid Glass
 * - Rythme : Grille de 8px
 */

:root {
    /* --- PALETTE DE COULEURS ADNIMI --- */
    --adm-orange: #ff8c00;             /* Couleur d'action principale */
    --adm-green: #2ecc71;              /* Couleur de succès/validation */
    --adm-bg-base: #e0e5ec;            /* Matériau de base (Aluminium brossé) */
    --adm-text-high: #1a202c;          /* Titres et contenus importants */
    --adm-text-mid: #4a5568;           /* Paragraphes et labels */
    --adm-text-low: #718096;           /* Notes secondaires et placeholders */

    /* --- ARCHITECTURE NEUMORPHIC AIR (L'OSSATURE) --- */
    /* Ombres calculées pour un relief de 4mm sur écran */
    --adm-air-dark: 9px 9px 16px rgba(163, 177, 198, 0.7);
    --adm-air-light: -9px -9px 16px rgba(255, 255, 255, 0.9);
    
    /* Effet "Creusé" pour les barres de recherche et champs de saisie */
    --adm-inner-dark: inset 6px 6px 12px rgba(163, 177, 198, 0.5);
    --adm-inner-light: inset -6px -6px 12px rgba(255, 255, 255, 1);

    /* --- TECHNOLOGIE LIQUID GLASS (LA SURFACE) --- */
    --adm-glass-surface: rgba(255, 255, 255, 0.35);
    --adm-glass-blur: blur(12px);
    --adm-glass-border: 1px solid rgba(255, 255, 255, 0.45);
    --adm-glass-glow: 0 0 20px rgba(255, 255, 255, 0.1);

    /* --- GÉOMÉTRIE ET PIXEL PERFECT --- */
    --adm-radius-extreme: 40px;        /* Pour les éléments circulaires/pilules */
    --adm-radius-xl: 32px;             /* Cartes principales (MPA, Wiki) */
    --adm-radius-lg: 24px;             /* Sous-blocs */
    --adm-radius-md: 16px;             /* Boutons et éléments interactifs */
    
    /* --- GRILLE DE RYTHME (8PX) --- */
    --adm-space-2xs: 4px;
    --adm-space-xs: 8px;
    --adm-space-sm: 16px;
    --adm-space-md: 24px;
    --adm-space-lg: 32px;
    --adm-space-xl: 64px;

    /* --- DYNAMIQUE D'INTERACTION --- */
    --adm-transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 1. RESET & BASICS */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--adm-bg-base);
    color: var(--adm-text-high);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: var(--adm-space-md);
    line-height: 1.5;
}

/* 2. LE CONTENEUR LIQUID MORPHISM (L'INVENTION) */
/* Utiliser cette classe pour tout bloc majeur (MPA, Wiki, Films) */
.adm-liquid-card {
    background: var(--adm-bg-base);
    border-radius: var(--adm-radius-xl);
    box-shadow: var(--adm-air-dark), var(--adm-air-light);
    padding: var(--adm-space-xs); /* Crée la bordure neumorphic autour du verre */
    margin-bottom: var(--adm-space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--adm-transition);
}

/* La couche de verre à l'intérieur du relief */
.adm-glass-layer {
    background: var(--adm-glass-surface);
    backdrop-filter: var(--adm-glass-blur);
    -webkit-backdrop-filter: var(--adm-glass-blur);
    border: var(--adm-glass-border);
    border-radius: calc(var(--adm-radius-xl) - var(--adm-space-xs));
    padding: var(--adm-space-md);
    box-shadow: var(--adm-glass-glow);
}

/* 3. BARRE DE RECHERCHE PIXEL PARFAIT */
.adm-search-bar {
    background: var(--adm-bg-base);
    box-shadow: var(--adm-inner-dark), var(--adm-inner-light);
    border-radius: var(--adm-radius-extreme);
    padding: var(--adm-space-sm) var(--adm-space-md);
    border: none;
    width: 100%;
    font-size: 18px;
    color: var(--adm-text-high);
    outline: none;
    transition: var(--adm-transition);
}

.adm-search-bar:focus {
    box-shadow: var(--adm-inner-dark), var(--adm-inner-light), 0 0 15px rgba(255, 140, 0, 0.1);
}

/* 4. BOUTONS TACTILES (SENS) */
.adm-btn {
    background: var(--adm-bg-base);
    border-radius: var(--adm-radius-md);
    box-shadow: 5px 5px 10px rgba(163, 177, 198, 0.6), 
                -5px -5px 10px rgba(255, 255, 255, 0.9);
    border: none;
    padding: var(--adm-space-sm) var(--adm-space-md);
    font-weight: 700;
    color: var(--adm-text-mid);
    cursor: pointer;
    transition: var(--adm-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adm-btn:active {
    box-shadow: inset 3px 3px 6px rgba(163, 177, 198, 0.5), 
                inset -3px -3px 6px rgba(255, 255, 255, 1);
    transform: scale(0.97);
    color: var(--adm-orange);
}

.adm-btn-primary {
    color: var(--adm-orange);
}

/* 5. TYPOGRAPHIE ET LABELS */
.adm-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--adm-orange);
    margin-bottom: var(--adm-space-sm);
    display: block;
}

.adm-mpa-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--adm-text-high);
    line-height: 1.4;
}

/* 6. SYSTÈME DE GRILLE PHOTOS (WIKI) */
.adm-photo-grid {
    display: flex;
    gap: var(--adm-space-sm);
    margin-bottom: var(--adm-space-sm);
}

.adm-photo-item {
    flex: 1;
    aspect-ratio: 1;
    background: var(--adm-bg-base);
    border-radius: var(--adm-radius-md);
    box-shadow: var(--adm-inner-dark), var(--adm-inner-light);
    overflow: hidden;
}
