/* Importation d'une police moderne et lisible (Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,600;0,800;0,900;1,400;1,800;1,900&display=swap');

/* --- PARAMÈTRES GLOBAUX --- */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- EN-TÊTE COMMUN (Header) --- */
.header-bandeau {
    background-color: #0f172a; /* slate-900 */
    color: white;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* Espace entre le logo et les textes */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 20;
}

/* Nouveau Logo 200x200 */
.logo-arrondi {
    width: 200px;
    height: 200px;
    border-radius: 2rem; /* Formes arrondies douces (remplacer par 50% pour un cercle parfait) */
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Conteneur pour aligner le sous-titre sous le M */
.titre-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligne le contenu à gauche */
}

.main-title {
    font-weight: 900;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin: 0;
}

.vassal-mention {
    color: #38bdf8; /* sky-400 */
    font-size: clamp(0.65rem, 2vw, 0.85rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 0.15rem;
    padding-left: 0.15rem; /* Ajustement optique pour tomber pile sous la pointe du M italique */
}

/* --- IMAGE DE COUVERTURE (Hero) --- */
.hero-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.hero-image-small {
    height: 120px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* --- BLOCS ET CARTES --- */
.card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
}

/* --- CORRECTIONS POUR CHAMPS DE SAISIE --- */
input {
    transition: all 0.2s ease-in-out;
}

/* --- AGRANDISSEMENT SUR ÉCRAN PC (Desktop) --- */
@media (min-width: 1024px) {
    html {
        font-size: 18.5px; /* Agrandit l'ensemble des textes du site de ~15% */
    }
}

/* --- ADAPTATIONS POUR TÉLÉPHONES PORTABLES --- */
@media (max-width: 768px) {
    
    .header-bandeau {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    
    /* Le logo se réduit légèrement sur tout petit écran pour ne pas déborder */
    .logo-arrondi {
        width: 150px;
        height: 150px;
        border-radius: 1.5rem;
    }
    
    .hero-image-container {
        height: 120px;
    }
    .hero-image-small {
        height: 90px;
    }

    .card {
        padding: 1rem;
    }

    input[type="number"], 
    input[type="text"], 
    input[type="password"],
    select {
        font-size: 16px !important; 
    }

    td, th {
        padding: 0.75rem 0.5rem !important;
    }
}

/* --- ANIMATIONS GLOBALES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}