/* --- STYLES SPÉCIFIQUES POUR LA PAGE DE CRÉATION DE PESON --- */

/* Conteneur principal du formulaire */
/* Styles par défaut (pour les écrans plus petits) */
.creation-form-container {
    min-width: 350px; /* Largeur minimale pour les petits écrans */
    margin: 0 auto;
    background-color: white;
    padding: 15px 20px; /* Ajusté pour être cohérent avec le min-width */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Media query pour les écrans plus grands (ordinateurs) */
@media (min-width: 768px) {
    .creation-form-container {
        min-width: 700px; /* Largeur minimale pour les écrans d'ordinateur */
        /* max-width: 800px; */ /* Supprimé comme demandé */
        padding: 30px 40px; /* Remettre le padding plus large pour les grands écrans */
    }
}


/* Titre du formulaire */
.creation-form-container .page-title {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* Titres de section (h3) */
.creation-form-container h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4f46e5;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Grille pour les champs de formulaire */
.form-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.grid-info-generale {
    grid-template-columns: 1fr; /* Force une seule colonne pour les informations générales */
}

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

.grid-localisation,
.grid-localisation-suite {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Styles pour les labels et inputs */
.form-grid label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #374151;
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    margin-top: 5px;
    background-color: white;
}

.form-grid input:disabled {
    background-color: #e5e7eb;
    cursor: not-allowed;
}

/* Conteneur pour l'aperçu du logo */
#logoPreviewContainer {
    width: 80px;
    height: 50px;
    background-color: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logoPreview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Conteneur pour le bouton d'action (centré) */
.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espace entre les boutons */
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Bouton Principal (Bleu - Sauvegarder) */
.btn-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: #478ac9; /* Le bleu utilisé ailleurs sur le site */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%; /* Mobile : Pleine largeur */
}

.btn-principal:hover {
    background-color: #2d6ca8;
}

.btn-principal:active {
    transform: translateY(1px);
}

/* Bouton Danger (Rouge - Supprimer) */
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: #dc3545; /* Rouge standard */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%; /* Mobile : Pleine largeur */
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-danger:active {
    transform: translateY(1px);
}

/* Icône à l'intérieur des boutons */
.action-btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* État désactivé (pour le bouton sauvegarder pendant l'envoi) */
.btn-principal:disabled, .btn-danger:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Ajustements pour ordinateur (écrans > 768px) */
@media (min-width: 768px) {
    .btn-principal, .btn-danger {
        width: auto; /* Reprend sa taille naturelle */
        min-width: 300px; /* Force une largeur plus importante sur PC */
        padding: 12px 40px;
    }
}